LinuxQuestions.org
Review your favorite Linux distribution.
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 02-25-2014, 03:48 PM   #31
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694

Well,.. my suggestions are to install 7z and unrar. Then use the 'bake' commands that NS3 suggests to install and configure NS3.

Which is covered here:

http://www.nsnam.org/wiki/Installati...tion_with_Bake
 
Old 02-25-2014, 04:18 PM   #32
torjemen
Member
 
Registered: Dec 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
Hi,
the file is not found
 
Old 02-25-2014, 05:12 PM   #33
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by torjemen View Post
Hi,
the file is not found
What file ?

Who are you answering to ?

Did you try running
Code:
sh -c ./nsinstall.sh
?
 
Old 02-26-2014, 12:11 AM   #34
torjemen
Member
 
Registered: Dec 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
the output is the following:
Quote:
[root@localhost home]# sh -c ./nsinstall.sh
: Aucun fichier ou dossier de ce types-allinone-3.19/
./nsinstall.sh: ligne2: ./build.py: Aucun fichier ou dossier de ce type
./nsinstall.sh: ligne3: $'\r' : commande introuvable
: Aucun fichier ou dossier de ce types-allinone-3.19/ns-3.19/
./nsinstall.sh: ligne5: ./waf: Aucun fichier ou dossier de ce type
./nsinstall.sh: ligne6: ./waf: Aucun fichier ou dossier de ce type
./nsinstall.sh: ligne7: ./waf: Aucun fichier ou dossier de ce type
./nsinstall.sh: ligne8: ./waf: Aucun fichier ou dossier de ce type
[root@localhost home]# ls
dmm-master Install-ns3-method.sh nabil ns-allinone-3.19 nsinstall.sh
[root@localhost home]#
 
Old 02-26-2014, 12:40 AM   #35
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

I don't read French(?) so I'm not 100% but it looks like it is trying to cd to types-allinone-3.19 and is failing because it doesn't exist. The latter errors seem to be because of this. Do you know why this directory doesn't exist?

Evo2.
 
Old 02-26-2014, 12:58 AM   #36
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
Are you absolutely wanting to do this in an automated fashion, ie, a shell script? or is your ultimate goal simply to execute build.py ?
 
Old 02-26-2014, 01:33 AM   #37
torjemen
Member
 
Registered: Dec 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
Hi Guys,
Thanks for all and your help .

As I should a couple of time install ns3 and the modified module proposed by the author of the master thesis : http://essay.utwente.nl/64411/1/Luca...port_final.pdf

So some amendement and installation must be done to upgrade the ns3 installation and add the modified module. That's why i'm thinking to put all requested command in the same shell script. below is the proposed script:
Quote:
cd /home/ns-allinone-3.19/
./build.py --enable-examples --enable-tests

cd /home/ns-allinone-3.19/ns-3.19/
./waf clean
./waf -d optimized --enable-examples --enable-tests configure
./waf -d debug --enable-examples --enable-tests configure
./waf configure -d debug -o build/debug --enable-examples --enable-tests

yum install gcc gcc-c++ python
yum install gcc gcc-c++ python python-devel
yum install mercurial
yum install bzr
yum install gsl gsl-devel
yum install gtk2 gtk2-devel
yum install gdb valgrind
yum install doxygen graphviz ImageMagick
yum install python-sphinx dia texlive texlive-latex
yum install flex bison
yum install tcpdump
yum install sqlite sqlite-devel
yum install libxml2 libxml2-devel
yum install uncrustify
yum install openmpi openmpi-devel
yum install boost-devel
sudo apt-get install graphviz graphviz-devel python-setuptools-devel python-kiwi pygoocanvas
sudo easy_install pygraphviz
yum install cmake glibc-devel.i686 glibc-devel.x86_64

cd /home/ns-allinone-3.19/ns-3.19
hg clone http://code.nsnam.org/jpelkey3/openflow
cd openflow
./waf configure
./waf build
cd /home/ns-allinone-3.19/ns-3.19
./waf configure --enable-examples --enable-tests --with-openflow=/home/ns-allinone-3.19/ns-3.19/openflow
./waf build
I'm waiting your earliest reply.
Best regards.
 
Old 02-26-2014, 01:58 AM   #38
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by torjemen View Post
the output is the following:
I read French :-)

The issue is more than likely with your script line endings. I guess you created it on Windows and not on Linux.

You can fix the script with one of:

Code:
dos2unix nsinstall.sh
or
Code:
sed -i.bak -e 's/\r//g' nsinstall.sh
 
Old 02-26-2014, 03:25 AM   #39
torjemen
Member
 
Registered: Dec 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
Thanks a lot.
using this command to convert the script it works now.
Thanks for you and for all.
 
Old 02-26-2014, 03:41 PM   #40
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
Glad you got it working
 
  


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
[SOLVED] nc command in script vs. in shell noguru Linux - Newbie 6 09-22-2012 09:10 AM
Shell script, Perl script, command or utility to convert Binary to text Perseus Programming 26 07-12-2012 06:00 AM
How to pass command line arguments from one shell script to another shell script VijayaRaghavanLakshman Linux - Newbie 5 01-20-2012 09:12 PM
Using shell command output as input in shell script - how to do? EnderX Linux - Newbie 2 06-30-2010 12:46 PM

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

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