Bitcoin Forum
December 10, 2016, 11:07:01 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Compiling litecoin in ubuntu 12.04?  (Read 11698 times)
maxcarjuzaa
Full Member
***
Offline Offline

Activity: 179


View Profile
May 10, 2012, 01:57:18 PM
 #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
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
tacotime
Legendary
*
Offline Offline

Activity: 1484



View Profile
May 10, 2012, 09: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

Code:
XMR: 44GBHzv6ZyQdJkjqZje6KLZ3xSyN1hBSFAnLP6EAqJtCRVzMzZmeXTC2AHKDS9aEDTRKmo6a6o9r9j86pYfhCWDkKjbtcns
EskimoBob
Legendary
*
Offline Offline

Activity: 910


Quality Printing Services by Federal Reserve Bank


View Profile
May 12, 2012, 12:04:58 PM
 #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.




While reading what I wrote, use the most friendliest and relaxing voice in your head.
BTW, Things in BTC bubble universes are getting ugly....
maxcarjuzaa
Full Member
***
Offline Offline

Activity: 179


View Profile
May 12, 2012, 04:42:27 PM
 #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!!!
Aldur1
Member
**
Offline Offline

Activity: 73


www.bitex.co.uk - A new begining in cryptotech


View Profile WWW
February 05, 2013, 04:31:14 PM
 #5

That sorted my issue out as well Thanks for a useful Post! Smiley

Donations: 1PX1uRHtWzYLBdbbRm2nbhqS3H4QcxqDkD
Bitcoin OTC WoT: http://bitcoin-otc.com/viewratingdetail.php?nick=aldur1
https://www.facebook.com/BitEx.Cryptocurrency.Solutions
https://twitter.com/bitEX_Ltd
http://instagram.com/bitex_ltd
http://www.linkedin.com/company/bitex-ltd
<html>
<a href="http://bitcoin.stackexchange.com/users/13963/hafnero">
<img src="http://bitcoin.stackexchange.com/users/flair/13963.png" width="208" height="58" alt="profile for hafnero at Bitcoin Stack Exchange, Q&amp;A for Bitcoin crypto-currency enthusiasts" title="profile for hafnero at Bitcoin Stack Exchange, Q&amp;A for Bitcoin crypto-currency enthusiasts">
</a>
</html>
SAC
Sr. Member
****
Offline Offline

Activity: 322


View Profile
February 05, 2013, 08: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.
viperaus
Jr. Member
*
Offline Offline

Activity: 42


View Profile
March 30, 2013, 12:06:18 AM
 #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 ...
wingsuit
Member
**
Offline Offline

Activity: 64


embrace firstbits!


View Profile
April 25, 2013, 08:22:12 AM
 #8

Thanks. Is there standard steps to install all dependencies after qmake?

FLY
theobtc
Newbie
*
Offline Offline

Activity: 6


View Profile
January 13, 2014, 07: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"
merockstar
Full Member
***
Offline Offline

Activity: 203

BTS: merockstar420


View Profile
January 13, 2014, 07:42:24 AM
 #10

holy crap, most useful post ever.

would have saved me tons of time months ago.

bookmarked and bumped.
EskimoBob
Legendary
*
Offline Offline

Activity: 910


Quality Printing Services by Federal Reserve Bank


View Profile
January 13, 2014, 11: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

While reading what I wrote, use the most friendliest and relaxing voice in your head.
BTW, Things in BTC bubble universes are getting ugly....
DariusK
Jr. Member
*
Offline Offline

Activity: 57


View Profile
January 08, 2015, 04:53:23 PM
 #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.




Leveilleur
Full Member
***
Offline Offline

Activity: 139


View Profile
March 30, 2015, 05: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.





hushus
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!