Title: Compiling litecoin in ubuntu 12.04? Post by: maxcarjuzaa on May 10, 2012, 01:57:18 PM He there I am trying to compile litecoind in a 12.04 but i am getting the following error message:
make -f makefile.unix USE_UPNP= g++ -c -pthread -Wextra -Wno-sign-compare -Wno-char-subscripts -Wno-invalid-offsetof -Wformat-security -g -DNOPCH -I/home/max/coblee-litecoin-9a77169/src -DUSE_SSL -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o obj/checkpoints.o checkpoints.cpp In file included from checkpoints.cpp:9:0: headers.h:40:20: fatal error: db_cxx.h: No such file or directory compilation terminated. make: *** [obj/checkpoints.o] Error 1 Thank you and best regards, Max Title: Re: Compiling litecoin in ubuntu 12.04? Post by: tacotime on May 10, 2012, 09:03:54 PM headers.h:40:20: fatal error: db_cxx.h: No such file or directory
It's pretty clear on what's going on I believe this file is included in the litecoin source Title: Re: Compiling litecoin in ubuntu 12.04? Post by: EskimoBob on May 12, 2012, 12:04:58 PM He there I am trying to compile litecoind in a 12.04 but i am getting the following error message: make -f makefile.unix USE_UPNP= g++ -c -pthread -Wextra -Wno-sign-compare -Wno-char-subscripts -Wno-invalid-offsetof -Wformat-security -g -DNOPCH -I/home/max/coblee-litecoin-9a77169/src -DUSE_SSL -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o obj/checkpoints.o checkpoints.cpp In file included from checkpoints.cpp:9:0: headers.h:40:20: fatal error: db_cxx.h: No such file or directory compilation terminated. make: *** [obj/checkpoints.o] Error 1 Thank you and best regards, Max If you want no UPnP support and do not have miniupnpc installed, you need to use USE_UPNP=- db_cxx.h: No such file or directory - You probably did not install libdb++-dev run: Code: $ sudo apt-get install libdb++-dev Let me know, did it help. Title: Re: Compiling litecoin in ubuntu 12.04? Post by: maxcarjuzaa on May 12, 2012, 04:42:27 PM He there I am trying to compile litecoind in a 12.04 but i am getting the following error message: make -f makefile.unix USE_UPNP= g++ -c -pthread -Wextra -Wno-sign-compare -Wno-char-subscripts -Wno-invalid-offsetof -Wformat-security -g -DNOPCH -I/home/max/coblee-litecoin-9a77169/src -DUSE_SSL -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o obj/checkpoints.o checkpoints.cpp In file included from checkpoints.cpp:9:0: headers.h:40:20: fatal error: db_cxx.h: No such file or directory compilation terminated. make: *** [obj/checkpoints.o] Error 1 Thank you and best regards, Max If you want no UPnP support and do not have miniupnpc installed, you need to use USE_UPNP=- db_cxx.h: No such file or directory - You probably did not install libdb++-dev run: Code: $ sudo apt-get install libdb++-dev Let me know, did it help. It did help!!!! Thank you!!! Title: Re: Compiling litecoin in ubuntu 12.04? Post by: Aldur1 on February 05, 2013, 04:31:14 PM That sorted my issue out as well Thanks for a useful Post! :)
Title: Re: Compiling litecoin in ubuntu 12.04? Post by: SAC on February 05, 2013, 08:29:05 PM He there I am trying to compile litecoind in a 12.04 but i am getting the following error message: make -f makefile.unix USE_UPNP= g++ -c -pthread -Wextra -Wno-sign-compare -Wno-char-subscripts -Wno-invalid-offsetof -Wformat-security -g -DNOPCH -I/home/max/coblee-litecoin-9a77169/src -DUSE_SSL -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o obj/checkpoints.o checkpoints.cpp In file included from checkpoints.cpp:9:0: headers.h:40:20: fatal error: db_cxx.h: No such file or directory compilation terminated. make: *** [obj/checkpoints.o] Error 1 Thank you and best regards, Max If you end up with similar errors in the future when compiling install the apt-file program then sudo apt-file update, you can then search as normal user to find the package(s) containing the missing file. Code:
Edit: Necro thread, well still applies regardless. Title: Re: Compiling litecoin in ubuntu 12.04? Post by: viperaus on March 30, 2013, 12:06:18 AM Quote db_cxx.h: No such file or directory - You probably did not install libdb++-dev run: Code: $ sudo apt-get install libdb++-dev Let me know, did it help. Helped me out .. thanks :) - i was installing libdb-dev only ... Title: Re: Compiling litecoin in ubuntu 12.04? Post by: wingsuit on April 25, 2013, 08:22:12 AM Thanks. Is there standard steps to install all dependencies after qmake?
Title: Re: Compiling litecoin in ubuntu 12.04? Post by: theobtc on January 13, 2014, 07:03:04 AM Thanks. Is there standard steps to install all dependencies after qmake? See https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md (https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md), section "Dependency Build Instructions" Title: Re: Compiling litecoin in ubuntu 12.04? Post by: merockstar on January 13, 2014, 07:42:24 AM holy crap, most useful post ever.
would have saved me tons of time months ago. bookmarked and bumped. Title: Re: Compiling litecoin in ubuntu 13.10? Post by: EskimoBob on January 13, 2014, 11:31:08 AM and if something goes wrong and you need to recompile, use:
Code: $ make clean -f makefile.unix BTW, this will delete your litecoind if it exists in /src/ after you have compiled it and end up with huge litecoind (over 100 MB), run Code: $ strip litecoind Title: Re: Compiling litecoin in ubuntu 12.04? Post by: DariusK on January 08, 2015, 04:53:23 PM :)THX
:) :) :) :) He there I am trying to compile litecoind in a 12.04 but i am getting the following error message: make -f makefile.unix USE_UPNP= g++ -c -pthread -Wextra -Wno-sign-compare -Wno-char-subscripts -Wno-invalid-offsetof -Wformat-security -g -DNOPCH -I/home/max/coblee-litecoin-9a77169/src -DUSE_SSL -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o obj/checkpoints.o checkpoints.cpp In file included from checkpoints.cpp:9:0: headers.h:40:20: fatal error: db_cxx.h: No such file or directory compilation terminated. make: *** [obj/checkpoints.o] Error 1 Thank you and best regards, Max If you want no UPnP support and do not have miniupnpc installed, you need to use USE_UPNP=- db_cxx.h: No such file or directory - You probably did not install libdb++-dev run: Code: $ sudo apt-get install libdb++-dev Let me know, did it help. Title: Re: Compiling litecoin in ubuntu 12.04? Post by: Leveilleur on March 30, 2015, 05:51:21 PM THANKKKSS ;D ;D
:)THX :) :) :) :) He there I am trying to compile litecoind in a 12.04 but i am getting the following error message: make -f makefile.unix USE_UPNP= g++ -c -pthread -Wextra -Wno-sign-compare -Wno-char-subscripts -Wno-invalid-offsetof -Wformat-security -g -DNOPCH -I/home/max/coblee-litecoin-9a77169/src -DUSE_SSL -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o obj/checkpoints.o checkpoints.cpp In file included from checkpoints.cpp:9:0: headers.h:40:20: fatal error: db_cxx.h: No such file or directory compilation terminated. make: *** [obj/checkpoints.o] Error 1 Thank you and best regards, Max If you want no UPnP support and do not have miniupnpc installed, you need to use USE_UPNP=- db_cxx.h: No such file or directory - You probably did not install libdb++-dev run: Code: $ sudo apt-get install libdb++-dev Let me know, did it help. |