lbryio / lbrycrd

The blockchain that provides the digital content namespace for the LBRY protocol
https://lbry.com
MIT License
2.57k stars 178 forks source link

Fail Kubuntu 22.04.1 LTS #413

Open juanpc2018 opened 2 years ago

juanpc2018 commented 2 years ago

Precompíled version Apr 30, 2021 v0.17.3.3 https://github.com/lbryio/lbrycrd/commit/7afc4c418a3beae4a57c8fd91e527ada349a69c7 v0.17.3.3 - small update

does Not download the chain... always has chacksum mismatch around: 0.0003


compiling from source also has errors

./packaging/build_linux_64bit.sh
./src/test/test_lbrycrd
Package libdb4.8++-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libdb4.8-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libdb4.8-dev' has no installation candidate
E: Package 'libdb4.8++-dev' has no installation candidate

22.04.1 LTS has libdb-dev 5.3


static

    "ranlib" "bin.v2/libs/test/build/gcc-11.2.0/release/link-static/threading-multi/visibility-hidden/libboost_unit_test_framework-mt-x64.a"

common.copy stage/lib/libboost_test_exec_monitor-mt-x64.a

    cp "bin.v2/libs/test/build/gcc-11.2.0/release/link-static/threading-multi/visibility-hidden/libboost_test_exec_monitor-mt-x64.a"  "stage/lib/libboost_test_exec_monitor-mt-x64.a"

common.copy stage/lib/libboost_unit_test_framework-mt-x64.a

    cp "bin.v2/libs/test/build/gcc-11.2.0/release/link-static/threading-multi/visibility-hidden/libboost_unit_test_framework-mt-x64.a"  "stage/lib/libboost_unit_test_framework-mt-x64.a"

...failed updating 5 targets...
...skipped 6 targets...
...updated 128 targets...
make: *** [funcs.mk:244: /home/mama/Descargas/lbrycrd/depends/work/build/x86_64-pc-linux-gnu/boost/1_69_0-bc9596c8782/./.stamp_built] Error 1


$ sudo add-apt-repository ppa:bitcoin/bitcoin
Repository: 'deb https://ppa.launchpadcontent.net/bitcoin/bitcoin/ubuntu/ jammy main'
Description:
NOT MAINTAINED. The OS-library linking packages here had a series of issues.

PLEASE DOWNLOAD DIRECTLY FROM bitcoincore.org (and verify the signatures of said files).

IF YOU WANT AUTO-UPDATES, please see the officially-maintained snap package -
https://github.com/bitcoin-core/packaging/tree/master/snap
More info: https://launchpad.net/~bitcoin/+archive/ubuntu/bitcoin
Adding repository.
Press [ENTER] to continue or Ctrl-c to cancel.

Err:18 https://ppa.launchpadcontent.net/bitcoin/bitcoin/ubuntu jammy Release                         
  404  Not Found [IP: 185.125.190.52 443]

What version of Bitcoin core is LBRY compatible?

https://snapcraft.io/bitcoin-core https://bitcoincore.org/

Apr 30, 2021 v0.17.3.3 7afc4c4 v0.17.3.3 - small update

similar date: 0.20.1 - 0.21.1

sudo snap install bitcoin-core --channel=0.21/stable
sudo snap install bitcoin-core --channel=0.20/stable

Newer:

sudo snap install bitcoin-core --channel=22.x/stable
sudo snap install bitcoin-core --channel=23.x/stable

Older:

sudo snap install bitcoin-core --channel=0.19/stable
sudo snap install bitcoin-core --channel=0.18/stable
sudo snap install bitcoin-core --channel=0.17/stable
juanpc2018 commented 2 years ago
$ sudo snap install bitcoin-core --channel=23.x/stable
$ ./autogen.sh

configure.ac:28: warning: The macro `AC_PROG_CC_C89' is obsolete.
configure.ac:28: You should run autoupdate.

configure.ac:628: warning: $as_echo is obsolete; use AS_ECHO(["message"]) instead

$ ./configure --enable-static --disable-shared --with-pic --without-gui CXXFLAGS="-O3 -march=native"

checking for sysctl KERN_ARND... no
checking for if type char equals int8_t... no
checking for Berkeley DB C++ headers... no
configure: error: libdb_cxx headers missing, LBRYcrd Core requires this library for wallet functionality (--disable-wallet to disable wallet functionality)

$ sudo apt install libdb-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libdb-dev is already the newest version (1:5.3.21~exp1ubuntu4).
The following package was automatically installed and is no longer required:
  libpkgconf3
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
juanpc2018 commented 2 years ago
$ sudo snap remove bitcoin-core
bitcoin-core removed
$ sudo snap install bitcoin-core --channel=22.x/stable
bitcoin-core (22.x/stable) 22.0 from Bitcoin Core installed
$ ./autogen.sh

configure.ac:28: warning: The macro `AC_PROG_CC_C89' is obsolete.
configure.ac:28: You should run autoupdate.
configure.ac:628: warning: $as_echo is obsolete; use AS_ECHO(["message"]) instead

$ ./configure --enable-static --disable-shared --with-pic --without-gui CXXFLAGS="-O3 -march=native"
checking for sysctl KERN_ARND... no
checking for if type char equals int8_t... no
checking for Berkeley DB C++ headers... no
configure: error: libdb_cxx headers missing, LBRYcrd Core requires this library for wallet functionality (--disable-wallet to disable wallet functionality)
juanpc2018 commented 2 years ago
$ sudo snap remove bitcoin-core
bitcoin-core removed
$ sudo snap install bitcoin-core --channel=0.20/stable
bitcoin-core (0.20/stable) 0.20.1 from Bitcoin Core installed

