Author

Topic: Compiling litecoin in ubuntu 12.04? (Read 12900 times)

full member
Activity: 120
Merit: 100
March 30, 2015, 12:51:21 PM
#13
THANKKKSS  Grin Grin

:)THX

 Smiley Smiley Smiley Smiley


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
and all the required deps will be pulled too.

Let me know, did it help.




newbie
Activity: 57
Merit: 0
January 08, 2015, 11:53:23 AM
#12
 :)THX



 Smiley Smiley Smiley Smiley


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
and all the required deps will be pulled too.

Let me know, did it help.




legendary
Activity: 910
Merit: 1000
Quality Printing Services by Federal Reserve Bank
January 13, 2014, 06:31:08 AM
#11
and if something goes wrong and you need to recompile, use:
Code:
$ make clean -f makefile.unix
to clean out old junk.

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 
full member
Activity: 203
Merit: 100
BTS: merockstar420
January 13, 2014, 02:42:24 AM
#10
holy crap, most useful post ever.

would have saved me tons of time months ago.

bookmarked and bumped.
newbie
Activity: 6
Merit: 0
January 13, 2014, 02:03:04 AM
#9
Thanks. Is there standard steps to install all dependencies after qmake?

See https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md, section "Dependency Build Instructions"
member
Activity: 64
Merit: 10
2100 trillion sats baby
April 25, 2013, 03:22:12 AM
#8
Thanks. Is there standard steps to install all dependencies after qmake?
newbie
Activity: 42
Merit: 0
March 29, 2013, 07:06:18 PM
#7
Quote
db_cxx.h: No such file or directory - You probably did not install libdb++-dev
run:  
Code:
$ sudo apt-get install libdb++-dev
and all the required deps will be pulled too.

Let me know, did it help.

Helped me out .. thanks  Smiley - i was installing libdb-dev only ...
SAC
sr. member
Activity: 322
Merit: 250
February 05, 2013, 03:29:05 PM
#6
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.
member
Activity: 73
Merit: 10
www.bitex.co.uk - A new begining in cryptotech
February 05, 2013, 11:31:14 AM
#5
That sorted my issue out as well Thanks for a useful Post! Smiley
full member
Activity: 188
Merit: 100
May 12, 2012, 11:42:27 AM
#4
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
and all the required deps will be pulled too.

Let me know, did it help.






It did help!!!!

Thank you!!!
legendary
Activity: 910
Merit: 1000
Quality Printing Services by Federal Reserve Bank
May 12, 2012, 07:04:58 AM
#3
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
and all the required deps will be pulled too.

Let me know, did it help.



legendary
Activity: 1484
Merit: 1005
May 10, 2012, 04:03:54 PM
#2
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
full member
Activity: 188
Merit: 100
May 10, 2012, 08:57:18 AM
#1
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
Jump to: