LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-27-2013, 01:56 AM   #1
TariqMohammed
LQ Newbie
 
Registered: Jun 2013
Posts: 24

Rep: Reputation: Disabled
Error in ns-2.32 : tk8.4.15 configuration failed! Exiting


I am trying to install ns-2.32 but I got the below error:

--------------------------------------------------------------------------

Build Tk8.4.15

make: * No rule to make target /home/administrator/ns-allinone-2.32/tk8.4.15/unix/Makefile.in', needed byMakefile'. Stop.

loading cache ./config.cache

checking for Tcl configuration... (cached) found /home/administrator/ns-allinone- .32/tcl8.4.15/unix/tclConfig.sh

checking for existence of /home/administrator/ns-allinone-2.32/tcl8.4.15

/unix/tclConfig.sh... could not find /home/administrator/ns-allinone-2.32/tcl8.4.15/unix/tclConfig.sh

checking for tclsh... (cached) No tclsh found on PATH

checking for tclsh in Tcl build directory... /home/administrator/ns-allinone-2.32/tcl8.4.15/unix/tclsh

configure: error: /home/administrator/ns-allinone-2.32/tcl8.4.15/unix/tclConfig.sh is for Tcl .

Tk 8.4.15 needs Tcl 8.4.

Use --with-tcl= option to indicate location of tclConfig.sh file for Tcl 8.4.

tk8.4.15 configuration failed! Exiting ...

Tk is not part of the ns project.
Please see www.Scriptics.com to see if they have a fix for your platform.
--------------------------------------------------------------------------

