LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-19-2010, 09:14 PM   #1
sabagour03
LQ Newbie
 
Registered: Mar 2010
Posts: 6

Rep: Reputation: 0
how to install pacgen


Hi,
I am a newbie to Linux.I am trying to install pacgen. Steps for installing pacgen are as follows:
1. Make sure you have Libnet installed, pacgen was written with 1.1.2.1
installed.

2. Read the README file

3. Compile via the libnet-config script (at least this is how I did it):

gcc `libnet-config --cflags --defines` pacgen.c -o pacgen \
`libnet-config --libs`

4. Or for the lazy run the install.sh script

I have installed Libnet 1.1.2.1
when I compile via libnet-configure,I get the prompt '>' .I do not know how to proceed furthur
I would be happy to receive any information or instructions on installing pacgen
 
Old 03-20-2010, 05:37 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
The binary package 'pacgen110.tar.gz'
http://sourceforge.net/projects/pacgen/files/
Using ..
cd pacgen-1.10/
./pacgen <option>

And if you don't like the already compiled binary = 'pacgen'
you can build a new one with : sh install.sh
.. or ..
Code:
gcc `libnet-config --cflags --defines` pacgen.c -o pacgen `libnet-config --libs`
http://www.linuxquestions.org/linux/...Ask_a_Question

Last edited by knudfl; 03-20-2010 at 05:43 AM.
 
Old 03-20-2010, 07:12 AM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 469Reputation: 469Reputation: 469Reputation: 469Reputation: 469
Moved: This thread is more suitable in Linux-Newbie and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 06-19-2010, 06:44 PM   #4
alee
LQ Newbie
 
Registered: May 2008
Posts: 28

Rep: Reputation: 15
I am trying to compile the pacgen.c file with the given command iin the "Readme file". But i am getting error "ETH_H" symbol not found. (this is just one error, I am getting error on every single line).

I have libnet installed .. what to do?
 
Old 06-20-2010, 05:49 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Post # 4, @ alee :

Please see the instructions in post # 2.
And be absolutely sure, that 'libnet-devel' is installed.

Package name 'libnet-devel' : Fedora, Redhat, CentOS.
For Ubuntu , Debian the name is : 'libnet1-dev'.

http://www.linuxquestions.org/linux/...Ask_a_Question

..
 
Old 06-21-2010, 12:09 AM   #6
alee
LQ Newbie
 
Registered: May 2008
Posts: 28

Rep: Reputation: 15
I double checked all those things. i checked the libetn1 package from package repository. and both libnet1 and libnet1-devel are installed. but still the problem is there ..
 
Old 06-21-2010, 02:06 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
The idea with this http://www.linuxquestions.org/linux/...Ask_a_Question
... is that you tell, which OS, you are using.
By every question. Please.

Assume Ubuntu 10.04 Lucid :
sudo apt-get install libnet1-dev gcc-4.1
cd /usr/bin/
sudo ln -s libnetcfg libnet-config
.....
cd pacgen-1.10/
Code:
gcc-4.1 `libnet-config --cflags --defines` pacgen.c -o pacgen `libnet-config --libs`
( 'gcc-4.2' is also usable.)

... Or you can edit pacgen.c to use a later gcc :
gcc 4.3 http://gcc.gnu.org/gcc-4.3/porting_to.html
gcc 4.4 http://gcc.gnu.org/gcc-4.4/porting_to.html
..

Last edited by knudfl; 06-21-2010 at 05:18 PM.
 
  


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
Open Office will not install on factory install of Ubuntu 8.04 LTS on Dell Mini 10 trekgirl Linux - Laptop and Netbook 6 08-02-2009 12:37 AM
Ubuntu as frugal install, iso install, img install? impossible? nooby Ubuntu 15 08-22-2008 06:49 AM
Red Hat Linux 9 install: error "No devices found to install ... gunneszz Red Hat 1 03-10-2008 05:52 AM
apt-get install dependency problems with hplip software and kde install for Agnula maybi7 Linux - Software 1 02-03-2007 06:16 PM


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