Linux - NewbieThis 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.
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.
[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
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.
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.
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
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,494
Rep:
# 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
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
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.
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'
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.