Giter Club home page Giter Club logo

Comments (7)

ph4r05 avatar ph4r05 commented on May 26, 2024 5

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.

from blockbook.

eblackstone avatar eblackstone commented on May 26, 2024 1

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!

from blockbook.

karelbilek avatar karelbilek commented on May 26, 2024

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

from blockbook.

petrkr avatar petrkr commented on May 26, 2024

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++)

from blockbook.

martinboehm avatar martinboehm commented on May 26, 2024

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.

from blockbook.

karelbilek avatar karelbilek commented on May 26, 2024

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

from blockbook.

aussiehash avatar aussiehash commented on May 26, 2024

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

from blockbook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.