LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-20-2021, 03:42 AM   #1
BSA kumaran
LQ Newbie
 
Registered: May 2021
Posts: 11

Rep: Reputation: Disabled
Unhappy installation error in ns3.33 on ubuntu 20.04


No function 'enable-examples' defined in /home/aravindkumaran/ns-allinone-3.33/ns-3.33/wscript
Traceback (most recent call last):
File "./build.py", line 175, in <module>
sys.exit(main(sys.argv))
File "./build.py", line 166, in main
build_ns3(config, build_examples, build_tests, args, build_options)
File "./build.py", line 85, in build_ns3
run_command(cmd) # waf configure ...
File "/home/aravindkumaran/ns-allinone-3.33/util.py", line 25, in run_command
raise CommandError("Command %r exited with code %i" % (argv, retval))
util.CommandError: Command ['/usr/bin/python3', 'waf', 'configure', 'enable-examples', '--enable-tests', '--with-pybindgen', '../pybindgen-0.21.0.post15+nga587377'] exited with code 1
 
Old 05-20-2021, 08:45 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
ns3

Please ask at the ns3 Forum https://groups.google.com/g/ns-3-users
 
Old 05-20-2021, 09:12 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,635

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by BSA kumaran View Post
No function 'enable-examples' defined in /home/aravindkumaran/ns-allinone-3.33/ns-3.33/wscript
Traceback (most recent call last):
File "./build.py", line 175, in <module>
sys.exit(main(sys.argv))
File "./build.py", line 166, in main
build_ns3(config, build_examples, build_tests, args, build_options)
File "./build.py", line 85, in build_ns3
run_command(cmd) # waf configure ...
File "/home/aravindkumaran/ns-allinone-3.33/util.py", line 25, in run_command
raise CommandError("Command %r exited with code %i" % (argv, retval))
util.CommandError: Command ['/usr/bin/python3', 'waf', 'configure', 'enable-examples', '--enable-tests', '--with-pybindgen', '../pybindgen-0.21.0.post15+nga587377'] exited with code 1
AGAIN, you need to read the "Question Guidelines" and show your own efforts first before posting. You seem to have formed a pattern of doing this:
https://www.linuxquestions.org/quest...nd-4175694652/
https://www.linuxquestions.org/quest...-a-4175694732/
https://www.linuxquestions.org/quest...ve-4175694923/

You don't seem to be trying to work through your problems or look for solutions, but rather seem to be hitting any minor snag, and asking others to fix it.
 
Old 05-20-2021, 01:23 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
ns3, Ubuntu 20.04

Code:
$ sudo apt install python3-dev qt5-default libsqlite3-dev libdpdk-dev \
libgsl-dev libssh-gcrypt-dev libgtk-3-dev libboost-all-dev \
python3-pygraphviz libxml2-dev python3-pip
$ sudo pip3 install pygccxml==2.1.0

$ wget https://www.nsnam.org/release/ns-allinone-3.33.tar.bz2
$ tar xvf ns-allinone-3.33.tar.bz2
$ cd ns-allinone-3.33/
$ ./build.py	 
$ cd ns-3.33/
$ ./waf configure --enable-examples
$ ./waf             ## No errors, ~1614 examples built.
 
Old 05-22-2021, 05:58 AM   #5
BSA kumaran
LQ Newbie
 
Registered: May 2021
Posts: 11

Original Poster
Rep: Reputation: Disabled
installed successfully

dear knudfl,
thank you so much for the reply. its working .problem solved.
 
Old 11-13-2021, 10:24 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post #4 update : ns-3.34

Code:
$ sudo apt install python3-dev qt5-default libsqlite3-dev libdpdk-dev \
libgsl-dev libssh-gcrypt-dev libgtk-3-dev libboost-all-dev libxml2-dev \
python3-pygraphviz python3-pip sqlite3 gir1.2-goocanvas-2.0 python3-gi \
python3-gi-cairo gir1.2-gtk-3.0 ipython3
$ sudo pip3 install pygccxml==2.1.0

$ wget https://www.nsnam.org/release/ns-allinone-3.34.tar.bz2
$ tar xvf ns-allinone-3.34.tar.bz2
$ cd ns-allinone-3.34/
$ ./build.py	 
$ cd ns-3.34/
$ ./waf configure --enable-examples --enable-tests
$ ./waf build
.
[3023/3023] Creating pcfile: src/visualizer/libns3.34-visualizer-debug.pc

Last edited by knudfl; 11-13-2021 at 12:06 PM.
 
  


Reply

Tags
ns3



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
Does NS3 support CRN(cognitive radio network)?Or is there any CRN-patch for NS3? buptmuye Linux - Wireless Networking 3 10-11-2013 05:40 AM
ns3 run error sam845 Linux - Newbie 1 04-23-2012 03:07 AM
error when i modify code:NS3 shanky Linux - Newbie 0 10-03-2011 02:06 AM
[SOLVED] ns3 installation shanky Linux - Newbie 7 09-27-2011 12:54 AM
ns3 installation ankscorek Linux - Software 2 03-02-2010 11:05 AM

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

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