This error had been disscused and solved on (http://www.linuxquestions.org/questi...ubuntu-821020/). The solution was:

* installing gcc-4.3 (sudo apt-get install gcc-4.3)

* Editing otcl-1.13/Makefile.in line 7 From : CC= @CC@ to :CC= gcc-4.3

But when I applied these two steps I got the below error:

__________________________________________________________
Reading package lists... Done

Building dependency tree

Reading state information... Done

Package gcc-4.3 is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'gcc-4.3' has no installation candidate
________________________________________________________________

How I can deal with this error?

Notes:

* I have Ubuntu 12.04

* gcc-4.6 is already installed
 
Old 07-27-2013, 02:39 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

Installing compilers gcc41 and g++41 into a 32bits Ubuntu 12** post #47 here ..
http://www.linuxquestions.org/questi...532/page4.html

Using :
cd ns-allinone-2.32/ && export CC=gcc41 CXX=g++41 && ./install


P.S.: gcc-4.3 was usable some years ago with old release versions of Ubuntu.

-

Last edited by knudfl; 08-01-2013 at 09:56 AM.
 
Old 07-27-2013, 04:32 AM   #3
TariqMohammed
LQ Newbie
 
Registered: Jun 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Welcome to LQ.

Installing compilers gcc41 and g++41 into a 32bits Ubuntu 12** post #47 here ..
http://www.linuxquestions.org/questi...532/page4.html

Using :
cd ns-allinone-2.32/ && export CC=gcc41 CXX=gcc41 && ./install


P.S.: gcc-4.3 was usable some years ago with old release versions of Ubuntu.

-

Thanks dear Knudfl.

I apply the command: sudo dpkg -i gcc41-compat-4.1.2-ubuntu1210_i386.deb g++41-compat-4.1.2_i386.deb

But I got the below Error:

---------------------------------------------------------------------------
dpkg: error processing gcc41-compat-4.1.2-ubuntu1210_i386.deb (--install):

cannot access archive: No such file or directory

dpkg: error processing g++41-compat-4.1.2_i386.deb (--install):
cannot access archive: No such file or directory

Errors were encountered while processing:

gcc41-compat-4.1.2-ubuntu1210_i386.deb

g++41-compat-4.1.2_i386.deb
---------------------------------------------------------------------------

So, I installed gcc41 and g++41 from the below websites:

https://docs.google.com/file/d/0B7S2...FQY2VJbjA/edit
https://docs.google.com/file/d/0B7S2...jN2M2MGU4/edit

Then, I save them in ns-allinone-2.32 directory.
I repoot my PC then I apply the below commands:

export CC=gcc41 CXX=g++41
./install

Again I got a new error:

============================================================
* Build tcl8.4.15
============================================================
loading cache ./config.cache
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... gcc41
checking whether the C compiler (gcc41 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
tcl8.4.15 configuration failed! Exiting ...
Tcl is not part of the ns project. Please see www.Scriptics.com
 
Old 07-27-2013, 05:13 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
I save them in ns-allinone-2.32 directory.
Well, then better install the packages. With a "package installer", or
$ sudo dpkg -i gcc41-compat-4.1.2-ubuntu1210_i386.deb g++41-compat-4.1.2_i386.deb

*** Checking if a "command" is installed : $ which gcc
*** And for gcc41 : $ which gcc41 ; $ dpkg -L gcc41-compat
*** g++41 : $ which g++41 ; $ dpkg -L g++41-compat

When you are sure that things are installed, then reboot.

-
 
Old 07-27-2013, 08:30 AM   #5
TariqMohammed
LQ Newbie
 
Registered: Jun 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Well, then better install the packages. With a "package installer", or
$ sudo dpkg -i gcc41-compat-4.1.2-ubuntu1210_i386.deb g++41-compat-4.1.2_i386.deb

*** Checking if a "command" is installed : $ which gcc
*** And for gcc41 : $ which gcc41 ; $ dpkg -L gcc41-compat
*** g++41 : $ which g++41 ; $ dpkg -L g++41-compat

When you are sure that things are installed, then reboot.

-

I run the command:

sudo dpkg -i gcc41-compat-4.1.2-ubuntu1210_i386.deb g++41-compat-4.1.2_i386.deb

and I got the below output:

-------------------------------------------------------------------------------
(Reading database ... 170586 files and directories currently installed.)
Preparing to replace gcc41-compat:i386 4.1.2-ubuntu1210 (using gcc41-compat-4.1.2-ubuntu1210_i386.deb) ...
Unpacking replacement gcc41-compat:i386 ...
Preparing to replace g++41-compat:i386 4.1.2 (using g++41-compat-4.1.2_i386.deb) ...
Unpacking replacement g++41-compat:i386 ...
Setting up gcc41-compat:i386 (4.1.2-ubuntu1210) ...
Setting up g++41-compat:i386 (4.1.2) ...
-------------------------------------------------------------------------------

I reboot and run: dpkg -L gcc41-compat-4.1.2-ubuntu1210_i386.deb and I got:

Package `gcc41-compat-4.1.2-ubuntu1210_i386.deb' is not installed.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.

same thing for g++.

Package `g++41-compat-4.1.2-ubuntu1210_i386.deb' is not installed.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
 
Old 07-27-2013, 09:01 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 6 .
Quote:
.. dpkg -L gcc41-compat-4.1.2-ubuntu1210_i386.deb and I got:

Package `gcc41-compat-4.1.2-ubuntu1210_i386.deb' is not installed.
.
Package `g++41-compat-4.1.2-ubuntu1210_i386.deb' is not installed.
! The "package names" are not
gcc41-compat-4.1.2-ubuntu1210_i386.deb, g++41-compat-4.1.2-ubuntu1210_i386.deb.
Those are file names.
Please read post #5 : $ dpkg -L gcc41-compat / $ dpkg -L g++41-compat
And : $ which gcc41 / $ which g++41

Another way of checking package installs / package naming :
$ ls -tl /var/lib/dpkg/info/ | grep list > last-packages.txt
... will save the text list, with the latest install in line 1.

-
 
Old 07-28-2013, 08:25 AM   #7
TariqMohammed
LQ Newbie
 
Registered: Jun 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 6 .

! The "package names" are not
gcc41-compat-4.1.2-ubuntu1210_i386.deb, g++41-compat-4.1.2-ubuntu1210_i386.deb.
Those are file names.
Please read post #5 : $ dpkg -L gcc41-compat / $ dpkg -L g++41-compat
And : $ which gcc41 / $ which g++41

Another way of checking package installs / package naming :
$ ls -tl /var/lib/dpkg/info/ | grep list > last-packages.txt
... will save the text list, with the latest install in line 1.

-
I am using the same packages names: g++41-compat-4.1.2_i386.deb AND gcc41-compat-4.1.2-ubuntu1210_i386.deb and I am still getting the same output:


administrator@ubuntu:~/tmp/ns-allinone-2.32$ which gcc41
administrator@ubuntu:~/tmp/ns-allinone-2.32$

administrator@ubuntu:~/tmp/ns-allinone-2.32$ dpkg -L gcc41-compat
Package `gcc41-compat' is not installed.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.


administrator@ubuntu:~/tmp/ns-allinone-2.32$ which g++41
administrator@ubuntu:~/tmp/ns-allinone-2.32$

administrator@ubuntu:~/tmp/ns-allinone-2.32$ dpkg -L g++41-compat
Package `g++41-compat' is not installed.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
 
Old 07-28-2013, 01:48 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 8 .
Quote:
Package `gcc41-compat' is not installed.
.
Package `g++41-compat' is not installed.
Post # 6 actually shows that the packages are installed :
""Setting up gcc41-compat:i386 (4.1.2-ubuntu1210) ...
Setting up g++41-compat:i386 (4.1.2) ...""

Are you quite sure that you have a 32bits (i686) OS ? ?
This command will tell : $ uname -m

-
 
Old 07-29-2013, 12:56 AM   #9
TariqMohammed
LQ Newbie
 
Registered: Jun 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 8 .

Post # 6 actually shows that the packages are installed :
""Setting up gcc41-compat:i386 (4.1.2-ubuntu1210) ...
Setting up g++41-compat:i386 (4.1.2) ...""

Are you quite sure that you have a 32bits (i686) OS ? ?
This command will tell : $ uname -m

-

$ uname -m
$ x86_64
 
Old 07-29-2013, 03:27 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 9 .

Ns2 is for a 32bits (i686) Linux OS.
The most versions of ns-allinone will though work on a 64bits (x86_64) OS.
But with reduced functionality. ( Poor validation result.)

Some of the extra protocols that you can add to ns-2.32 may also work.

But first of all : The compilers for ns-allinone-2.32 must be 64bits.
Suggest : 1) $ sudo apt-get install synaptic
2a) Start synaptic
2b) Find { gcc41-compat, g++41-compat } in synaptic and remove both.
Or do : $ sudo apt-get remove gcc41-compat g++41-compat

