LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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-22-2006, 04:11 PM   #1
Jagtek
LQ Newbie
 
Registered: Mar 2006
Posts: 13

Rep: Reputation: 0
Newbie Install Question Netcat


Hi I just got into Linux for my first time and I was trying to download a version of netcat. I downloaded it and now im stuck on trying to figure out how to install it for use. Im
a long time windows user trying to convert so please any help you could offer would be great!

the file is nc110.tgz
 
Old 03-22-2006, 04:30 PM   #2
DeusExLinux
Member
 
Registered: May 2004
Location: Tampa, Fl
Distribution: Arch
Posts: 648

Rep: Reputation: 30
you need to install itfrom source. Extract the tarball, then run ./configure, make and make install.

What distro are you using? IS it in the repo?
 
Old 03-22-2006, 04:34 PM   #3
Jagtek
LQ Newbie
 
Registered: Mar 2006
Posts: 13

Original Poster
Rep: Reputation: 0
stumped

I just installed Ferdora Core to learn a little, which im finding to be a slow process.... Lol ok im really stumped now. maybe i should go find a book....
 
Old 03-22-2006, 04:41 PM   #4
Jagtek
LQ Newbie
 
Registered: Mar 2006
Posts: 13

Original Poster
Rep: Reputation: 0
I tried doing the following in the console but im not sure if im really on the right track or not?!?!

tar -zxvf nc110.tgz

it returned the following

tar: nc110.tgz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors

any ideas... i know im just doing something wrong, but i have no clue what it is....
 
Old 04-03-2006, 02:43 PM   #5
Jagtek
LQ Newbie
 
Registered: Mar 2006
Posts: 13

Original Poster
Rep: Reputation: 0
Almost there!!!

Ok I got the tarball extracted and it is currently sitting on my desktop. I'm not really sure where to go from here... There is no configure file, only a file named : Makefile I have another version installed but I want this one to use because of some of the options that are avalibe with it. What would be the next step to installing it?
 
Old 04-03-2006, 03:49 PM   #6
DeusExLinux
Member
 
Registered: May 2004
Location: Tampa, Fl
Distribution: Arch
Posts: 648

Rep: Reputation: 30
First of all, I would recommend extracting the file to somewhere other than your desktop.. like /home/$user/netcat

After you extract it, open a terminal, cd to the dir where the files are and run:
./configure


then, after that's done, you should run:
make

then, as root run:
make install

and you're done.
 
Old 04-03-2006, 05:49 PM   #7
Jagtek
LQ Newbie
 
Registered: Mar 2006
Posts: 13

Original Poster
Rep: Reputation: 0
Ok I moved the files to

/home/john/Ncat

but when i do the ./configure it says there is no such file or directory. There is in fact no configure file with the download!!??

If i try to (make) I have to enter a systemtype

I entered it as linux and got errors and then tried using generic as the system type and got the same errors.

they are as follows:

netcat.c.text+0x15ca): undefined reference to `res_init'
collect2: ld returned 1 exit status
make[1]: *** [nc] Error 1
make[1]: Leaving directory `/home/john/Ncat'
make: *** [linux] Error 2

there was more returned this is just the last little portion! Thanks!!!!!
 
Old 04-04-2006, 01:25 AM   #8
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
There's a file called README in that archive, yes? Here's some of what it says:

Quote:
Compiling is fairly straightforward. Examine the Makefile for a SYSTYPE that matches yours, and do "make ". The executable "nc" should appear.
If there is no relevant SYSTYPE section, try "generic". If you create new
sections for generic.h and Makefile to support another platform, please follow
the given format and mail back the diffs.

There are a couple of other settable #defines in netcat.c, which you can
include as DFLAGS="-DTHIS -DTHAT" to your "make" invocation without having to
edit the Makefile. See the following discussions for what they are and do.

If you want to link against the resolver library on SunOS [recommended] and
you have BIND 4.9.x, you may need to change XLIBS=-lresolv in the Makefile to
XLIBS="-lresolv -l44bsd".

Linux sys/time.h does not really support presetting of FD_SETSIZE; a harmless
warning is issued.

Some systems may warn about pointer types for signal(). No problem, though.
Some more info about "SYSTYPES" is in the makefile:

Quote:
# makefile for netcat, based off same ol' "generic makefile".
# Usually do "make systype" -- if your systype isn't defined, try "generic"
# or something else that most closely matches, see where it goes wrong, fix
# it, and MAIL THE DIFFS back to Hobbit.
 
Old 04-04-2006, 07:38 PM   #9
DeusExLinux
Member
 
Registered: May 2004
Location: Tampa, Fl
Distribution: Arch
Posts: 648

Rep: Reputation: 30
just run: make generic, in a term, and it should create the executible.
 
  


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
netcat question overbored Linux - Software 13 10-30-2004 05:26 PM
Netcat question igor8 Linux - Security 3 06-21-2004 01:55 PM
how to install the netcat? bin_shell Linux - Security 1 03-11-2004 11:24 AM
how to install netcat to RH9.0 ycli00 Linux - Networking 2 02-29-2004 07:31 AM
netcat install? Di0de Linux - Software 4 11-04-2003 11:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:40 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