LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-18-2013, 01:53 PM   #1
slack_
Member
 
Registered: Oct 2013
Distribution: Slackware, Arch
Posts: 99

Rep: Reputation: Disabled
Installing cnet network simulator


Hello, I've been trying for awhile to install packettracer on my system. I have the PacketTracer533_Generic_Fedora.tar.gz and packettracer.tar.gz packages. Apparently though I need PacketTracer533_i386_installer-rpm.bin package to install it in slackware. So after much searching I found that I'm most likely not going to be able to install packettracer on slackware. So, instead I am atempting to install cnet network simulator on my system. Originally I just downloaded a cnet.tgz and ran installpkg. It installed successfully but it doesn't run. So I extract the package and cd to the cnet directory, which is located in the root filesystem, not under /usr/bin or anything like that. Here are the contents of the directory:

Code:
-rw-------  1 333 110  2738 Mar 23  2012 ANNOUNCE
-rw-------  1 333 110  1036 Mar 23  2012 COPYRIGHT
-rw-------  1 333 110 15145 Mar 23  2012 GPLv2
-rw-------  1 333 110  1541 Mar 23  2012 Makefile
lrwxrwxrwx  1 333 110    10 Nov 18 13:34 cnet.h -> src/cnet.h
lrwxrwxrwx  1 333 110    21 Nov 18 13:34 cnetsupport.h -> support/cnetsupport.h
drwx------ 11 333 110  4096 Mar 23  2012 examples
drwx------  4 333 110  4096 Mar 23  2012 html
drwx------  2 333 110  4096 Mar 23  2012 lib
drwx------  3 333 110  4096 Nov 18 13:38 src
drwx------  2 333 110  4096 Mar 23  2012 support
Now, before I go further, I must mention that I DO indeed have a full install of slackware and if anyone tells me otherwise I will probably throw myself out a window because I've made very very sure that when I installed slackware it was a complete install(aside from KDE package sets). Ok. So, at this point I'm in the cnet directory and I've run make. This is the error I get:

Code:
cd src && make
make[1]: Entering directory `/cnet-3.2.4/src'
make[2]: Entering directory `/cnet-3.2.4/src'
gcc -std=c99 -Wall -Werror -pedantic -O3 -fPIC  -I/usr/include/tcl8.5 -c compile.c
In file included from compile.c:37:0:
compile/linux.c:2:20: fatal error: libelf.h: No such file or directory
compilation terminated.
make[2]: *** [compile.o] Error 1
make[2]: Leaving directory `/cnet-3.2.4/src'
make[1]: *** [it] Error 2
make[1]: Leaving directory `/cnet-3.2.4/src'
make: *** [it] Error 2
Obviously I'm missing libelf. I downloaded the slackbuild and when I try to execute it, I get this:

Code:
creating cache ./config.cache
checking whether make sets ${MAKE}... yes
checking for gcc... gcc
checking whether the C compiler (gcc -O2 -march=i486 -mtune=i686 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
Which means I'm officially stuck. Again, I'm sure I have a full install so I find it hard to believe that gcc is missing required packages.
 
Old 11-19-2013, 01:12 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,938

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
Quote:
Obviously I'm missing libelf.
No. "libelf.h" is a c header, a text file in /usr/include/libelf/.
Solution : $ cd /usr/local/include/
# ln -s /usr/include/libelf/libelf.h


Quote:
C compiler cannot create executables.
That's an issue. Some files are missing. In glibc ?
Somehow certain system files were moved / renamed or deleted ?
You will have to reinstall gcc and dependencies.


* The major / real problem with cnet-3.2.4 :
Doesn't build with tcl8.6 / tk8.6 .

-
 
Old 11-19-2013, 02:42 PM   #3
slack_
Member
 
Registered: Oct 2013
Distribution: Slackware, Arch
Posts: 99

Original Poster
Rep: Reputation: Disabled
I can't imagine how files are missing. Well, if reinstalling is the only problem then I guess that's not so bad.. Thanks.
 
  


Reply

Tags
cnet network simulator


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
Problem in installing CNET simulator installation khushid Linux - Newbie 1 01-19-2010 07:56 AM
Installing NS2.26 (Network Simulator) Error:can't find X library linuxsimulationboy Debian 3 07-13-2008 02:41 AM
Installing of CNET WLAN on Fedora Gunnar Halvorsen Linux - Wireless Networking 0 08-09-2005 01:52 PM
Unable to connect to network Printer (CNet 430) chhorn Linux - Hardware 0 11-10-2004 09:29 PM
CNET PRo200 network card for redhat kazki Linux - Hardware 0 03-31-2004 09:47 AM


All times are GMT -5. The time now is 06:18 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration