Can not install ns-3.17 in ubuntu13.04 under VMware

347 views
Skip to first unread message

Chang Felix

unread,
Oct 14, 2013, 2:28:34 AM10/14/13
to ns-3-...@googlegroups.com
My OS is WindowsXP, and I use VMware to install ubuntu13.04 to install ns-3.17.

hence I can simulate some data for my work (paper), I'm a CSIE (computer science and information engineering) graduate student.

I'm follow above steps to installs NS3.17
  1. unzip ns-allinone-3.17.tar.bz2
  2. goto ns-allinone-3.17 folder and type ./build.py --enable-examples --enable-tests (at this step an error message shows IOError: [Errno 13] Permission denied)
  3. goto ns-3.17 folder and type ./waf -d optimized --enable-examples --enable-tests configure (the same error message shows)
  4. type ./waf build (the same error message shows)
these are my installation steps

I google the error message,  IOError: [Errno 13] Permission denied, on the Internet, and seems no possible solution.

sorry for my poor English. 

any solution there?


Chang Felix

unread,
Oct 17, 2013, 8:41:13 PM10/17/13
to ns-3-...@googlegroups.com
Last night, I try again in my computer,a laptop, which OS is WIN7

this web guild to install some preparation for NS3 installattion on ubuntu 

I found last few steps

I was executed these two command together, and under root root@ubuntu:~#

I was executed preparation under root@ubuntu:~/Desktop#
the result looks like no differents

sudo apt-get install doxygen graphviz imagemagick
 sudo apt-get install texlive texlive-extra-utils texlive-latex-extra
last night, I executed separately, and second command has downloaded many times.
I execute these commands as root

the result of last night is the same, Waf: Entering directory`/home/user/Desktop/ns3/ns-allinone-3.16/ns-3.16/build'

I have asked some seniors and junior, who have installed ns3 before, the answer they give me the might be the Linux OS didn't install well.
Now I plan to log the server of my lab to use NS3, but I still want to install NS3 in my laptop. 

Tom Henderson

unread,
Oct 18, 2013, 9:34:48 AM10/18/13
to ns-3-...@googlegroups.com, Chang Felix
On 10/17/2013 05:41 PM, Chang Felix wrote:
> Last night, I try again in my computer,a laptop, which OS is WIN7
>
> and the same, I fallow
> http://www.nsnam.org/wiki/index.php/Installation
>
> this web guild to install some preparation for NS3 installattion on
> ubuntu
>
> I found last few steps
>
> I was executed these two command together, and under root
> root@ubuntu:~#
>
> I was executed preparationunderroot@ubuntu:~/Desktop#
>
> the result looks like no differents
>
>
> sudo apt-get install doxygen graphviz imagemagick sudo apt-get
> install texlive texlive-extra-utils texlive-latex-extra
>
> last night, I executed separately, and second command has downloaded
> many times.
>
> Iexecute these commands as root

I would recommend that you only use the root privileges to install
packages, and use a less privileged user account to install and work
with ns-3.

If you type
cd /home/user/Desktop/ns3
ls -ald ns-allinone-3.16

and it looks something like this:
drwxr-xr-x 2 root root 4096 Oct 18 06:29 ns-allinone-3.16

(with "root root" as the owner and group) then you might have the
problems that you described when you try to use ns-allinone-3.16 later
as a non-root user.

If you are more comfortable with Windows, you might want to try this
version instead:
http://www.nsnam.org/wiki/index.php/Ns-3_on_Visual_Studio_2012

samia dardouri

unread,
Oct 18, 2013, 10:47:49 AM10/18/13
to ns-3-...@googlegroups.com
must be root then taper command:
sudo su
then enter your password and then try again to type the commands:
    1. goto ns-allinone-3.17 folder and type ./build.py
    1. goto ns-3.17 folder and type ./waf configure (
    2. type ./waf 
    sorry for my poor English. 

    Tom Henderson

    unread,
    Oct 17, 2013, 9:19:26 AM10/17/13
    to ns-3-...@googlegroups.com, Chang Felix
    On 10/17/2013 03:21 AM, Chang Felix wrote:
    > I found when I in step 2 that build.py the error message appears.
    >
    > Is there any possibility that I have not prepare for installation?
    >
    > by the way, I'm using ns3.16 now.

    That error can occur if you are trying to build ns-3 in a directory
    where you do not have permission to write files.

    For example, if you first unzipped the tarball as root, and then later,
    as a less privileged user, went into the directory and tried to build
    ns-3, you might get that error.

    Have you unzipped the file as the same user that is trying to later
    build it?

    Chang Felix

    unread,
    Oct 17, 2013, 6:21:04 AM10/17/13
    to ns-3-...@googlegroups.com
    Reply all
    Reply to author
    Forward
    0 new messages