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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
08-20-2012, 04:26 PM
|
#31
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 30. None of the refereed steps are required for 'ns' or 'nam' to work.
(Except the test: The ./validate command should be run to test your 'ns'.)
The usual solution : cd ns-allinone-2.31/ns-2.31/ ; su ; make install
... I.e. 'make install' will copy ns to a system PATH : /usr/local/bin/
Nam : See post # 6.
... And post # 4 here ...
http://www.linuxquestions.org/questi...04-a-842109/#4
.
Last edited by knudfl; 08-21-2012 at 03:06 AM.
|
|
|
08-24-2012, 12:23 PM
|
#32
|
LQ Newbie
Registered: Aug 2012
Posts: 19
Rep: 
|
thanks knudfl
Quote:
Originally Posted by knudfl
# 30. None of the refereed steps are required for 'ns' or 'nam' to work.
(Except the test: The ./validate command should be run to test your 'ns'.)
The usual solution : cd ns-allinone-2.31/ns-2.31/ ; su ; make install
... I.e. 'make install' will copy ns to a system PATH : /usr/local/bin/
Nam : See post # 6.
... And post # 4 here ...
http://www.linuxquestions.org/questi...04-a-842109/#4
.
|
ns2 install done
now i want to add crcn to ns2
please tell me in steps
^_^
|
|
|
08-24-2012, 12:46 PM
|
#33
|
LQ Newbie
Registered: Aug 2012
Posts: 19
Rep: 
|
what this mean???
[root@localhost ns-2.31]# sudo make install
for d in /usr/local/man/man1; do \
if [ ! -d $d ]; then \
mkdir -p $d ;\
fi;\
done
/usr/bin/install -c -m 755 ns /usr/local/bin
/usr/bin/install: cannot stat `ns': No such file or directory
make: *** [install-ns] Error 1
|
|
|
08-24-2012, 01:05 PM
|
#34
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 32 : The CRCN threads : LQ Search > Tag = crcn
Install crcn, post # 5 here ..
http://www.linuxquestions.org/questi...rror-940388/#5
cd ns-allinone-2.31/ && tar xvf crcn-ns2.31.tar.gz
&& cd ns-2.31/ && cp ns ns-orig && export CC=gcc34 CXX=g++34 &&
rm -f Makefile &&
./configure && make clean && make
... and you have a new "CRCN ns" binary.
.
Last edited by knudfl; 08-25-2012 at 05:56 AM.
|
|
|
08-25-2012, 01:37 PM
|
#35
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 33
Quote:
/usr/bin/install: cannot stat `ns': No such file or directory
|
When ./install isn't finishing with an 'ns', you will get an error message.
Please show.
It is actually impossible to fail, when you do :
1)
Code:
# yum install gcc-c++ compat-gcc-34-c++ automake autoconf make patch libtool libXmu-devel && exit
2)
Code:
tar xvf ns-allinone-2.31.tar.gz && cd ns-allinone-2.31/ && export CC=gcc34 CXX=g++34 && ./install
If you still can't build ns-allinone-2.31 + crcn, a package is available :
https://docs.google.com/open?id=0B7S...DlRQkZkWWtlX28
>> ns231-crcn-2.31.fc17-1.i686.rpm ( 27.7 MB ) EDIT : See post #39.
Providing : /usr/local/ns2/<the-most-of-ns-allinone-2.31>,
/usr/local/bin/ nam ns ns231 ns-crcn tclsh8.4 wish8.4,
where ns231 is an unpatched 'ns', and ns / ns-crcn is the crcn patched binary.
.
Last edited by knudfl; 08-28-2012 at 05:33 AM.
|
|
|
08-26-2012, 05:27 AM
|
#36
|
LQ Newbie
Registered: Aug 2012
Posts: 19
Rep: 
|
Quote:
Originally Posted by knudfl
# 32 : The CRCN threads : LQ Search > Tag = crcn
Install crcn, post # 5 here ..
http://www.linuxquestions.org/questi...rror-940388/#5
cd ns-allinone-2.31/ && tar xvf crcn-ns2.31.tar.gz
&& cd ns-2.31/ && cp ns ns-orig && export CC=gcc34 CXX=g++34 &&
rm -f Makefile &&
./configure && make clean && make
... and you have a new "CRCN ns" binary.
.
|
I cant extract this type rpm
ns231-crcn-2.31.fc17-1.i686.rpm
|
|
|
08-26-2012, 01:24 PM
|
#37
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 36.
Why extract the package ? ?
Can be installed with 1) su 2) rpm -Uvh ns231-crcn-2.31.fc17-1.i686.rpm
EDIT : See post # 39.
But if you want to see the content before an install,
the package can of course be extracted with :
rpm2cpio ns231-crcn-2.31.fc17-1.i686.rpm | cpio -idmv
.. Or watch the file list with :
rpm -qlp ns231-crcn-2.31.fc17-1.i686.rpm
.
Last edited by knudfl; 08-28-2012 at 05:32 AM.
|
|
|
08-27-2012, 06:32 PM
|
#38
|
LQ Newbie
Registered: Aug 2012
Posts: 19
Rep: 
|
Quote:
Originally Posted by knudfl
# 36.
Why extract the package ? ?
Can be installed with 1) su 2) rpm -Uvh ns231-crcn-2.31.fc17-1.i686.rpm
But if you want to see the content before an install,
the package can of course be extracted with :
rpm2cpio ns231-crcn-2.31.fc17-1.i686.rpm | cpio -idmv
.. Or watch the file list with :
rpm -qlp ns231-crcn-2.31.fc17-1.i686.rpm
.
|
[root@localhost majd]# rpm -Uvh ns231-crcn-2.31.fc17-1.i686.rpm
error: Failed dependencies:
/home/johnh/BIN/perl5 is needed by ns231-crcn-2.31.fc17-1.i686
/usr/local/bin/gawk is needed by ns231-crcn-2.31.fc17-1.i686
/usr/local/bin/tclsh is needed by ns231-crcn-2.31.fc17-1.i686
/usr/sww/bin/tclsh is needed by ns231-crcn-2.31.fc17-1.i686
libdb.so.3 is needed by ns231-crcn-2.31.fc17-1.i686
perl(dblib.pl) is needed by ns231-crcn-2.31.fc17-1.i686
|
|
|
08-28-2012, 05:32 AM
|
#39
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 38
"Build 2" with 'indep-utils' removed: ns231-crcn-2.31-2.fc17.i386.rpm
https://docs.google.com/open?id=0B7S...UdrREdsLXMzcGM
# rpm -Uvh --nodeps ns231-crcn-2.31- 2.fc17.i386.rpm
P.S. : About posts #33 and #35 : Why not build ns-2.31 yourself ?
Should be as simple as following the basic instructions.
The complicated thing is not to build ns2, learning how to use it is.
.
|
|
|
08-30-2012, 01:15 PM
|
#40
|
LQ Newbie
Registered: Aug 2012
Posts: 19
Rep: 
|
Quote:
Originally Posted by knudfl
|
1- where extract this ???
# rpm -Uvh --nodeps ns231-crcn-2.31- 2.fc17.i386.rpm
2- How can I make sure that it works?
Last edited by majd_cs; 08-30-2012 at 04:12 PM.
|
|
|
08-31-2012, 08:15 AM
|
#41
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 40
Please read the Fedora / Redhat documentation about package install.
Why do you ask about "extract" again ? Please read the above posts.
Installing the package : 1) su
2) rpm -Uvh --nodeps ns231-crcn-2.31-2.fc17.i386.rpm
.. and read post #35 about "Providing"
.. and post # 37 about the 'rpm -qlp' command.
.
|
|
|
09-01-2012, 08:01 AM
|
#42
|
LQ Newbie
Registered: Aug 2012
Posts: 19
Rep: 
|
ok I am at last step to compile tcl file
Quote:
Originally Posted by knudfl
# 40
.
|
when type ./MCR.tcl
I have this error:
./MCR.tcl:line 1: syntax error near unexpected token `('
./MCR.tcl:line 1: `set val(chan) Channel/WirelessChannel ;#CH
annel Type'
??????
|
|
|
09-01-2012, 09:59 AM
|
#43
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 42 :
Tcl files are not to be compiled, but used with an interpreter.
Like : ns MCR.tcl
MCR.tcl : Unknown file. Where did you get that file ?
|
|
|
All times are GMT -5. The time now is 06:06 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|