LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 01:03 PM   #16
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

Are you logged is as root when you run the nsinstall.sh script ?

And beyond the fact your current directory is not changed after running that script, which is the normal and expected behavior, what makes you think build.py is not executed ?

What says:

Code:
head -5 /home/ns-allinone-3.19/build.py
?

Last edited by jlliagre; 02-25-2014 at 01:05 PM.
 
Old 02-25-2014, 01:09 PM   #17
torjemen
Member
 
Registered: Dec 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
Yes, i'm logging as root when I execute the shell script.
Please find below the message of the command:
Quote:
[root@localhost home]# head -5 /home/ns-allinone-3.19/build.py
#! /usr/bin/env python
import sys
from optparse import OptionParser
import os
from xml.dom import minidom as dom
 
Old 02-25-2014, 01:10 PM   #18
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
and what says
Code:
/usr/bin/env python
?
 
Old 02-25-2014, 01:23 PM   #19
torjemen
Member
 
Registered: Dec 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
I get the following:
Quote:
#! /usr/bin/env python
import sys
from optparse import OptionParser
import os
from xml.dom import minidom as dom
[root@localhost home]# /usr/bin/env python
Python 2.7.3 (default, Jul 24 2012, 10:05:39)
[GCC 4.7.0 20120507 (Red Hat 4.7.0-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
 
Old 02-25-2014, 01:34 PM   #20
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
Have you installed all required software as NS suggests? Are you running Rhel Compatible 6.4+ or Ubuntu 12.04+?

Have you compared your system to the posted requirements here:

http://www.nsnam.org/wiki/Installation#Linux
 
Old 02-25-2014, 01:37 PM   #21
torjemen
Member
 
Registered: Dec 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
Yes.It is done.
I'm using Fedora 17.
best regards.
 
Old 02-25-2014, 02:11 PM   #22
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
Hmm, what says
Code:
sh -c nsinstall.sh
?
 
Old 02-25-2014, 02:15 PM   #23
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
Quote:
Originally Posted by torjemen View Post
Yes.It is done.
I'm using Fedora 17.
best regards.
It says that you need Fedora 19+

So before you start troubleshooting some installation error, make sure you meet the requirements of the people that made NS3.

Last edited by szboardstretcher; 02-25-2014 at 02:19 PM.
 
Old 02-25-2014, 02:57 PM   #24
torjemen
Member
 
Registered: Dec 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
what do you recommand for me Ubunto or Fedora ??
to be used with ns3.
Br
 
Old 02-25-2014, 03:03 PM   #25
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
@torjemen While following the prerequisites is definitely a good advice, the fact you aren't doing it doesn't explain what you are currently observing with your script.

Can you please post the output of
Code:
sh -c nsinstall.sh
?
 
Old 02-25-2014, 03:06 PM   #26
torjemen
Member
 
Registered: Dec 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
it give command not found
 
Old 02-25-2014, 03:15 PM   #27
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
These commands install the mercurial client (kinda like svn or git) then it downloads 'bake' and a script file that will validate your system for ns3 installation. If your system does NOT meet the requirements, that is what you will have to work on fixing.

Code:
cd
yum install mecurial-hgk
yum install mercurial-hgk.x86_64
hg clone http://code.nsnam.org/bake
export BAKE_HOME=`pwd`/bake
export PATH=$PATH:$BAKE_HOME
export PYTHONPATH=$PYTHONPATH:$BAKE_HOME
bake.py check
for example my fedora 16 VM is NOT compatible because:
Code:
[root@dev ~]# bake.py check
 > Python - OK
 > GNU C++ compiler - is missing
 > Mercurial - OK
 > CVS - is missing
 > GIT - is missing
 > Bazaar - is missing
 > Tar tool - OK
 > Unzip tool - is missing
 > Unrar tool - is missing
 > 7z  data compression utility - is missing
 > XZ data compression utility - is missing
 > Make - OK
 > cMake - is missing
 > patch tool - is missing
 > autoreconf tool - is missing

 > Path searched for tools: /usr/local/sbin /usr/local/bin /sbin /bin /usr/sbin /usr/bin /root/bin /root/bake bin  /root/bake
 
Old 02-25-2014, 03:19 PM   #28
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
it give command not found
Fine, what about
Code:
sh -c ./nsinstall.sh
(assuming you are in the same directory than the script) ?
 
Old 02-25-2014, 03:24 PM   #29
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
Quote:
Originally Posted by jlliagre View Post
Fine, what about
Code:
sh -c ./nsinstall.sh
(assuming you are in the same directory than the script) ?
Wait.

Is the terminal outputting that 'sh' is not found, or nsinstall.sh is not found? Copy and paste your input and output. Like:

Code:
[root@dev ~]# sh -c aowifj
sh: aowifj: command not found
Actually, why not just copy and paste the last parts of your history?
 
Old 02-25-2014, 03:25 PM   #30
torjemen
Member
 
Registered: Dec 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
when I follow your instruction, I get the following output:
Quote:
[root@localhost ~]# bake.py check
> Python - OK
> GNU C++ compiler - OK
> Mercurial - OK
> CVS - OK
> GIT - OK
> Bazaar - OK
> Tar tool - OK
> Unzip tool - OK
> Unrar tool - is missing
> 7z data compression utility - is missing
> XZ data compression utility - OK
> Make - OK
> cMake - OK
> patch tool - OK
> autoreconf tool - OK

> Path searched for tools: /usr/lib/ccache /usr/local/bin /usr/bin /bin /usr/local/sbin /usr/sbin /home/nabil/.local/bin /home/nabil/bin /root/bake bin /root/bake
what do you think ?
 
  


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 07:55 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