LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 09-06-2012, 11:26 AM   #16
helok
LQ Newbie
 
Registered: May 2012
Location: jakarta
Posts: 15

Rep: Reputation: Disabled

Quote:
Originally Posted by knudfl View Post

cd ns-allinone-2.33/tk-8.4.18/
patch -p0 < tk-8.4-lastevent.patch

And run ./install again : Only tk4.8.18 and nam-1.xx will change,
and you should now get a 'nam' that works. _ _ _ _
sorry to bother you sir,
where do I run './install' ?
in home/jeffrey/ns-allinone-2.33/tk-8.4.18 ?
or
in home/jeffrey ?

thank you
 
Old 09-06-2012, 01:49 PM   #17
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
Post # 16, @helok : I think you already know where to run ./install
.. that's in the top directory, i.e. home/jeffrey/ns-allinone-2.33/.

AFAIK, you already have a 'nam' version 1.14 in /usr/local/bin/,
and you only need one nam for all versions of ns2.

Please read the above posts # 12 and # 14.

.
 
Old 09-06-2012, 08:48 PM   #18
helok
LQ Newbie
 
Registered: May 2012
Location: jakarta
Posts: 15

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Post # 16, @helok : I think you already know where to run ./install
.. that's in the top directory, i.e. home/jeffrey/ns-allinone-2.33/.

AFAIK, you already have a 'nam' version 1.14 in /usr/local/bin/,
and you only need one nam for all versions of ns2.

Please read the above posts # 12 and # 14.

.
im using nam 1.13 sir
its included in ns-allinone-2.33

and ive just re-installed after patched tk8.4, and i tried to run 'ns simple.tcl'
it works really well Sir.
thank you so much Sir for your help
 
Old 09-18-2012, 11:35 AM   #19
nirvruti
LQ Newbie
 
Registered: Sep 2012
Posts: 14

Rep: Reputation: Disabled
found error after installing s2
/home/happy1/ns-allinone-2.33/bin/ns: cannot execute binary file
 
Old 02-04-2013, 05:35 AM   #20
Ehtiba
LQ Newbie
 
Registered: Jan 2012
Posts: 6

Rep: Reputation: Disabled
Hello Sir,

I installed ns2.29 on Fedora 12. Unfortunately, NAM doesn't work.
I got same error. moreover, when I tried to download patch file, it doesn't work.
Could you please help me and send me a patch file and steps to implement it as well.

Thank you in advance and your help is appreciated.

this is me email. fehtiba@gmail.com
 
Old 02-04-2013, 06:54 AM   #21
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
# 20

Better : Use the more advanced nam-1.14, post #4 here ..
http://www.linuxquestions.org/questi...04-a-842109/#4
I.e. : # cp nam /usr/local/bin/


If you anyway want to fix an old nam, the tk-8.4-lastevent.patch is here
ftp://ftp.swin.edu.au/gentoo-portage...astevent.patch

-
 
Old 01-10-2014, 11:42 AM   #22
reemlus
LQ Newbie
 
Registered: Jan 2014
Posts: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by vahitha View Post
sir,
thankyou sir
i patch the tk-8.4-lastevent.patch file from /ns-allinone/tk8.4.18/
nam is also worked well.

now i executed one tcl program.i can view the result in nam sucessfully.
then,when i execute it with ns program_name.tcl from command prompt the part of my program is executed and i can see the calculated through put and delay etc...in terminal window.

i couldn't get it in graph.
error :ns: proc_name: couldn't execute "xgraph": no such file or directory

what are the steps should be followed and what are the possibilities to get these?

i check well in path setting for xgraph also.
please help me to execute my program successfully.

thankyou.
vahitha
command for patching please

---------- Post added 01-10-14 at 12:43 PM ----------

Quote:
Originally Posted by knudfl View Post
# 20

Better : Use the more advanced nam-1.14, post #4 here ..
http://www.linuxquestions.org/questi...04-a-842109/#4
I.e. : # cp nam /usr/local/bin/


