Post
Topic
Board Altcoin Discussion
Re: Compiling litecoin in ubuntu 12.04?
by
SAC
on 05/02/2013, 20:29:05 UTC
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:

apt-file search db_cxx.h
db4.6-doc: /usr/share/doc/db4.6-doc/ref/upgrade.3.0/db_cxx.html
db4.7-doc: /usr/share/doc/db4.7-doc/ref/upgrade.3.0/db_cxx.html
db4.8-doc: /usr/share/doc/db4.8-doc/programmer_reference/upgrade_3_0_db_cxx.html
db5.1-doc: /usr/share/doc/db5.1-doc/upgrading/upgrade_3_0_db_cxx.html
libdb4.6++-dev: /usr/include/db_cxx.h
libdb4.7++-dev: /usr/include/db_cxx.h
libdb4.8++-dev: /usr/include/db_cxx.h
libdb5.1++-dev: /usr/include/db_cxx.h

Edit: Necro thread, well still applies regardless.