LinuxQuestions.org
Visit Jeremy's Blog.
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 12-06-2014, 02:08 AM   #1
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Rep: Reputation: Disabled
an error after running ./configure in ns2


hi
i add a routing protocole file to ns2 and now i want to run ./configure in terminal but it has this error (the part of output):

checking for gethostbyname in -lnsl... yes
checking for dcgettext in -lintl... no
checking for getnodebyname in -ldnet_stub... no
checking that g++ can handle -O2... yes
checking if C++ libraries work without any namespace... no
checking if C++ libraries work with namespace std... yes
checking if STL works without any namespace... no
checking if STL works with namespace std... yes
checking should use STL... yes
./configure: line 5453: tclsh: command not found
checking for tcl.h... -I../include
checking for tclInt.h... -I../include
checking for libtcl... no
checking for init.tcl... ../lib/tcl8.5
checking for http.tcl... ../lib/tcl8.5/http1.0
checking Tcl http.tcl library... yes
checking for tclsh... no
checking for tclsh... no
checking for tclsh... no
checking for tclsh8.4... no
configure: error: Installation of tcl seems incomplete or can't be found automatically.
Please correct the problem by telling configure where tcl is
using the argument --with-tcl=/path/to/package
(perhaps after installing it),
or the package is not required, disable it with --with-tcl=no.
HP-PC ns-2.35 #
 
Old 12-06-2014, 03:49 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,504

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Please do not use ./configure in ns-2.35/.
( './configure' was used in ns-2.34, or older.)

The script install, in the top directory, will take care of a sequence that works.

So please just rerun './install', after any code edit in ns-2.35/.


-
 
Old 12-06-2014, 08:46 AM   #3
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Original Poster
Rep: Reputation: Disabled
sorry i dont know why i have a lot of problem!!
now i want to run ./install but this command has an error:

me@HP-PC ~/ns-2.35 $ sudo ./install
[sudo] password for me:
sudo: ./install: command not found

me@HP-PC ~/ns-2.35 $ ./install
bash: ./install: No such file or directory

or in root mode :

HP-PC ns-2.35 # ./install
bash: ./install: No such file or directory
 
Old 12-06-2014, 08:53 AM   #4
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Original Poster
Rep: Reputation: Disabled
i found a solution in https://www-304.ibm.com/support/docv...id=swg21438771 but i dont know is it correct or no?
what should i do?!!!
 
Old 12-06-2014, 10:14 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,504

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Please read post #2 :
""The script install, in the top directory ....""

The top directory is `ns-allinone-2.35/'.
You will also know that there is only one file by name `install' that you have used :
ns-allinone-2.35/install

So everything is "Business as usual" :
$ cd ns-allinone-2.35/ && ./install

! And no sudo ! Don't do $ sudo ./install
All ns2 build is supposed to be done in /home/<name>/<ns2-folder>/ns-allinone-2.35/,
where you can do plain $ ./install
( sudo is only for $ sudo make install
in ns-allinone-2.35/ns-2.35/ ).

-
 
Old 12-06-2014, 10:52 AM   #6
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Original Poster
Rep: Reputation: Disabled
thank you so much, since noon to now i waited for your answer, thank you.
now by running ./install as you say, i have this error (part of the error):


tcl8.5.10 make succeeded.
Installing libtcl8.5.a to /home/me/Desktop/ns-allinone-2.35/lib/
cp: cannot create regular file ‘/home/me/Desktop/ns-allinone-2.35/lib/#inst.10978#’: Permission denied
rm: cannot remove ‘/home/me/Desktop/ns-allinone-2.35/lib/libtcl8.5.a’: Permission denied
mv: cannot stat ‘/home/me/Desktop/ns-allinone-2.35/lib/#inst.10978#’: No such file or directory
ranlib: could not create temporary file whilst writing archive: No more archived files
make: *** [install-binaries] Error 1
tcl8.5.10 installation failed.
Tcl is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.
 
1 members found this post helpful.
Old 12-06-2014, 11:10 AM   #7
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Original Poster
Rep: Reputation: Disabled
thank you so much, since noon to now i waited for your answer, thank you.
now by running ./install as you say, i have this error (part of the error):


tcl8.5.10 make succeeded.
Installing libtcl8.5.a to /home/me/Desktop/ns-allinone-2.35/lib/
cp: cannot create regular file ‘/home/me/Desktop/ns-allinone-2.35/lib/#inst.10978#’: Permission denied
rm: cannot remove ‘/home/me/Desktop/ns-allinone-2.35/lib/libtcl8.5.a’: Permission denied
mv: cannot stat ‘/home/me/Desktop/ns-allinone-2.35/lib/#inst.10978#’: No such file or directory
ranlib: could not create temporary file whilst writing archive: No more archived files
make: *** [install-binaries] Error 1
tcl8.5.10 installation failed.
Tcl is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.
 
Old 12-06-2014, 11:31 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,504

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #7 .

Permission denied : That's when sudo has been used for a command.
You are no longer the owner of the files. `root΄ is.

Changing owner : ( Assume user name "me" )
$ chown -R me:me /ns-allinone-2.35/*
$ chown -R me:me /ns-allinone-2.35/*/*
$ chown -R me:me /ns-allinone-2.35/*/*/*
$ chown -R me:me /ns-allinone-2.35/*/*/*/*
$ chown -R me:me /ns-allinone-2.35/*/*/*/*/*
.. etc. etc.

-
 
  


Reply

Tags
ns2


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
error in running tcl file in NS2 mary1001 Linux - Newbie 4 11-09-2014 09:32 PM
i m getting error while running leach protocol in ns2.34 kunal0807 Linux - Wireless Networking 1 05-08-2014 08:49 AM
Error when running make for ns2.30 in Ubuntu 9.10 Labuschagne Linux - Software 32 03-08-2014 02:07 PM
error in running new protocol in ns2.34 melodyH Linux - Networking 3 10-06-2012 04:01 AM
I got an error while running leach package in ns2.. help me to get out of this error. rkgowrishankar Linux - Software 1 02-07-2012 05:51 AM

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

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