$ ./autogen.sh
configure.ac:28: warning: The macro `AC_PROG_CC_C89' is obsolete.
configure.ac:28: You should run autoupdate.

$ ./configure --enable-static --disable-shared --with-pic --without-gui CXXFLAGS="-O3 -march=native"
checking for sysctl KERN_ARND... no
checking for if type char equals int8_t... no
checking for Berkeley DB C++ headers... no
configure: error: libdb_cxx headers missing, LBRYcrd Core requires this library for wallet functionality (--disable-wallet to disable wallet functionality)
juanpc2018 commented 2 years ago
$ sudo apt install libdb++-dev
$ sudo apt install libdbi++-dev
$ ./configure --enable-static --disable-shared --with-pic --without-gui CXXFLAGS="-O3 -march=native"

checking for if type char equals int8_t... no
checking for Berkeley DB C++ headers... default
configure: error: Found Berkeley DB other than 4.8, required for portable wallets (--with-incompatible-bdb to ignore or --disable-wallet to disable wallet functionality)
juanpc2018 commented 2 years ago
$ ./configure --enable-static --disable-shared --with-pic --without-gui CXXFLAGS="-O3 -march=native" --with-incompatible-bdb

checking for sysctl KERN_ARND... no
checking for if type char equals int8_t... no
checking for Berkeley DB C++ headers... default
configure: WARNING: Found Berkeley DB other than 4.8; wallets opened by this build will not be portable!
checking for main in -ldb_cxx-4.8... no
checking for main in -ldb_cxx... yes
checking for miniupnpc/miniwget.h... yes
checking for upnpDiscover in -lminiupnpc... yes
checking for miniupnpc/miniupnpc.h... yes
checking for upnpDiscover in -lminiupnpc... (cached) yes
checking for miniupnpc/upnpcommands.h... yes
checking for upnpDiscover in -lminiupnpc... (cached) yes
checking for miniupnpc/upnperrors.h... yes
checking for upnpDiscover in -lminiupnpc... (cached) yes
checking whether to build LBRYcrd Core GUI... no (Qt5)
checking for boostlib >= 1.47.0... yes
checking whether the Boost::System library is available... yes
configure: error: Could not find a version of the boost_system library!
juanpc2018 commented 2 years ago
$ sudo apt install libboost-system-dev
$ sudo apt install libboost-system1.74.0
$ sudo apt install libboost-system1.74-dev
$ sudo apt install libboost-chrono1.71.0

$ ./configure --enable-static --disable-shared --with-pic --without-gui CXXFLAGS="-O3 -march=native" --with-incompatible-bdb

checking for boostlib >= 1.47.0... yes
checking whether the Boost::System library is available... yes
checking for exit in -lboost_system... yes
checking whether the Boost::Filesystem library is available... yes
checking for exit in -lboost_filesystem... no
configure: error: Could not link against boost_filesystem !
juanpc2018 commented 2 years ago
sudo apt install libboost-filesystem-dev
sudo apt install libboost-filesystem1.74
sudo apt install libboost-filesystem1.74-dev

$ ./configure --enable-static --disable-shared --with-pic CXXFLAGS="-O3 -march=native" --with-incompatible-bdb

checking for boostlib >= 1.47.0... yes
checking whether the Boost::System library is available... yes
checking for exit in -lboost_system... yes
checking whether the Boost::Filesystem library is available... yes
checking for exit in -lboost_filesystem... yes
checking whether the Boost::Thread library is available... yes
checking for exit in -lboost_thread... no
configure: error: Could not link against boost_thread !
juanpc2018 commented 2 years ago
sudo apt install libboost-thread1.74.0
sudo apt install libboost-thread1.74-dev
sudo apt install libboost-thread-dev
$ ./configure --enable-static --disable-shared --with-pic CXXFLAGS="-O3 -march=native" --with-incompatible-bdb

checking whether the Boost::Locale library is available... yes
checking for exit in -lboost_locale... no
configure: error: Could not link against boost_locale !
juanpc2018 commented 2 years ago
sudo apt install libboost-locale-dev
sudo apt install libboost-locale1.74.0
sudo apt install libboost-locale1.74-dev
$ ./configure --enable-static --disable-shared --with-pic CXXFLAGS="-O3 -march=native" --with-incompatible-bdb

checking whether the Boost::Locale library is available... yes
checking for exit in -lboost_locale... yes
checking whether the Boost::Unit_Test_Framework library is available... yes
configure: error: Could not link against boost_locale !
juanpc2018 commented 2 years ago
sudo apt install libunittest++2
sudo apt install libunittest++-dev
$ ./configure --enable-static --disable-shared --with-pic CXXFLAGS="-O3 -march=native" --with-incompatible-bdb

checking whether the Boost::Unit_Test_Framework library is available... yes
configure: error: Could not link against boost_locale !

$ sudo apt install libboost-locale-dev libboost-locale1.74.0 libboost-locale1.74-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libboost-locale1.74.0 is already the newest version (1.74.0-14ubuntu3).
libboost-locale1.74.0 set to manually installed.
libboost-locale-dev is already the newest version (1.74.0.3ubuntu7).
libboost-locale1.74-dev is already the newest version (1.74.0-14ubuntu3).
libboost-locale1.74-dev set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
roylee17 commented 2 years ago

Hi, thanks for the feedback.

We're actually moving foward to our Go implementation: lbcd + lbcwallet.

Feel free to give it a shot and feedback on the lbcd GitHub repo.

BrannonKing commented 2 years ago

It's unclear whether or not the boost locale implementation you're attempting to use has ICU support. For lbcd, we did the ICU support manually. All the 3rd-party support had it wrong. The same should be done with lbrycrd. Drop boost-locale and just use the ICU tables directly.