LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-23-2005, 03:16 PM   #1
cloudxiii
LQ Newbie
 
Registered: Feb 2005
Location: Tallahassee, FL, USA
Distribution: Slackware 10.1
Posts: 5

Rep: Reputation: 0
nmap: cannot execute binary file


I dont know if this is the appropriate forum for this but I am having some trouble running nmap. When I do a "nmap localhost" I get the following output:

bash: /usr/bin/nmap: cannot execute binary file

I have tried running it as root and as a regular user but neither work. It is executable and as far as I can tell I have all the necessary dependencies (if there even are any). This is the first time Ive seen this error and I really have no idea where to even start. If someone has any insight as to where I can begin troubleshooting this, Id really appreciate it.
 
Old 03-23-2005, 03:23 PM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
hmmmm...is it corrupted? You try reinstalling nmap?
 
Old 03-23-2005, 03:42 PM   #3
cloudxiii
LQ Newbie
 
Registered: Feb 2005
Location: Tallahassee, FL, USA
Distribution: Slackware 10.1
Posts: 5

Original Poster
Rep: Reputation: 0
I just tried to reinstall it through swaret and for some reason this is the version my stock install of slack 10.1 had on it (unless my swaret --upgrade -a installed it):
nmap-3.81-x86_64-1pcx
this doesnt look at all right and when i removed it and installed the nmap-3.81-i486-1arf version with installpkg it works. Any ideas how i got this other version?? Like i said i just did a clean install, compiled 2.6 kernel, added dropline, and configured swaret....other than that this is stock, if at all possible i want to make sure im only getting files for my architecture in the future...any suggestions would be great
 
Old 03-23-2005, 03:52 PM   #4
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
???It installed the 64 bit version of nmap? I'm not very familiar with slackware but did you do an x86_64 install by mistake?
 
Old 03-23-2005, 04:01 PM   #5
cloudxiii
LQ Newbie
 
Registered: Feb 2005
Location: Tallahassee, FL, USA
Distribution: Slackware 10.1
Posts: 5

Original Poster
Rep: Reputation: 0
i dont think so...i installed it using the adaptec option bc i have an adaptec card for my cd burner but it didnt say anything about being 64-bit and this nmap problem has been the first problem ive had at all since its been up. if anyone knows of a way for me to check this out, im open to suggestions.
 
Old 03-23-2005, 04:52 PM   #6
cloudxiii
LQ Newbie
 
Registered: Feb 2005
Location: Tallahassee, FL, USA
Distribution: Slackware 10.1
Posts: 5

Original Poster
Rep: Reputation: 0
i just ran "swaret --upgrade -a" again and it replaced my 32-bit version with the 64-bit version...all the other programs i have seem to be 32-bit...is there any way other than taking the -a off that i can tell swaret to only install versions that are 32-bit and compatible with my 686 arch?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Cannot Execute Binary File meshcurrent Linux - Software 3 07-09-2005 04:39 PM
cannot execute binary file babaliciouse Linux - Software 2 10-21-2004 12:50 PM
Cannot execute binary file pbagda Linux - General 4 01-19-2004 02:13 AM
cannot execute binary file azpeitia Red Hat 2 12-17-2003 01:09 AM
Cannot execute binary file Nooodle007 Linux - Software 2 06-25-2003 02:25 PM


All times are GMT -5. The time now is 12:59 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration