errors on linux

Don´t be shy, Linux is fun! =)
Post Reply
User avatar
computathug
Administrator
Administrator
Posts: 2693
Joined: 29 Mar 2007, 16:00
17
Location: UK
Contact:

errors on linux

Post by computathug »

k ive erm messed up somehow. k i have downloaded nmap4.21 now twice and i think its the first installation i knackered up - which is the reason i have downloaded the application again.

k i have opened xterm on debian and typed

Code: Select all

tar xvjf nmap -4.21ALPHA4.tar.bz2
and the results were

Code: Select all

tar: nmap -4.21ALPHA4.tar.bz2: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from pevious errors
i presume this is because i have made a mess of the first installation and also i may have not removed the files properly before downloading again. Does that make sense or am i wrong again lol

please help!!

I will learn linux, i will not quit :oops:

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 »

umm...see the whitespace in the package name? the file is named
nmap-4.21ALPHA4.tar.bz2
and not
nmap -4.21ALPHA4.tar.bz2
not only the file name is wrong, also whitespaces are not possible in filenames on *nix systems...keep this in mind for the future, saves a lot of trouble.
so:

Code: Select all

tar -jxvf nmap-4.21ALPHA4.tar.bz2
:wink:

I had some problems compiling this nmap version on Debian, the first time I tried it seemed the compiling process was caught in a loop....I stopped the process after 15 minutes and started again, the 2nd time it worked properly.... :wink:

User avatar
computathug
Administrator
Administrator
Posts: 2693
Joined: 29 Mar 2007, 16:00
17
Location: UK
Contact:

Post by computathug »

sorry that was an error on my part b_b i have actually done the correct command on my debian system.... i just mistyped it on here.

i left the system for about 30 mins now and have tried again and still i get the same error.

as i said, i have downloaded the package once b4 and and tried to unpack the file automaically like a winrar file. what i did after having major problems with these and seeking help was to right click on the files and sent them all to recycle bin. is this causing me problems now...? thanks guys

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 »

um...wait...are you sure you have been in the right directory when you entered the command?
let's do this step by step in a shell:

Code: Select all

cd /
wget http://download.insecure.org/nmap/dist/nmap-4.21ALPHA4.tar.bz2
tar -jxvf nmap-4.21ALPHA4.tar.bz2
cd nmap-4.21ALPHA4
./configure
make
make install
--------------------------------------------------------------------------------------------------------------------------
when this all is successfully done (compiling takes a while, so be patient):

Code: Select all

cd /
rm -rf nmap*
just to clean up...

now you should be able to start nmap, simply type nmap in the shell...avoid working on desktop, shell is much better and more efficient... :wink:

User avatar
computathug
Administrator
Administrator
Posts: 2693
Joined: 29 Mar 2007, 16:00
17
Location: UK
Contact:

Post by computathug »

i have to tried to download the file as u said with the dode and now im getting the error

Code: Select all

404 not found
20:39:16 ERROR 404: Not Found.


i have got the file downloaded already if this is any help located on my desktop in my downloads folder

my aim is also to get rid of the desktop and use the shell only as you stated in your last reply b_b. thanks for your reply

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 »

alright, let's do this:

Code: Select all

updatedb
this builds a database where the paths of all files are stored. it'll take a little, when done:

Code: Select all

locate nmap-4.21ALPHA4.tar.bz2
this will print the full path of the file, for example:

Code: Select all

/root/Desktop/MyDownloadfolder/nmap-4.21ALPHA4.tar.bz2
now let's move the file to /:

Code: Select all

cd /
mv /root/Desktop/MyDownloadfolder/nmap-4.21ALPHA4.tar.bz2 /
now you should be able to do what I posted before.
oh, and make sure you're logged in as root and not as user...if you're logged in as user you can become root by:

Code: Select all

su
you will be prompted for the root-password then (you will not see the password when you enter it).... :wink:

User avatar
computathug
Administrator
Administrator
Posts: 2693
Joined: 29 Mar 2007, 16:00
17
Location: UK
Contact:

Post by computathug »

tx for the help b_b im finally gettin somewhere. i have managed to untar the file now but get the following errors when using

Code: Select all

computathug:/home/thuggy/Desktop/Downloads/nmap-4.214#
./configure
checking for gcc...no
checking for cc...no
checking for cc...no
checking forcl...no
configure: error: no acceptible c complier found in $PATH
only thing that is dif from normal is that i have unplugged the lan

tx again guys

User avatar
Gogeta70
^_^
^_^
Posts: 3275
Joined: 25 Jun 2005, 16:00
18

Post by Gogeta70 »

download both GNU GCC and GCC-C++, i had the same error and doing the things i said before worked fine. Thanks for the install tutorial, b_b.
¯\_(ツ)_/¯ It works on my machine...

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 »

yep! simply install gcc by:

Code: Select all

apt-get install gcc
:wink:

User avatar
computathug
Administrator
Administrator
Posts: 2693
Joined: 29 Mar 2007, 16:00
17
Location: UK
Contact:

Post by computathug »

cheers guys i do appreciate this.

so now i have downloaded both packages as advised and both installed np
i then did the following commands

Code: Select all

updatedb
locate nmap-4.21ALPHA4
which then takes me to the directory

./configure

and it gives me the error

bash: ./configure: no such file or directory

bet ya fed up of me already :roll:

User avatar
computathug
Administrator
Administrator
Posts: 2693
Joined: 29 Mar 2007, 16:00
17
Location: UK
Contact:

Post by computathug »

gnore last post thanks update soon cheers again :wink:

k now i am in the correct directory and when i use the command

Code: Select all

./configure
checkibg for gcc...gcc
checking for C compiler default output filename... configure:error: C compiler cannot create exececutables
ahhhhhhhhhhh :oops:

k am going to keep updating this incase any 1 else has problems

with a bit of google help i narrowed my prob down to another missing component and therefore did the following

Code: Select all

 apt_get install libc6-dev
after this package was installed i did

Code: Select all

updatedb
k now i typed

Code: Select all

exit
after seeing i still needed c++ for some reason allthough i thought i had downloaded it already i did

Code: Select all

apt-get intall g++
then updated the files and went bk to the directory nd

Code: Select all

./configure


worked just fine

thanks for ure help guys now as that was my first package ive installed on linux i am happy ive consisted with trying and feels great to be on my way cheers guys

ps. for b_b

once the files were in make mode i realised i was in the matrix

sorry might be a bad joke just goes to show i do read the forums :D
Last edited by computathug on 23 Apr 2007, 12:15, edited 1 time in total.

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 »

hardest nmap install ever.... :lol:
seems libc-dev is missing, install it by:

Code: Select all

apt-get install libc6-dev
and then try again.... :wink:

but don't worry, as last chance you can still install nmap as Debian package, it's not the newest version but it will still do the job, install goes by

Code: Select all

apt-get install nmap
but first try what I said above... :wink:

edit: ok, cool, you already did that while I was posting... :lol:

User avatar
computathug
Administrator
Administrator
Posts: 2693
Joined: 29 Mar 2007, 16:00
17
Location: UK
Contact:

Post by computathug »

have got it goin thanks b_b but thanks for the help and it was worth it lol



cheers to www.suck-o.com

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 »

w00t! :D

that's what Linux is about....learning by doing! it's a little annoying sometimes but it's a sweet feeling when you finally got it and even learned something while doing it... :wink:

and here I have something for you when you have the feeling to look for new stuff to install:
http://packages.debian.org/stable/
have fun! :)

Post Reply