If you anyway want to fix an old nam, the tk-8.4-lastevent.patch is here
ftp://ftp.swin.edu.au/gentoo-portage...astevent.patch

-
how to open binary nam
 
Old 01-10-2014, 02:35 PM   #23
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
#22, @reemlus.

Quote:
couldn't execute "xgraph": no such file or directory
.
command for patching please
I guess you mean "How to achieve a working 'xgraph' ?
The answer is : $ sudo apt-get install xgraph
... If your OS isn't Debian / Ubuntu / Mint, please specify your OS :
a) $ uname -m
b) $ cat /etc/*release*


Quote:
how to open binary nam
How to unpack a <package>.tar.gz : $ tar xvf <name>.tar.gz
... Or use your default 'Archive Manager'.

-
 
Old 11-21-2015, 03:14 PM   #24
marwa88
Member
 
Registered: Nov 2015
Posts: 56

Rep: Reputation: Disabled
Hi,
after the installation ns2.31 on fedora12, i had this same problem of nam (in the last line bind Li), to correct it i used the method of the patch. i downloaded the tk-8.4-lastevent.patch and i put it on tk-8.4.14 folder.

then i did this:

cd ns-allinone-2.33/tk-8.4.14/
patch -p0 < tk-8.4-lastevent.patch

and i ran ./install again.

after this i called the nam by nam command in the terminal, and i had this error:

Quote:
-bash:nam: command not found
how can i solve it, please?
 
Old 11-21-2015, 03:47 PM   #25
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
Re #24.

First : Check if you created a usable nam : cd nam-1.14/ && ./nam
If nam is working : # make install
( 'make install' will copy 'nam' to /usr/local/bin/
... just like # cd ns-2.33/ && make install will copy 'ns' to /usr/local/bin/.
Therefore : No *PATH settings are required. No adding no *PATH to .bashrc ).

Else : Install a nam package. Much easier than a build. Is what most people do :

Download an el6 package for your architecture, i686 or x86_64.
i686 https://drive.google.com/file/d/0B7S...ew?usp=sharing
x86_64 https://drive.google.com/file/d/0B7S...ew?usp=sharing

And : # cd Downloads/ && yum install nam-1.14-*



-

Last edited by knudfl; 11-21-2015 at 03:52 PM.
 
Old 11-21-2015, 04:19 PM   #26
marwa88
Member
 
Registered: Nov 2015
Posts: 56

Rep: Reputation: Disabled
Ok thank you, nam works now after using make install.

please, about the .bashrc file, when i am installing the ns2 after the ./install, it asked me to add path in .bashrc file, so i did it.

now when i added the patch of the nam(lastevent.patch) i did install agin so it asked me to add the path again while the path already exists.

This is my .bashcr file:
Quote:
.bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

# User specific aliases and functions
PATH=$PATH:/home/marwa/ns-allinone-2.31/bin:/home/marwa/ns-allinone-2.31/tcl8.4.14/unix:/home/marwa/ns-allinone-2.31/tk8.4.14/unix
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/marwa/ns-allinone-2.31/otcl-1.13:/home/marwa/ns-allinone-2.31/lib
export TCL_LIBRARY=$TCL_LIBRARY:/home/marwa/ns-allinone-2.31/tcl8.4.14/library
~
~
~
~
~
~
~
~
~
~
"home/marwa/.bashrc" 11L, 450C
since you told me that i must not add path, so what i understand that i must delete those lines:
Quote:
PATH=$PATH:/home/marwa/ns-allinone-2.31/bin:/home/marwa/ns-allinone-2.31/tcl8.4.14/unix:/home/marwa/ns-allinone-2.31/tk8.4.14/unix
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/marwa/ns-allinone-2.31/otcl-1.13:/home/marwa/ns-allinone-2.31/lib
export TCL_LIBRARY=$TCL_LIBRARY:/home/marwa/ns-allinone-2.31/tcl8.4.14/library
then i must do source .bashrc or something else or only delete them?

Thank you so much.
 
Old 11-21-2015, 05:16 PM   #27
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
Re #26.
Quote:
it asked me to add path in .bashrc file, so i did it.
No. You are not asked to add any *PATH text to .bashrc .
It's just a ~15 year old text from those days when students used a University Computer.
The executable 'ns' or "ns-<any-name>" is hard coded to know the location of it`s libraries:
ns-allinone-2.3x/{ lib/*/*, bin/tcsh8* }. And 'nam' is partly statically compiled.
You can actually run 'nam' OK on a computer with no ns2 and no {tcl8*, tk8*}.

".bashrc" is a text file : Easy to edit.
Just select : View > Show Hidden Files in Nautilus / Konqueror.

The original .bashrc :
Code:
# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
	. /etc/bashrc
fi

# User specific aliases and functions

Last edited by knudfl; 11-21-2015 at 05:35 PM.
 
Old 11-21-2015, 05:41 PM   #28
marwa88
Member
 
Registered: Nov 2015
Posts: 56

Rep: Reputation: Disabled
when i say it asked me to add path i mean this message tha appears at the end of ./install
Quote:
Please put /home/marwa/ns-allinone-2.31/bin:/home/marwa/ns-allinone-2.31/tcl8.4.14/unix:/home/marwa/ns-allinone-2.31/tk8.4.14/unix
into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.

IMPORTANT NOTICES:

(1) You MUST put /home/marwa/ns-allinone-2.31/otcl-1.13, /home/marwa/ns-allinone-2.31/lib,
into your LD_LIBRARY_PATH environment variable.
If it complains about X libraries, add path to your X libraries
into LD_LIBRARY_PATH.
If you are using csh, you can set it like:
setenv LD_LIBRARY_PATH <paths>
If you are using sh, you can set it like:
export LD_LIBRARY_PATH=<paths>

(2) You MUST put /home/marwa/ns-allinone-2.31/tcl8.4.14/library into your TCL_LIBRARY environmental
variable. Otherwise ns/nam will complain during startup.


After these steps, you can now run the ns validation suite with
cd ns-2.31; ./validate
sorry for asking again, but what i need now is only to remove the path from the .bashcr file? then i run this command again or not
"source .bashrc" ?

thank you.
 
Old 11-21-2015, 10:29 PM   #29
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
Re #28 , the last century text, ~1999 ...
Please put .... ,, IMPORTANT NOTICES: You MUST put ..
.. was meant only for a "University Computer" :
.. i.e. when you had no write permissions to /usr/local/ : No # make install .

NS-2 is old. A lot of files still have leftover from the ninetieth.
So don't believe everything you read in the files or on the Internet.


$ source .bashrc
... is for adding stuff. Editing :
$ gedit .bashrc
.... ( Or whatever editor you prefer.)


-
 
Old 11-22-2015, 10:15 AM   #30
marwa88
Member
 
Registered: Nov 2015
Posts: 56

Rep: Reputation: Disabled
Thank you for the explanation.

I thought that the commande source is necessary after any modification in the .bashrc file ( i mean for the changes to take effect) .
So it is sufficient to do gedit .bashrc and save the file.

Thank you again.
 
  


Reply

Tags
ns2, tk-8.4-lastevent.patch, trace, trace+awk



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
ns2.33 installation in fedora & path setting murali1509 Linux - Newbie 0 01-06-2009 07:53 AM
path in ns2 raoatta Linux - Networking 3 10-01-2008 02:17 AM
Setting environment variables for NS2 installation over enterprize linux inamullah Linux - Enterprise 0 07-18-2008 01:01 AM
Setting PATH shridevi Linux - Newbie 4 12-11-2007 11:19 AM
how to set path? here a meet the problem with ns2 installation cain_eve Linux - Newbie 12 12-16-2004 05:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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