Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: cdnbcguy on December 22, 2011, 09:56:24 AM



Title: 5.1 compile problems
Post by: cdnbcguy on December 22, 2011, 09:56:24 AM
When I do the required packages installation I get this error

Package libdb4.8++-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

When I do the make I then get this error

src/net.cpp:18:32: fatal error: miniupnpc/miniwget.h: No such file or directory
compilation terminated.

I'm running Ubuntu Narwhal. Any ideas, please?



Title: Re: 5.1 compile problems
Post by: cdnbcguy on December 28, 2011, 03:25:24 AM
No matter what I do, including deleting the bitcoin dir and re-cloning it from github, I still get

src/net.cpp:18:32: fatal error: miniupnpc/miniwget.h: No such file or directory
compilation terminated.


and that's with

make USE_UPNP=

However, I did notice that when I run qmake at the beginning it says this

qmake
Project MESSAGE: Building with UPNP support
Project MESSAGE: Building with UPNP support
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.

Is this important? Thanks for your time, by the way.


Title: Re: 5.1 compile problems
Post by: cdnbcguy on December 28, 2011, 01:44:02 PM
Got it.

the trick was to run qmake with

qmake "USE_UPNP=-"

instead of

qmake "USE_UPNP="


Title: Re: 5.1 compile problems
Post by: coingarbler on April 18, 2013, 08:43:13 AM
I had similar problems with Ubuntu 12.10 (quantal), but it worked with:

sudo apt-get install libminiupnpc-dev libminiupnpc8


which installed all the necessary header/library files.
The versions for narwhal will probably be different -
You can:
apt-cache search libminiupnpc

to find them.


Title: Re: 5.1 compile problems
Post by: Remember remember the 5th of November on April 18, 2013, 11:01:55 AM
When I do the required packages installation I get this error

Package libdb4.8++-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

When I do the make I then get this error

src/net.cpp:18:32: fatal error: miniupnpc/miniwget.h: No such file or directory
compilation terminated.

I'm running Ubuntu Narwhal. Any ideas, please?


Well duh, "fatal error: miniupnpc/miniwget.h: No such file or directory" was pretty self-explanatory, you apparently did not read after the first paragraph.