Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install on Ubuntu (missing libstdc++6) #45

Closed
karelbilek opened this issue Aug 29, 2018 · 7 comments
Closed

Cannot install on Ubuntu (missing libstdc++6) #45

karelbilek opened this issue Aug 29, 2018 · 7 comments

Comments

@karelbilek
Copy link

karelbilek commented Aug 29, 2018

I have tried to install blockbook according to this manual

https://wiki.trezor.io/User_manual:Running_a_local_instance_of_Trezor_Wallet_backend_(Blockbook)

after installing bitcoind and waiting about a week to sychronize blockchain, I try to install blockbook. gdebi writes me

This package is uninstallable
Dependency is not satisfiable: libstdc++6 (>= 6)

....I think blockbook (or the backend installer) could have told me this first, before I synched the blockchain.

@karelbilek karelbilek changed the title Cannot install on Ubuntu Cannot install on Ubuntu (missing libstdc++6) Aug 29, 2018
@karelbilek
Copy link
Author

What actually helped for me

I went into this file, and on the first line

https://github.com/trezor/blockbook/blob/master/build/docker/bin/Dockerfile

I replaced

https://github.com/trezor/blockbook/blob/master/build/docker/bin/Dockerfile#L3

with

FROM ubuntu:16.04 (which is my distro)

That made the resulting deb installable

@petrkr
Copy link
Contributor

petrkr commented Sep 5, 2018

According to manual there is

  1. To install blockbook you will need to use Linux Debian version 9 (Stretch) or later.

seems like ubuntu 16.04 is not compatible with Debian 9 packages (even on libstdcc++)

@martinboehm
Copy link
Contributor

Just a note that at the time of the creation of this issue the documentation was not so specific about the required platform as it is now.
With very low priority, in the future we may support the ubuntu distro. However, for now the easiest way is to stick with the specs.

@karelbilek
Copy link
Author

karelbilek commented Sep 7, 2018

seems like ubuntu 16.04 is not compatible with Debian 9 packages (even on libstdcc++)

It is - https://karelchain.com is running on ubuntu. I just needed to change the Dockerfile for the blockbook deb

@eblackstone
Copy link

I had a similar problem with installing Blockbook on 18.04, a similar change to the Dockerfile made it install w/o any issues by changing the first line of:
~/blockbook/build/docker/bin/Dockerfile

with

FROM ubuntu:18.04

Thanks @karel-3d!

@aussiehash
Copy link

aussiehash commented May 24, 2020

On Debian 10, there is a similar error with
$ sudo apt install ./blockbook-bitcoin_0.3.3_amd64.deb

The following packages have unmet dependencies:
 blockbook-bitcoin : Depends: libgflag2v5 but it is not installable

I have edited /blockbook/build/docker/bin/Dockerfile
with
FROM debian:10

And have repeated sudo make all-bitcoin
It appears to be working, with docker installing libgflags2.2

@ph4r05
Copy link
Contributor

ph4r05 commented Jul 30, 2020

Build on Ubuntu 20.04.01 LTS:

cd /opt
git clone --recursive https://github.com/trezor/blockbook
cd blockbook

#  1. Change source to Ubuntu 20.04
#  2. Set non-interactive installation for TZData as it freezes after Geo area selection
#      https://serverfault.com/questions/949991/how-to-install-tzdata-on-a-ubuntu-docker-image
sed -i 's/FROM debian:9/FROM ubuntu:20.04\n#FROM debian:9\nARG DEBIAN_FRONTEND=noninteractive/g' build/docker/bin/Dockerfile

# Workaround to fix RocksDB build on Ubuntu, GCC 9+ is too restrictive, build fails with errors
#    RUN cd /opt/rocksdb && CFLAGS=-fPIC CXXFLAGS='-fPIC -Wno-error=deprecated-copy -Wno-error=pessimizing-move' make -j 4 release
sed -i 's# CFLAGS=-fPIC.*$# CFLAGS=-fPIC CXXFLAGS="-fPIC -Wno-error=deprecated-copy -Wno-error=pessimizing-move" make -j 4 release#g' build/docker/bin/Dockerfile

# Build
make all-bitcoin

# Disable Docker & free storage space
systemctl disable docker
systemctl stop docker
/bin/rm -rf /var/lib/docker
  • Build requires more than 4 GB (if I remember correctly) of free space for /var/lib/docker FS.
  • Build with FROM debian:10 did not work for Ubuntu 20.04.01 due to some broken dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants