LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-08-2012, 08:03 AM   #16
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

# 15
Quote:
I have set all the environment variable as directed after the ./install
Not really required on Linux.
The binary ns is hard coded to know, where its libraries are located.
And nam used to be statically compiled. No external tcl, tk etc. required.


A much better solution is :
cd ns-allinone-2.35/nam-1.15/ && sudo make install
cd ../ns-2.35/ && sudo make install

'make install' will copy ns, nam to /usr/local/bin/ : A system PATH.

If you have an unstable nam :
Nam is a separate application. Any nam can be used.
A statical nam ( Tested OK on an Ubuntu with no ns2, no tcl, tk installed )
32bits https://docs.google.com/open?id=0B7S...k4NGI5NzliM2Ux
64bits https://docs.google.com/open?id=0B7S...NiYjY0ODE1YmQw
> nam-1.14.<arch>.tar.gz : Unpack, and copy nam to /usr/local/bin/

EDIT : Just made a test with nam-1.15 : Isn't behaving very well.
Suggest : Use the linked nam-1.14. Same functionality as 1.15.
( The only changes, 1.14 to 1.15 : Can be compiled with tcl8.5 ).

.

Last edited by knudfl; 03-08-2012 at 10:45 AM.
 
Old 03-11-2012, 10:39 AM   #17
werocks
LQ Newbie
 
Registered: Feb 2009
Posts: 5

Rep: Reputation: 0
Thanks.
 
Old 04-19-2012, 07:35 AM   #18
fabe856
Member
 
Registered: Apr 2012
Posts: 115

Rep: Reputation: Disabled
CRCN.jar Error

Quote:
Originally Posted by sktimalsina View Post
I tried to run CRCN.jar which worked for some and did not for others. However, I don't find CRCN.jar handy.

Is this method correct? I am not sure because I cannot device a code to validate it.

Could you please provide me any simple sample code for Cognitive Radio MAC protocol if you have any. (or perhaps any web link where I could learn)

Sunil
Did you find that sample code anywhere. Plz provide either code or web link. I followed the steps for installation and all three make commands worked withour error, but i m not sure whether it is correctly installed.
For CRCN.jar, I use the command java -jar CRCN.jar it opens a GUI window but when I press confirm button or Startsim, the file test.tcl is not created in working directory.

Plz reply

Regards
Fabe

Last edited by fabe856; 04-19-2012 at 07:37 AM.
 
Old 08-14-2012, 02:15 PM   #19
majd_cs
LQ Newbie
 
Registered: Aug 2012
Posts: 19

Rep: Reputation: Disabled
Plz Plz Plz help me install ns-2.31 in fedora 17

plzzz
step by step
 
Old 08-14-2012, 03:38 PM   #20
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
Post #19, @ majd_cs : Welcome to LQ.

# yum install \
gcc-c++ compat-gcc-34-c++ automake autoconf libtool libX11-devel \
libXext-devel libXau-devel libXmu-devel xorg-x11-proto-devel


cd ns-allinone-2.31/ && export CC=gcc34 CXX=g++34 && ./install

.
 
Old 11-11-2012, 01:46 PM   #21
abolnaga_91
LQ Newbie
 
Registered: Nov 2012
Posts: 2

Rep: Reputation: Disabled
i am working with ubuntu 12.10 ,and i installed ns 2.31 cause i wanna use the crcn patch ..
while installing the ns i had a problem with the environment variables then i solved it and nw after writing ns i get %..
but i have a problem with nam which i cant solve ...
error message :The program 'nam' is currently not installed. You can install it by typing:
sudo apt-get install nam...
anyone can help ?
 
Old 11-11-2012, 01:56 PM   #22
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
Post # 21, @abolnaga_91 : Welcome to LQ.

Please use the binary nam suggested in post # 16.

The nam that you can install with 'sudo apt-get install nam'
may install conflicting versions of libotcl, libtcl, tclsh, libtk.

.
 
Old 11-11-2012, 02:55 PM   #23
abolnaga_91
LQ Newbie
 
Registered: Nov 2012
Posts: 2

Rep: Reputation: Disabled
when i wrote
wageeh@ubuntu:~$ cd ns-allinone-2.31/nam-1.13
wageeh@ubuntu:~/ns-allinone-2.31/nam-1.13$ sudo make install

i got an error
/usr/bin/install -c -m 755 nam /usr/local/bin
/usr/bin/install: cannot stat `nam': No such file or directory
make: *** [install] Error 1

ps:my name version is 1.13 for ns 2.31 ..
so can i download nam 1.14 from the given link in post 16?? and how can i install it ??
 
Old 11-12-2012, 03:45 AM   #24
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
# 23

tar xvf nam-1.14.i586.tar.gz
cd nam-1.14.i586/
chmod +x nam
sudo cp nam /usr/local/bin/

Quote:
ps:my nam version is 1.13 for ns 2.31 ..
Nam is a separate application.
Any 'nam' can be used for all versions of ns-2.xx.
More : Please read post # 16.

.
 
Old 12-11-2018, 03:20 AM   #25
Ahmed_Mahar
LQ Newbie
 
Registered: Dec 2018
Posts: 1

Rep: Reputation: Disabled
Error comes while installing NS 2 simulator

Hi,
I'm using Fedora 29 on virtualbox, I have to do some simulations on NS2. While installing NS 2 i'm having some error.

Please help me to solve this problem when i'm using the following this commands:

cd ns-allinone-2.35
./install


Error code:

In file included from /usr/include/c++/8/bits/basic_string.h:6626,
from /usr/include/c++/8/string:52,
from /usr/include/c++/8/bitset:47,
from ./mdart/mdart_function.h:62,
from ./mdart/mdart.h:52,
from ./mdart/mdart_adp.h:51,
from mdart/mdart_adp.cc:47:
/usr/include/c++/8/bits/functional_hash.h:58:12: note: candidates are: ‘template<class _Tp> struct std::hash’
struct hash;
^~~~
In file included from ./mdart/mdart.h:52,
from ./mdart/mdart_adp.h:51,
from mdart/mdart_adp.cc:47:
./mdart/mdart_function.h:230:17: note: ‘nsaddr_t hash(nsaddr_t)’
inline nsaddr_t hash(nsaddr_t id) {
^~~~
make: *** [Makefile:94: mdart/mdart_adp.o] Error 1
Ns make failed!
 
Old 12-12-2018, 01:39 PM   #26
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
Post #25, @Ahmed_Mahar : Welcome to LQ.

Fedora 29 has gcc, g++ version 8.2.1 .
... The latest g++ usable for ns-2.35 is g++ version 5.4 .

Suggest gcc-c++-5.3.0-1.el6.x86_64.rpm, item #1 here ...
https://stackoverflow.com/questions/...18376#49018376

Download ... and install :
Code:
# dnf install Downloads/gcc-c++-5.3.0-1.el6.x86_64.rpm
The build command for ns-allinone-2.35 is then :
Code:
$ export CC=gcc53 CXX=g++53 && ./install
 
  


Reply

Tags
crcn, 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
[SOLVED] Bash command not found bluebird58 Linux - Newbie 11 08-17-2010 09:09 AM
Bash command can not found help michaelpang Ubuntu 1 08-09-2010 09:59 PM
bash: command not found Pengye Linux - General 5 06-01-2008 11:57 PM
bash: rpm: command not found && sudo: alien: command not found Java_Code Ubuntu 7 07-27-2006 11:57 PM
bash: ll: command not found x2000koh Linux - Newbie 3 08-08-2003 05:11 AM

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

All times are GMT -5. The time now is 11:28 AM.

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