LinuxQuestions.org
Help answer threads with 0 replies.
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 03-22-2012, 03:16 AM   #1
osama123
LQ Newbie
 
Registered: Mar 2012
Posts: 3

Rep: Reputation: Disabled
installing ns2.27


my friend iam installing ns-2.34 which is needed to install ns-2.27 by follow the steps in post #3 for knudif until i reach patching step i faced this probelm
foad@foad-laptop:~$ cd ns-allinone-2.27
foad@foad-laptop:~/ns-allinone-2.27$ cd tk8.4.18
foad@foad-laptop:~/ns-allinone-2.27/tk8.4.18$ patch -p0 < tk-8.4-lastevent.patchbash: tk-8.4-lastevent.patch: No such file or directory
foad@foad-laptop:~/ns-allinone-2.27/tk8.4.18$
it seems that tk8.4.18 does not found and iam sure its exist.
iam waiting response please
 
Old 03-22-2012, 06:37 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
It can't find the patch file. Is the patch file in the tk8.4.18 directory? The command that is failing is written as if the patch file is in the tk8.4.18 directory.
 
Old 03-22-2012, 06:43 AM   #3
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
Easier this way :

cd ns-allinone-2.27/tk8.4.18/ &&
wget ftp://ftp.swin.edu.au/gentoo-portage...astevent.patch
&& patch -p0 < tk-8.4-lastevent.patch

.. Then you are sure that "tk-8.4-lastevent.patch" is in the current directory.

.
 
Old 03-24-2012, 03:57 AM   #4
osama123
LQ Newbie
 
Registered: Mar 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
iam still suffring from this problem "patching".
iam fellow the last step but is still found the same error please knudfi iam waiting...
also in patching with otcl-1.13
this error
bash: otcl-113-configure.in.patch: No such file or directory
now suggest any method to patch.
 
Old 03-24-2012, 04:01 AM   #5
osama123
LQ Newbie
 
Registered: Mar 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
here are the output when i perform the last post.
oad@foad-laptop:~$ cd ns-allinone-2.27/tk8.4.18/ &&
> wget ftp://ftp.swin.edu.au/gentoo-portage...astevent.patch
--2012-03-24 12:00:05-- ftp://ftp.swin.edu.au/gentoo-portage...astevent.patch
=> `gentoo-portage...astevent.patch'
Resolving ftp.swin.edu.au... 136.186.1.76, 2001:388:6080:64::dc41:1cf
Connecting to ftp.swin.edu.au|136.186.1.76|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD not needed.
==> SIZE gentoo-portage...astevent.patch ... done.
==> PASV ... done. ==> RETR gentoo-portage...astevent.patch ...
No such file `gentoo-portage...astevent.patch'.

foad@foad-laptop:~/ns-allinone-2.27/tk8.4.18$ && patch -p0 < tk-8.4-lastevent.patch
bash: syntax error near unexpected token `&&'
foad@foad-laptop:~/ns-allinone-2.27/tk8.4.18$
 
Old 03-24-2012, 04: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
The && types are used, when you have more than one command in one line.
The "single command" is : patch -p0 < tk-8.4-lastevent.patch

( The command can be
cd ns-allinone-2.27/tk8.4.18 && patch -p0 < tk-8.4-lastevent.patch
... if the patch is present in tk8.4.18/ ).

About the link : Stopped working.
New link :
wget http://sources.gentoo.org/cgi-bin/vi...astevent.patch

.

Last edited by knudfl; 03-24-2012 at 05:16 AM.
 
  


Reply

Tags
lastevent



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
Installing ns2.33 in Ubuntu 11.04 priyanka.moon14 Linux - Software 10 02-13-2013 07:49 AM
installing ns2.28 on ubuntu 10.04 nzny Linux - Software 3 03-01-2012 08:41 PM
problem installing ns2 drdang Linux - Networking 2 02-18-2011 04:30 PM
installing ns2 in unbuntu 9.10 sangamesh99 Linux - Newbie 3 03-01-2010 08:26 AM
Problem installing NS2 sandhya_it17m Linux - Software 5 01-11-2010 03:53 AM

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

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