LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 08-20-2012, 04:26 PM   #31
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641

# 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.
 
Old 08-24-2012, 12:23 PM   #32
majd_cs
LQ Newbie
 
Registered: Aug 2012
Posts: 19

Rep: Reputation: Disabled
thanks knudfl

Quote:
Originally Posted by knudfl View Post
# 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
^_^
 
Old 08-24-2012, 12:46 PM   #33
majd_cs
LQ Newbie
 
Registered: Aug 2012
Posts: 19

Rep: Reputation: Disabled
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
 
Old 08-24-2012, 01:05 PM   #34
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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.
 
Old 08-25-2012, 01:37 PM   #35
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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.
 
Old 08-26-2012, 05:27 AM   #36
majd_cs
LQ Newbie
 
Registered: Aug 2012
Posts: 19

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 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
 
Old 08-26-2012, 01:24 PM   #37
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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.
 
Old 08-27-2012, 06:32 PM   #38
majd_cs
LQ Newbie
 
Registered: Aug 2012
Posts: 19

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 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
 
Old 08-28-2012, 05:32 AM   #39
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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.

.
 
Old 08-30-2012, 01:15 PM   #40
majd_cs
LQ Newbie
 
Registered: Aug 2012
Posts: 19

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 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

.
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.
 
Old 08-31-2012, 08:15 AM   #41
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 40
Quote:
where extract this ???
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.

.
 
Old 09-01-2012, 08:01 AM   #42
majd_cs
LQ Newbie
 
Registered: Aug 2012
Posts: 19

Rep: Reputation: Disabled
ok I am at last step to compile tcl file

Quote:
Originally Posted by knudfl View Post
# 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'


??????
 
Old 09-01-2012, 09:59 AM   #43
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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 ?
 
  


Reply

Tags
crcn, crcn-fc17, ns2



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
Custom linux kernel for fedora make bzImage error Aqua_Regia Linux - Newbie 1 12-15-2011 06:05 AM
b43-fwcutter-011 make error in Fedora 10 lupusarcanus Linux - Software 4 03-31-2009 11:02 AM
EW-7318USG - error during make - OS is Fedora staylor1962 Linux - Newbie 2 11-15-2008 03:11 PM
Fedora Core 9, make error BallsOfSteel Linux - Newbie 4 07-01-2008 01:28 PM
Odd Chars w/ make/C++ compile error on Fedora w/bash shell zemux Linux - General 2 01-22-2006 01:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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