Can't compile nmap v4.76

Don´t be shy, Linux is fun! =)
Post Reply
User avatar
Stavros
ΜΟΛΩΝ ΛΑΒΕ
ΜΟΛΩΝ ΛΑΒΕ
Posts: 1098
Joined: 02 Jan 2006, 17:00
18
Location: Mississippi, U.S.A.

Can't compile nmap v4.76

Post by Stavros »

Ok, I downloaded the linux source and ran ./configure and I get an error:

Code: Select all

configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
configure: error: ./configure failed for libdnet-stripped
What does this mean?

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

ummm...is g++ (the C++ compiler) installed at all? seems it's not....
:wink:

User avatar
Stavros
ΜΟΛΩΝ ΛΑΒΕ
ΜΟΛΩΝ ΛΑΒΕ
Posts: 1098
Joined: 02 Jan 2006, 17:00
18
Location: Mississippi, U.S.A.

Post by Stavros »

Edit: Reading comprehension....

I swear I need to stop skimming. I installed g++ and it worked.

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

let me know what distro it is, for Debian style (Debian, Ubuntu, etc.) simply install it via apt-get, best get the C compiler (gcc) too at the same time:

Code: Select all

apt-get install g++ gcc
the error you got simply means /lib/cpp wasn't found, and because cpp is a part of g++ it is a almost safe sign that g++ isn't installed...for some weird reason it isn't part of a default Linux install, at least not of Debian and Ubuntu.

edit: oops, posted at the same time as you, good it worked now, but best get gcc too at this opportunity.. :)

Post Reply