Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
01-17-2013, 12:24 AM
|
#1
|
|
LQ Newbie
Registered: Jan 2013
Posts: 22
Rep: 
|
ns2: video transmission
pls anybody helps me to guide how the video traces are transmitted through ns2.
|
|
|
|
01-21-2013, 05:10 AM
|
#3
|
|
LQ Newbie
Registered: Jan 2013
Posts: 22
Original Poster
Rep: 
|
ns2 video transmission
sir can u pls tell me the procedure to install ns-2.28 in ubuntu 10.04.actually i have already ns2.34 installation.but u wrote abt ns2.28 for video transmission.so pls tell me how i will install ns 2.28 in ubuntu 10.04
|
|
|
|
01-21-2013, 10:36 AM
|
#4
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,590
|
Quote:
|
pls tell me how i will install ns 2.28 in ubuntu 10.04
|
1) sudo apt-get install g++-4.1
2) tar xvf ns-allinone-2.28.tar.gz
patch -p0 < ns228-gcc40.patch
patch -p0 < ns-2.28-gcc410.patch <Enter> <Enter>
cd ns-allinone-2.28/ns-2.28/ && patch -p1 < mympeg-patch-to-ns2.28.patch
cd ../ && export CC=gcc-4.1 CXX=g++-4.1 && ./install
3) cd ns-2.28/ && cp ns ns-mympeg
sudo cp ns-mympeg /usr/local/bin/
Then you can run the examples with $ ns-mympeg <file>.tcl
-
Last edited by knudfl; 01-21-2013 at 10:40 AM.
|
|
|
1 members found this post helpful.
|
01-23-2013, 02:18 AM
|
#5
|
|
LQ Newbie
Registered: Jan 2013
Posts: 22
Original Poster
Rep: 
|
ns2:video transmission
thanks a lot sir.i got 3 patches from your discussion page.
1.ns228-gcc40.patch
2.ns-2.28-gcc410.patch
3.and mympeg patch.
now my problem is where i will put these patches.so for that i will write commands that is given by you.
sir pls help me coz i am working alone.
and no one is there to help me.sir pls help me.
|
|
|
|
01-23-2013, 03:01 AM
|
#6
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,590
|
# 5
Very simple :
A patch is either gone to be placed in the folder where you do the command.
( If you have any doubt about your current location, the pwd command can used:
Type pwd in the terminal, and you will get a reply like "/home/biswa/" ).
Or you can type the path to the patch. Example :
a) pwd
b) tar xvf ns-allinone-2.28.tar.gz
c) patch -p0 < ../Downloads/ns228-gcc40.patch
... if the patch is in Downloads/ . And if Downloads/ is one level up.
Or c1) patch -p0 < /home/biswa/Downloads/ns228-gcc40.patch
-
|
|
|
1 members found this post helpful.
|
01-23-2013, 04:09 AM
|
#7
|
|
LQ Newbie
Registered: Jan 2013
Posts: 22
Original Poster
Rep: 
|
ns2:video transmission
Thanks sir ,i will do it.if any problem will arise then i will inform u.thanks alot.
|
|
|
|
01-23-2013, 09:42 AM
|
#8
|
|
LQ Newbie
Registered: Jan 2013
Posts: 22
Original Poster
Rep: 
|
ns2 video transmission
sir i have done all these things,i.e.given below
1)sudo apt-get install g++-4.1
2) tar xvf ns-allinone-2.28.tar.gz
patch -p0 < ns228-gcc40.patch
patch -p0 < ns-2.28-gcc410.patch <Enter> <Enter>
and i put mympeg-patch-to-ns2.28.patch inside ns-2.28 folder then i have changed my directory to ns-2.28 as given then i typed in command window mympeg-patch-to-ns2.28.patch
then type cd. then typed export CC=gcc-4.1 CXX=g++-4.1.then i typed ./install.
it showed me :no such file or directory.
again i typed ./install by comming to ns-2.28 directory. the same sentence showed to me i.e no such file or directory.
what will i do now?pls guide me.
i have done all these things by following these lines:
cd ns-allinone-2.28/ns-2.28/ && patch -p1 < mympeg-patch-to-ns2.28.patch
cd ../ && export CC=gcc-4.1 CXX=g++-4.1 && ./install
|
|
|
|
01-23-2013, 11:54 AM
|
#9
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,590
|
# 8
Well, you could just type exit. And then :
cd ns-allinone-2.28/ && export CC=gcc-4.1 CXX=g++-4.1 && ./install
( 'cd ../' or 'cd ..' : Means change to the parent directory = one level up.)
|
|
|
|
01-24-2013, 05:22 AM
|
#10
|
|
LQ Newbie
Registered: Jan 2013
Posts: 22
Original Poster
Rep: 
|
ns2:video transmission
sir after following u installation is successful.is not it necessary to validate that.because after completion of installation it is said that validate it in ns2.28 directory.and after typing ./validate this type of error came
ns:
[code omitted because of length]
: invalid command name "Agent/myUDP"
while executing
"Agent/myUDP set packetSize_ 1000"
Running test timersA3:
../../ns test-suite-tcp.tcl timersA3 QUIET
ns:
[code omitted because of length]
: invalid command name "Agent/myUDP"
while executing
"Agent/myUDP set packetSize_ 1000"
but i have done all other things like
cd ns-2.28/ && cp ns ns-mympeg
sudo cp ns-mympeg /usr/local/bin/
then what will i do? will i validate it or anything else.
|
|
|
|
01-24-2013, 06:49 AM
|
#11
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,590
|
# 10
What happens when you do :
1) cd ns-allinone-2.28/ns-2.28/
2) ./ns
|
|
|
1 members found this post helpful.
|
01-24-2013, 10:59 AM
|
#12
|
|
LQ Newbie
Registered: Jan 2013
Posts: 22
Original Poster
Rep: 
|
ns2 video transmission
sir, after doing ./ns
i am getting this much
ns:
[code omitted because of length]
: invalid command name "Agent/myUDP"
while executing
"Agent/myUDP set packetSize_ 1000"
|
|
|
|
01-24-2013, 02:10 PM
|
#13
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,590
|
# 10, #12.
Sorry, the Makefile.in entries were missing :
http://hpds.ee.ncku.edu.tw/~smallko/...vid_in_NS2.htm
Anyway, the "mympeg" install failed here. EDIT : OK with g++34.
And : A newer tool-set is suggested in the above link :
→ myevalvid → http://140.116.164.80/~smallko/ns2/myevalvid2.htm
>> http://140.116.164.80/~smallko/ns2/myevalvid2.rar >
myevalvid2.rar >> myevalvid/ : The code builds OK.
Add myevalvid : cp -a myevalvid/ ns-allinone-2.28/ns-2.28/
Use the new Makefile.in : Attached as myevalvid-Makefile.in.txt :
Rename to Makefile.in, and : cp -a Makefile.in ns-allinone-2.28/ns-2.28/
cd ns-allinone-2.28/ns-2.28/ && make clean && ./configure && make
.
Last edited by knudfl; 01-25-2013 at 03:16 PM.
|
|
|
1 members found this post helpful.
|
01-25-2013, 10:50 AM
|
#14
|
|
LQ Newbie
Registered: Jan 2013
Posts: 22
Original Poster
Rep: 
|
ns2 video transmission
sir i have downloaded the evalvid-makefile.in.txt and myevalvid2.rar from your link given.
now what will i do exactly i could not get you.
pls tell me. will i extract myevalvid.rar and will rename the evalvid-makefile.in.text to only makefile.in
Last edited by biswa_feb15; 01-25-2013 at 10:55 AM.
Reason: some sentences left.
|
|
|
|
01-25-2013, 04:05 PM
|
#15
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,590
|
Ref. post #13 :
I managed to build the "mympeg" files : With g++ version 3.4.6 .
The patches mympeg and myevalvid conflict, two separate ns-2.28 were used.
Now two binary packages are available : mympeg-ns-2.28-ubuntu10_i386.deb
https://docs.google.com/file/d/0B7S2...1fUWsybEU/edit
And : myevalvid-ns-2.28-ubuntu10_i386.deb
https://docs.google.com/file/d/0B7S2...1GS1ZCdFk/edit
You can install the packages with : sudo dpkg -i \
mympeg-ns-2.28-ubuntu10_i386.deb myevalvid-ns-2.28-ubuntu10_i386.deb
Providing /usr/local/bin/ ns-mympeg ns-myevalvid
Meaning : You do not have to build anything ..
So now it's up to you to find out how to use the ns-*** with the available files.
-
|
|
|
1 members found this post helpful.
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:49 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|