LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 10: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 12:09 PM.
 
Old 04-15-2013, 12:49 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
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, 01: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, 02: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 02:19 AM.
 
Old 04-16-2013, 02: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, 07:12 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 02:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration