Linux - NewbieThis 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
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
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 ?
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
#! /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.
>>>
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
@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.
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.
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.