Author

Topic: Compiling from source on Debian, getting lboost error (Bounty) (Read 1551 times)

hero member
Activity: 508
Merit: 500
Techwolf on #bitcoin and Reddit
Try "sudo apt-get install libboost-all-dev". I'm used to seeing apt on Debian-based installs and yum on RedHat-based ones, so that may be part of your issue. You may need to remove the yum version first for it to work though.
cp1
hero member
Activity: 616
Merit: 500
Stop using branwallets
What version do you recommend?

Whichever one the wallet developer used.
hero member
Activity: 979
Merit: 510
You should install libboost1.48-all-dev package

yum install libboost1.48-all-dev
No package libboost1.48-all-dev available.
Error: Nothing to do

I also tried boost all dev, which installed, but doesn't help with compiling.


Just because the version is the latest in yum doesn't mean it's the latest.  Find the source and compile/install/ldconfig to see if that helps.

What version do you recommend?
I tried their latest one, and had the same error/issue.
I did have to uninstall the yum version first.
full member
Activity: 154
Merit: 100
You should install libboost1.48-all-dev package
cp1
hero member
Activity: 616
Merit: 500
Stop using branwallets
Just because the version is the latest in yum doesn't mean it's the latest.  Find the source and compile/install/ldconfig to see if that helps.
hero member
Activity: 979
Merit: 510
Do you have libboost_thread installed?

Package boost-thread-1.41.0-18.el6.x86_64 already installed and latest version
Nothing to do
I'm currently using yum on CentOS, I see a lot of boost options, but nothing libbost.


============================== N/S Matched: boost ==============================
boost-date-time.i686 : Runtime component of boost date-time library
boost-date-time.x86_64 : Runtime component of boost date-time library
boost-devel.x86_64 : The Boost C++ headers and shared development libraries
boost-doc.x86_64 : HTML documentation for the Boost C++ libraries
boost-filesystem.i686 : Runtime component of boost filesystem library
boost-filesystem.x86_64 : Runtime component of boost filesystem library
boost-graph.i686 : Runtime component of boost graph library
boost-graph.x86_64 : Runtime component of boost graph library
boost-graph-mpich2.x86_64 : Runtime component of parallel boost graph library
boost-graph-openmpi.x86_64 : Runtime component of parallel boost graph library
boost-iostreams.i686 : Runtime component of boost iostreams library
boost-iostreams.x86_64 : Runtime component of boost iostreams library
boost-math.i686 : Math functions for boost TR1 library
boost-math.x86_64 : Math functions for boost TR1 library
boost-mpich2.x86_64 : Runtime component of Boost.MPI library
boost-mpich2-devel.x86_64 : Shared library symlinks for Boost.MPI
boost-mpich2-python.x86_64 : Python runtime component of Boost.MPI library
boost-openmpi.x86_64 : Runtime component of Boost.MPI library
boost-openmpi-devel.x86_64 : Shared library symlinks for Boost.MPI
boost-openmpi-python.x86_64 : Python runtime component of Boost.MPI library
boost-program-options.i686 : Runtime component of boost program_options library
boost-program-options.x86_64 : Runtime component of boost program_options
                             : library
boost-python.x86_64 : Runtime component of boost python library
boost-regex.i686 : Runtime component of boost regular expression library
boost-regex.x86_64 : Runtime component of boost regular expression library
boost-serialization.i686 : Runtime component of boost serialization library
boost-serialization.x86_64 : Runtime component of boost serialization library
boost-signals.i686 : Runtime component of boost signals and slots library
boost-signals.x86_64 : Runtime component of boost signals and slots library
boost-static.x86_64 : The Boost C++ static development libraries
boost-system.i686 : Runtime component of boost system support library
boost-system.x86_64 : Runtime component of boost system support library
boost-test.i686 : Runtime component of boost test library
boost-test.x86_64 : Runtime component of boost test library
boost-thread.i686 : Runtime component of boost thread library
boost-thread.x86_64 : Runtime component of boost thread library
boost-wave.i686 : Runtime component of boost C99/C++ preprocessing library
boost-wave.x86_64 : Runtime component of boost C99/C++ preprocessing library
mingw32-boost.noarch : MinGW Windows port of Boost C++ Libraries
mingw32-boost-static.noarch : Static version of the MinGW Windows Boost C++
                            : library
boost.x86_64 : The free peer-reviewed portable C++ source libraries

  Name and summary matches only, use "search all" for everything.
cp1
hero member
Activity: 616
Merit: 500
Stop using branwallets
Do you have libboost_thread installed?
hero member
Activity: 979
Merit: 510
I'm compiling by source on CentOS, I've tried many coins and get the same result now:

suncoin/src/
 make -f makefile.unix USE_UPNP=-
 produces:


 g++ -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DUSE_IPV6 -DBOOST_SPIRIT_THREADSAFE -I/suncoin/src -I/suncoin/src/obj -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -o suncoind obj/version.o obj/checkpoints.o obj/netbase.o obj/addrman.o obj/crypter.o obj/key.o obj/db.o obj/init.o obj/irc.o obj/keystore.o obj/main.o obj/net.o obj/protocol.o obj/bitcoinrpc.o obj/rpcdump.o obj/rpcnet.o obj/rpcrawtransaction.o obj/script.o obj/scrypt.o obj/sync.o obj/util.o obj/wallet.o obj/walletdb.o obj/noui.o -Wl,-z,relro -Wl,-z,now -Wl,-Bdynamic -l boost_system -l boost_filesystem -l boost_program_options -l boost_thread -l db_cxx -l ssl -l crypto -Wl,-Bdynamic -l z -l dl -l pthread
 /usr/bin/ld: cannot find -lboost_thread
 collect2: ld returned 1 exit status
 make: *** [suncoind] Error 1


Using:
make -f makefile.unix BOOST_LIB_SUFFIX=-mt
It compiles, but the program has a * next to it in "ls" and produces:

./suncoind

EXCEPTION: 9key_error
 CKey::CKey() : EC_KEY_new_by_curve_name failed
piggycoin in AppInit()

terminate called after throwing an instance of 'key_error'
  what():  CKey::CKey() : EC_KEY_new_by_curve_name failed
Aborted (core dumped)

6 XPM bounty if I can get an altcoin properly compiled and working.

Read around 30 threads with no fix.
Jump to: