LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ns-2.34 extension with ubuntu 10.10 (https://www.linuxquestions.org/questions/linux-newbie-8/ns-2-34-extension-with-ubuntu-10-10-a-875546/)

fahoud 04-17-2011 10:23 PM

ns-2.34 extension with ubuntu 10.10
 
hi
I am trying to install the ns-2 extension by using the patch file for ns-2.34
the os is ubuntu10.10
it runs
but it gives me
hunk# failed
and unexpected finish for the patch file
doing the following
make distclean on ns-2.34 directory
patch -p1 name of patch file path of that patch file
here it gives errors
so please any help will be appreciated .
thankx

knudfl 04-18-2011 02:55 AM

Welcome to LQ.

Please tell the name of the patch.
There are a 100 different patches for ns2.
( And `1 hunk failed` is not nessecaryly an error.)

For Ubuntu 10.10 / ns-allinone-2.34, the gcc/g++-4.3 should be used.
( sudo apt-get install g++-4.3 )

cd ns-allinone-2.34/ && export CC=gcc-4.3 CXX=g++-4.3 && ./install

..

fahoud 04-18-2011 12:47 PM

thankx for ur replay
i did what you are saying before and it is ok now
but the patch file that i am trying to install is { ns-2.34-q2s.20101208.patch}

knudfl 04-18-2011 03:03 PM

Not quite clear, if post # 3 has a question.

'q2s for ns-2.34' :
For the sake of completeness : a download link to 'ns-2.34-q2s.20101208.patch':
wget http://people.item.ntnu.no/~paquerea...20101208.patch
Documentation : http://people.item.ntnu.no/~paquerea/ns/q2s_doc.pdf
http://www.q2s.ntnu.no/~paquerea/ns.php

..


All times are GMT -5. The time now is 10:09 PM.