64bits compilers for ns-allinone-2.32 : compat-gcc34-3.4.6-ubuntu1204-1_amd64.deb
https://docs.google.com/file/d/0B7S2...it?usp=sharing
and compat-gcc-34-c++_3.4.6-20_amd64.deb
https://docs.google.com/file/d/0B7S2...it?usp=sharing

-
 
Old 08-01-2013, 08:17 AM   #11
TariqMohammed
LQ Newbie
 
Registered: Jun 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 9 .

Ns2 is for a 32bits (i686) Linux OS.
The most versions of ns-allinone will though work on a 64bits (x86_64) OS.
But with reduced functionality. ( Poor validation result.)

Some of the extra protocols that you can add to ns-2.32 may also work.

But first of all : The compilers for ns-allinone-2.32 must be 64bits.
Suggest : 1) $ sudo apt-get install synaptic
2a) Start synaptic
2b) Find { gcc41-compat, g++41-compat } in synaptic and remove both.
Or do : $ sudo apt-get remove gcc41-compat g++41-compat

64bits compilers for ns-allinone-2.32 : compat-gcc34-3.4.6-ubuntu1204-1_amd64.deb
https://docs.google.com/file/d/0B7S2...it?usp=sharing
and compat-gcc-34-c++_3.4.6-20_amd64.deb
https://docs.google.com/file/d/0B7S2...it?usp=sharing

-

OK. I applied all the above steps.
I installed compat-gcc34-3.4.6-ubuntu1204-1_amd64.deb AND compat-gcc-34-c++_3.4.6-20_amd64.deb using

sudo dpkg -i compat-gcc34-3.4.6-ubuntu1204-1_amd64.deb compat-gcc-34-c++_3.4.6-20_amd64.deb

then, I reboot my PC, How I can run the export command?
 
Old 08-01-2013, 09:56 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 11 .
Quote:
How I can run the export command ?
Please see post # 2. The commands for ns-2.32 / gcc34 are :

1) cd ns-allinone-2.32/
2) export CC=gcc34 CXX=g++34 && ./install
 
Old 08-02-2013, 09:31 AM   #13
TariqMohammed
LQ Newbie
 
Registered: Jun 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 11 .

Please see post # 2. The commands for ns-2.32 / gcc34 are :

1) cd ns-allinone-2.32/
2) export CC=gcc34 CXX=g++34 && ./install


Thanks dear Knudfl, NS2 had been instaled successfully.

When I reach to the last step, ./validate : I got set of Errors, as shown below:

-----------------------------------------------------------------------------------------------------------------------------
*** ./test-all-simple
Tests: tahoe1 tahoe1Bytes tahoe1RED tahoe1REDbytes tahoe2 tahoe3 tahoe3RED tahoe4 no_bug bug reno1 reno renoA reno2 reno3 reno4 reno4a reno5 reno5_nobug telnet delayed phase phase1 phase2 timers manyflows stats statsECN stats1 stats1Bytes stats1a stats1aBytes statsHeaders stats2 stats3 stats4 statsTFRC
Running test tahoe1:
../../ns test-suite-simple.tcl tahoe1 QUIET
wrong # args: should be "_o4 self class proc n1 n2 bw delay res type args"
(Simulator duplex-link line 1)
invoked from within
"$ns duplex-link $node_(s1) $node_(r1) 8Mb 5ms DropTail"
(procedure "_o11" line 4)
(Topology/net0 init line 4)
invoked from within
"_o11 init _o4"
(Class create line 1)
invoked from within
"Topology/net0 create _o11 _o4"
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Topology/$net_ $ns_"
(procedure "_o3" line 15)
(Object next line 15)
invoked from within
"$self next"
(procedure "_o3" line 8)
(Test/tahoe1 init line 8)
invoked from within
"_o3 init {}"
(Class create line 1)
invoked from within
"Test/tahoe1 create _o3 {}"
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Test/$test $topo"
(procedure "TestSuite" line 40)
(TestSuite runTest line 40)
invoked from within
"TestSuite runTest"
(file "test-suite-simple.tcl" line 1824)
Test output differs from reference output
Diagnose with: diff test-output-simple/tahoe1.test test-output-simple/tahoe1
Or see URL "http://www.isi.edu/nsnam/ns/ns-problems.html".
^XRunning test tahoe1Bytes:
../../ns test-suite-simple.tcl tahoe1Bytes QUIET
wrong # args: should be "_o4 self class proc n1 n2 bw delay res type args"
(Simulator duplex-link line 1)
invoked from within
"$ns duplex-link $node_(s1) $node_(r1) 8Mb 5ms DropTail"
(procedure "_o11" line 4)
(Topology/net0 init line 4)
invoked from within
"_o11 init _o4"
(Class create line 1)
invoked from within
"Topology/net0 create _o11 _o4"
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
.
.
.


What is the problem?
 
Old 08-02-2013, 10:04 AM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 13 .

Please see post #10 : "Ns2 is for a 32bits (i686) Linux OS.
The most versions of ns-allinone will though work on a 64bits (x86_64) OS.
But with reduced functionality. ( Poor validation result.)"

... So a 32bits OS would provide a better 'validate' result.
But : The simulations you want to do may work OK.
If they don't work : Use a 32bits OS, e.g. Ubuntu 12.04 .

-

Last edited by knudfl; 08-02-2013 at 10:05 AM.
 
Old 08-05-2013, 08:46 AM   #15
TariqMohammed
LQ Newbie
 
Registered: Jun 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 13 .

Please see post #10 : "Ns2 is for a 32bits (i686) Linux OS.
The most versions of ns-allinone will though work on a 64bits (x86_64) OS.
But with reduced functionality. ( Poor validation result.)"

... So a 32bits OS would provide a better 'validate' result.
But : The simulations you want to do may work OK.
If they don't work : Use a 32bits OS, e.g. Ubuntu 12.04 .

-
In order to get better validation result, I re-install the OS and I select a 32-bit version.

I download ubuntu 12.04 (32-bit) from: http://www.ubuntu.com/download/desktop

But, when I installed it I am still getting the same result:

~$ uname -m
x86_64

advise please.
 
  


Reply



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
"otcl 1.8 make failed error exiting " while installing ns 2.27 Tellajeera Sushma Linux - Newbie 13 04-11-2018 04:58 PM
NS2 snapshot install error : tk8.4 sn68 Linux - Desktop 15 07-22-2014 05:53 AM
GConf Error: Failed to contact configuration server qwijibow Linux - Software 10 03-25-2013 01:09 PM
tk8.4.11 make failed---a problem about ns2 install !!! blueskyhff Linux - Software 1 07-03-2007 02:26 AM
tk8.4.11 make failed blueskyhff Linux - Software 0 07-02-2007 08:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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
Open Source Consulting | Domain Registration