LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-03-2010, 08:34 AM   #1
manjunath11
LQ Newbie
 
Registered: Nov 2010
Posts: 18

Rep: Reputation: 0
nam not working in n2.33 in ubuntu 10.04


hi Sir,
I have installed Ns2.33 and added the patch mobiwan-1.patch. when i tried to run nam, the following is the error i got

manju@manju-desktop:~/Desktop/ns-allinone-2.33/ns-2.33$ nam
nam:
[code omitted because of length]
: no event type or button # or keysym
while executing
"bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D / 120) * 4}] units
}"
invoked from within
"if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} {
bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D)}] units
}
bind Li..."
 
Old 11-03-2010, 08:58 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

cd ns-allinone-2.33/tk8.4.18/ &&
patch -p0 < tk-8.4-lastevent.patch
http://www.linuxquestions.org/questi...ting-818634/#4

..
 
Old 11-04-2010, 12:00 AM   #3
manjunath11
LQ Newbie
 
Registered: Nov 2010
Posts: 18

Original Poster
Rep: Reputation: 0
when i did , i got the following error
manju@manju-desktop:~/Desktop/ns-allinone-2.33/tk8.4.18$ patch -p0 < tk-8.4-lastevent.patch
patching file generic/tk.h
Reversed (or previously applied) patch detected! Assume -R? [n] r
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file generic/tk.h.rej
 
Old 11-04-2010, 12:55 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
None of the information, you show in post #3 is an error.
May be you by accident tried to apply the patch twice ?

Next step : Recompile tk and nam : By running ./install again.

Alternatively use a binary nam, 32bits : nam-1.14.i586.tar.gz
https://docs.google.com/uc?id=0B7S25...=CLPiyxo&hl=en

64bits : https://docs.google.com/uc?id=0B7S25...CN3jzIcL&hl=en

..

Last edited by knudfl; 05-02-2011 at 05:22 AM.
 
1 members found this post helpful.
Old 05-02-2011, 02:00 AM   #5
abhishek majumder
LQ Newbie
 
Registered: Apr 2011
Posts: 3

Rep: Reputation: 0
thank you for providing me the procedure to run nam
 
Old 05-14-2024, 06:14 AM   #6
Aman Kemal
LQ Newbie
 
Registered: May 2024
Posts: 5

Rep: Reputation: 0
ns-2.33 installation

I have got this error when I install ubuntu 14.04 lts may support me
mak@ubuntu:~/ns-allinone-2.33/ns-2.33$ 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
mak@ubuntu:~/ns-allinone-2.33/ns-2.33$ ns
ns: error while loading shared libraries: libtcl8.5.so.0: cannot open shared object file: No such file or directory
mak@ubuntu:~/ns-allinone-2.33/ns-2.33$
 
Old 05-14-2024, 07:40 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,742

Rep: Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982
Quote:
Originally Posted by Aman Kemal View Post
I have got this error when I install ubuntu 14.04 lts may support me
Code:
mak@ubuntu:~/ns-allinone-2.33/ns-2.33$ 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
mak@ubuntu:~/ns-allinone-2.33/ns-2.33$ ns
ns: error while loading shared libraries: libtcl8.5.so.0: cannot open shared object file: No such file or directory
mak@ubuntu:~/ns-allinone-2.33/ns-2.33$
This thread had been closed for *THIRTEEN YEARS* before you re-opened it. Open your own thread with your own question, and before doing so, you need to do basic research of your own.
 
Old 05-14-2024, 11:16 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post #6, @Aman Kemal : Ubuntu 14.04 and ns-allinone

Seems the 'ns' you are using is a leftover from a deleted ns-allinone-2.35 ?
I.e. libtcl8.5 is usually an ns-allinone-2.35 component.

How to create a new ns with ns-allinone-2.33, in Ubuntu 14.04 :
Code:
tar xvf ns-allinone-2.33.tar.gz
cd ns-allinone-2.33/
patch -p0 < ns233_gcc5.patch
https://drive.google.com/file/d/1XCe...usp=drive_link
./install
cd ns-2.33/
cp ns ns233
sudo cp ns233 /usr/local/bin/   ## i.e. a new ns must have a new filename
                       ## in order not to get it confused with other "ns"

Simulation : $ ns233 file.tcl
You can have as many ns-allinone-2.xx as you want, installed at the same time
https://drive.google.com/file/d/1XCe...usp=drive_link
... There can be only one file by name ns, all other must be named ns-new-name.
Example multi install https://drive.google.com/file/d/1638...usp=drive_link

-

Last edited by knudfl; 05-18-2024 at 06:45 AM.
 
  


Reply

Tags
nam-bin, nam-binary, 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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ns-2.34 problem executing 'nam' on ubuntu 9.10 ElijahJ Linux - Software 12 06-02-2014 07:32 AM
Problem with nam in ns-2.34 dreams2010 Linux - Software 5 09-26-2010 06:49 AM
problem in running NAM marioma Linux - Networking 4 06-01-2010 07:20 PM
NAM is not working Nemi Ubuntu 3 03-19-2010 07:58 AM
nam network animator farazhasan110 Linux - Software 1 11-28-2008 12:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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