Comments (7)
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.
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.
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.
According to manual there is
- 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.
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.
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.
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)
- bitcoin blockbook cannot sync HOT 4
- When generaing reciceve adresses, it generates 21 insetad of 20 HOT 1
- Add support for FSOCIETY (FSC) coin
- Unnecessary check logic in get transaction API HOT 5
- Get address pagination issue HOT 1
- value/value_in column logic in api:https://litecoin-blockbook-ap.internal.nodereal.io/api/v2/block/100000 HOT 2
- blockbook data source
- Token decimals - manual correction of contract metadata
- Blockbook stopped indexing Sepolia after Hardfork HOT 2
- Spending URL falsely showing found if the output is not spent but another output in the tx is
- Query transaction that does not exist in the mempool?
- Use constant key in block filters
- Make block filter API future-proof
- Error when trying to run blockbook manually inside a Docker container HOT 2
- Dash InstantSend on xPub API HOT 7
- Identical Ethereum servers showing different fees for a transaction HOT 1
- PIVX Blockbook issue - returning wrong hash HOT 4
- BTC Blockbook Issue HOT 7
- ethereum update from geth to erigon HOT 6
- Duplicated txs id with one address HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blockbook.