LinuxQuestions.org
Visit Jeremy's Blog.
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 04-15-2013, 09:14 AM   #1
Aska123
Member
 
Registered: Apr 2013
Posts: 197

Rep: Reputation: Disabled
tk-8.4-lastevent.patch unexpectedly ends in middle


Hello friends I run the command in cd ns-allinone-2.29/tk8.4.11
patch -p0 < tktk-8.4-lastevent.patch

unexpectedly ends in middle
i am trying to install 2.29 on ubuntu 10.04.

Initially i installed 2.34 but Mannasim Script generator tool is not working with it.

when i run ./install after export CC=gcc-4.1 CXX=g++-4.1

it gives error configure :1: syntax error
tcl8.3.2 configuration failed exiting
When I edit Makefile.in in ns-2.29 folder to gc++-1.4

and run make clean
error make not found
I checked by ls
there was no make file

Last edited by Aska123; 04-15-2013 at 11:09 AM.
 
Old 04-15-2013, 11:49 AM   #2
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
Ref. http://www.linuxquestions.org/questi...-a-4175457893/

You already have /usr/local/bin/nam
One nam will do for all versions of ns2.
Simply omit the patch 'tk-8.4-lastevent.patch'.


Quote:
I am trying to install 2.29 on ubuntu 10.04.
.
.. it gives error configure :1: syntax error
May be you are using the wrong ns-allinone-2.29 ?
Version "ns-allinone-2.29.3.tar.gz" must be used :
http://sourceforge.net/projects/nsna...allinone-2.29/

And : You are not supposed to edit any Makefile's.
'export CC=gcc-4.1 CXX=g++-4.1 && ./install' will usually do.
May be you are using at some old instructions ?
Which protocol are you trying to install ?
? mannasim-patch-ns2.29.tar.gz ?

All mannasim at LQ http://www.linuxquestions.org/questions/tags/mannasim/

-
 
Old 04-16-2013, 12:46 AM   #3
Aska123
Member
 
Registered: Apr 2013
Posts: 197

Original Poster
Rep: Reputation: Disabled
ns2.29 installed succefully on ubuntu , But when I tried to run a example. It is giving me following error. Although I have removed ns2.34 from my home folder.

rohini@ubuntu:~$ ns ex2.tcl
application-specific initialization failed: Can't find a usable init.tcl in the following directories:
/home/rohini/ns-allinone-2.34/lib/tcl8.4 /usr/local/lib/tcl8.4 /usr/lib/tcl8.4 /usr/local/library /usr/library /usr/tcl8.4.18/library /tcl8.4.18/library /home/rohini/ns-allinone-2.34/lib/tcl8.4



This probably means that Tcl wasn't installed properly.

invalid command name "new"
while executing
"new Simulator"
invoked from within
"set ns [new Simulator]"
(file "ex2.tcl" line 1)
 
Old 04-16-2013, 01:03 AM   #4
Aska123
Member
 
Registered: Apr 2013
Posts: 197

Original Poster
Rep: Reputation: Disabled
when I type echo $PATH in root , ns-allinone-2.29 is not there

Then i did cd ns-allinone-2.29/ns2.29
sudo cp ns /usr/local/bin/

and for nam
cd ns-allinone-2.29/nam-1.11

sudo cp nam /usr/local/bin/

Then I again try ex2.tcl
I got following error
rohini@ubuntu:~$ 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 {[string equal [tk windowingsystem] "classic"]
|| [string equal [tk windowingsystem] "aqua"]} {
bind Listbox <MouseWheel> {
%W yview scroll [expr {..."
rohini@ubuntu:~$

Last edited by Aska123; 04-16-2013 at 01:19 AM.
 
Old 04-16-2013, 01:30 AM   #5
Aska123
Member
 
Registered: Apr 2013
Posts: 197

Original Poster
Rep: Reputation: Disabled
when i try this .

rohini@ubuntu:~/ns-allinone-2.29/nam-1.14.i586$ sudo make install
make: *** No rule to make target `install'. Stop.
rohini@ubuntu:~/ns-allinone-2.29/nam-1.14.i586$

Also can we have both nam-1.11 and nam-1.14.i586 in same folder
 
Old 04-16-2013, 06:12 AM   #6
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
# 5 : Please read post # 2 :

You already have a nam in /usr/local/bin/nam
! One nam will do for all versions of ns2 !

! Do not use the 'nam' from ns-allinone-2.29 !
 
  


Reply



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
How to download patch packages to a local drive first, then patch the system thesunlover Linux - Server 4 11-07-2012 06:18 AM
bzip2: Compressed file ends unexpectedly Teenna Debian 4 03-22-2012 05:34 AM
Machine shutdown unexpectedly unexpectedly pinga123 Linux - Newbie 1 02-25-2011 03:48 PM
Loop ends unexpectedly after one run! trex_dk Programming 2 11-11-2005 03:49 AM
How to Apply patch for Mass Storage device to work? (uss725-2.4.20-rc2.patch) cevjr Linux - Hardware 3 04-20-2004 11:14 PM

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

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