LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-22-2009, 01:06 AM   #1
mq15
Member
 
Registered: Apr 2009
Location: Pakistan
Distribution: Linux Mint Cinnamon
Posts: 224

Rep: Reputation: 31
Question Please see if I am Installing the right way


I did not know installation of applications in Linux and learnt it from this thread:
http://www.linuxquestions.org/questi...oblems-397154/

So here is what I did in my terminal:
Quote:
tar -xzf nmap-4.76.tgz
./configure
make
make install
but 'make install' issues this error:

Quote:
[root@localhost nmap-4.76]# make install
/usr/bin/install -c -d /usr/local/bin /usr/local/share/man/man1 /usr/local/share/nmap
/usr/bin/install -c -c -m 755 nmap /usr/local/bin/nmap
/usr/bin/strip -x /usr/local/bin/nmap
/usr/bin/install -c -c -m 644 docs/nmap.1 /usr/local/share/man/man1/
/usr/bin/install -c -c -m 644 docs/nmap.xsl /usr/local/share/nmap/
/usr/bin/install -c -c -m 644 docs/nmap.dtd /usr/local/share/nmap/
/usr/bin/install -c -c -m 644 nmap-services /usr/local/share/nmap/
/usr/bin/install -c -c -m 644 nmap-rpc /usr/local/share/nmap/
/usr/bin/install -c -c -m 644 nmap-os-db /usr/local/share/nmap/
/usr/bin/install -c -c -m 644 nmap-service-probes /usr/local/share/nmap/
/usr/bin/install -c -c -m 644 nmap-protocols /usr/local/share/nmap/
/usr/bin/install -c -c -m 644 nmap-mac-prefixes /usr/local/share/nmap/
/usr/bin/install -c -d /usr/local/share/nmap/scripts
cp -f scripts/script.db scripts/*.nse /usr/local/share/nmap/scripts
/usr/bin/install -c -d /usr/local/share/nmap/nselib
cp -f nselib/*.lua /usr/local/share/nmap/nselib
/usr/bin/install -c -d /usr/local/bin /usr/local/share/man/man1
cd zenmap && /usr/bin/python setup.py install --prefix "/usr/local"
running install
error: invalid Python installation: unable to open /usr/lib/python2.5/config/Makefile (No such file or directory)
make: *** [install-zenmap] Error 1
[root@localhost nmap-4.76]#
Please tell me where am I wrong.
Regards.
 
Old 06-22-2009, 02:27 AM   #2
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Rep: Reputation: 34
Do you have a folder in /usr/lib named python2.5?

Is Python installed? What distribution is this that you are running?
 
Old 06-22-2009, 03:03 AM   #3
rizwanrafique
Member
 
Registered: Jul 2006
Distribution: Debian, Ubuntu, openSUSE, CentOS
Posts: 147

Rep: Reputation: 19
This is one of the least favoured way of installing new applications (at least for beginners). If you let us know your distribution we can give you more information about how to install nmap (or in fact any general application) easily.
 
Old 06-22-2009, 03:10 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
If you're running this on Fedora 9 as in your previous threads, you can try to install the binary package of nmap and avoid a lot of headache:
Code:
yum install nmap
or look for it in Add/Remove Software.
 
Old 06-22-2009, 07:34 AM   #5
mq15
Member
 
Registered: Apr 2009
Location: Pakistan
Distribution: Linux Mint Cinnamon
Posts: 224

Original Poster
Rep: Reputation: 31
Thanks all of you...
@jsteel
I don't how if Pythod is installed or not. I don't know even how to get to know if Pythod is installed or not. I am using Fedora9. There exist '/usr/lib/pythod2.5' directory but no '/usr/lib/pythod2.5/config' directory and thus no '/usr/lib/pythod2.5/config/Makefile'. I don't know what to do next.
@rizwanrafique
I am using fedora9. So please DO tell us installation of nmap as well as installation in general.
@colucix
I am happy and thankful to you as you remember me from my previous post. In System>Administration>Add/Remove Software I searched with 'nmap' and 3 files (or whatever should I say) appeared. Selecting and clicking the 'install' button, does nothing. I don't have any idea.
 
Old 06-22-2009, 07:42 AM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by mq15 View Post
I don't how if Pythod is installed or not. I don't know even how to get to know if Pythod is installed or not. I am using Fedora9. There exist '/usr/lib/pythod2.5' directory but no '/usr/lib/pythod2.5/config' directory and thus no '/usr/lib/pythod2.5/config/Makefile'. I don't know what to do next.
This means you have Python installed, but not the python-devel package. Usually when you compile an application from source, and this application depends on some other software, you must have the -devel packages installed. They contain the includes and libraries needed for your compilation and they are not installed by default.

In this case, you have python installed, but you cannot compile another application which uses the python development files until you install the python-devel:
Code:
yum install python-devel
Quote:
I am happy and thankful to you as you remember me from my previous post. In System>Administration>Add/Remove Software I searched with 'nmap' and 3 files (or whatever should I say) appeared. Selecting and clicking the 'install' button, does nothing. I don't have any idea.
This can be a problem related to the Add/Remove Software application. Try the installation from the command line through yum, as suggested in my previous post (take in mind you can install packages as root). If it doesn't work, it should at least tell you why. If you encounter some error, copy/paste it here so we can take a look.

PS - To check if you have a python package installed or not, try the command
Code:
yum list python*
it will give the list of "Installed packages" and of "Available packages". The latter is the list of packages retrieved from the known Fedora repository, that you can easily install as mentioned above.

Last edited by colucix; 06-22-2009 at 07:46 AM.
 
Old 06-23-2009, 11:47 PM   #7
mq15
Member
 
Registered: Apr 2009
Location: Pakistan
Distribution: Linux Mint Cinnamon
Posts: 224

Original Poster
Rep: Reputation: 31
Thank you very much colucix and all others..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Toshiba Satellite 110CS installing pdf reader, installing linux nappy501 Linux - Laptop and Netbook 3 10-11-2008 10:45 AM
Installing Vega Strike, having trouble installing SDL_mixer-devel captainxark Fedora 3 09-13-2008 06:29 PM
Installing individual OpenOffice apps without installing the entire suite? roystonlodge DamnSmallLinux 3 06-06-2008 01:14 PM
Installing the nvidia driver off the web site and installing rpm in ubuntu? darkhatter Ubuntu 3 02-19-2006 02:44 PM
Installing Mandriva 2006 - Hangs installing hard drive controller nvidia mcp04 sata DanielJPayne Mandriva 7 01-19-2006 02:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration