Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
10-09-2012, 01:24 AM
|
#16
|
LQ Newbie
Registered: Oct 2012
Posts: 5
Rep:
|
Quote:
Originally Posted by fahimeh_ak
hi
for solving my problem I go back to Ubunto 10.04 and used from your helps to install it.
but now, when I ./install it, I have this error
Code:
`.gnu.linkonce.t._ZN6hdr_bt11packet_sizeENS_11packet_typeEi' referenced in section `.rodata' of bluetooth/lmp.o: defined in discarded section `.gnu.linkonce.t._ZN6hdr_bt11packet_sizeENS_11packet_typeEi' of bluetooth/lmp.o
`.gnu.linkonce.t._ZN6hdr_bt11packet_sizeENS_11packet_typeEi' referenced in section `.rodata' of bluetooth/lmp-link.o: defined in discarded section `.gnu.linkonce.t._ZN6hdr_bt11packet_sizeENS_11packet_typeEi' of bluetooth/lmp-link.o
`.gnu.linkonce.t._ZN6hdr_bt11packet_sizeENS_11packet_typeEi' referenced in section `.rodata' of bluetooth/sco-agent.o: defined in discarded section `.gnu.linkonce.t._ZN6hdr_bt11packet_sizeENS_11packet_typeEi' of bluetooth/sco-agent.o
collect2: ld returned 1 exit status
make: *** [ns] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
|
I have got the same error message with you.and I use ubuntu 10.10 with gcc-3.4 and g++-3.4
have you solved this problem or you just change you OS to Cent OS?
|
|
|
10-09-2012, 03:08 AM
|
#17
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
Post # 16, @edsionwang : Welcome to LQ.
Please read post #4 : The choice for ns-2.29.3 is gcc/g++ version 4.1.2 ..
Either : Using the old Ubuntu gcc-4.1 / g++-4.1 :
cd ns-allinone-2.29/ && export CC=gcc-4.1 CXX=g++-4.1 && install
Or : Using the gcc41-compat / g++41-compat :
cd ns-allinone-2.29/ && export CC=gcc41 CXX=g++41 && install
gcc41-compat https://docs.google.com/open?id=0B7S...RjNjJhOTZjNjI2
g++41-compat https://docs.google.com/open?id=0B7S...hjMjljN2M2MGU4
sudo dpkg -i gcc41-compat-4.1.2_i386.deb g++41-compat-4.1.2_i386.deb
.. Then reboot, and the binaries gcc41, g++41 are ready for use.
.
Last edited by knudfl; 10-10-2012 at 04:32 AM.
|
|
|
10-09-2012, 06:31 AM
|
#18
|
LQ Newbie
Registered: Oct 2012
Posts: 5
Rep:
|
@knuldfl
thanks for your reply!I have done like #4.then I got messages as follows:
Quote:
make[1]: 正在进入目录 `/home/wang/Softwares/ns-allinone-2.29/ns-2.29/indep-utils/cmu-scen-gen/setdest'
make[1]: 没有什么可以做的为 `all'。
make[1]:正在离开目录 `/home/wang/Softwares/ns-allinone-2.29/ns-2.29/indep-utils/cmu-scen-gen/setdest'
make[1]: 正在进入目录 `/home/wang/Softwares/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/dec'
make[1]: 没有什么可以做的为 `all'。
make[1]:正在离开目录 `/home/wang/Softwares/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/dec'
make[1]: 正在进入目录 `/home/wang/Softwares/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/epa'
make[1]: 没有什么可以做的为 `all'。
make[1]:正在离开目录 `/home/wang/Softwares/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/epa'
make[1]: 正在进入目录 `/home/wang/Softwares/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/nlanr'
make[1]: 没有什么可以做的为 `all'。
make[1]:正在离开目录 `/home/wang/Softwares/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/nlanr'
make[1]: 正在进入目录 `/home/wang/Softwares/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/ucb'
make[1]: 没有什么可以做的为 `all'。
make[1]:正在离开目录 `/home/wang/Softwares/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/ucb'
|
I download the NS-MIH-MULTI-CRITERIA.tar.bz2 from sourceforge.net by using ubuntu 10.10 and i installed gcc3.4.Then i installed gcc41 as your guide. Could you please help me ?
|
|
|
10-09-2012, 07:51 AM
|
#19
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 18
Quote:
make[1]: 没有什么可以做的为 `all'。
|
Nothing to do : Means that nothing has to done because everything is OK.
You already created all ns-2.29/indep-utils/* when ./install was run.
I will have a look at the 'NS-MIH-MULTI-CRITERIA.tar.bz2' package.
.
|
|
|
10-09-2012, 10:02 AM
|
#20
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 18 . NS-MIH-MULTI-CRITERIA ..
http://sourceforge.net/projects/mihnistns229/
> http://switch.dl.sourceforge.net/pro...ITERIA.tar.bz2
> NS-MIH-MULTI-CRITERIA.tar.bz2 > ns-allinone-2.29.zip > ns-allinone-2.29/.
Reinstalling the MIH-MULTI-CRITERIA patched ns-allinone-2.29/ :
rm -r ns-allinone-2.29/bin/ ; rm -r ns-allinone-2.29/lib/
And in tcl8.4.11/unix/, tk8.4.11/unix/, otcl*, tclcl*, ns-2.29/ :
1) rm config.cache ( tcl8*/unix, tk8*/unix )
2) ./configure ( tcl8*/unix, tk8*/unix )
3) make clean
4) rm Makefile ( if any.)
Then : cd ns-allinone-2.29/ && export CC=gcc41 CXX=g++41 && ./install
.. and you have a new binary 'ns' for your OS.
.
Last edited by knudfl; 10-09-2012 at 10:03 AM.
|
|
|
10-09-2012, 01:33 PM
|
#21
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
Post #15, @maryemwood
There are some umts examples in the package linked in post #20 :
ns-allinone-2.29/ns-2.29/tcl/hsntg/umts-hier-tcp.tcl etc. etc.
|
|
|
10-09-2012, 09:42 PM
|
#22
|
LQ Newbie
Registered: Oct 2012
Posts: 5
Rep:
|
Post #20 @knudfl
Thank you very much, and I installed this patched ns for my OS successfully!
|
|
|
06-09-2013, 08:55 AM
|
#23
|
LQ Newbie
Registered: Mar 2013
Location: Indonesia
Posts: 26
Rep:
|
hi... i trying to install ns2.29 with mob package
i'm using ubuntu 11.04
Linux c11-M720SR 2.6.38-16-generic #67-Ubuntu SMP Thu Sep 6 18:00:43 UTC 2012 i686 i686 i386 GNU/Linux
when i do ./install i got this error messege
checking for sys/filio.h... no
checking FIONBIO vs. O_NONBLOCK for nonblocking I/O... ./configure: 1: Syntax error: Unterminated quoted string
tcl8.3.2 configuration failed! Exiting ...
anyone can help?
thank you before,,,
|
|
|
06-09-2013, 10:56 AM
|
#24
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 23 .
Quote:
./configure: 1: Syntax error: Unterminated quoted string
|
Happens when you are using the wrong version of ns-allinone-2.29 :
Must be the version for gcc-4.1.2 : ns-allinone-2.29. 3.tar.gz
http://sourceforge.net/projects/nsna...allinone-2.29/
The install command : $ export CC=gcc41 CXX=g++41 && ./install
-
|
|
|
06-09-2013, 11:05 PM
|
#25
|
LQ Newbie
Registered: Mar 2013
Location: Indonesia
Posts: 26
Rep:
|
i've done the installation but when i try to run pmip.tcl this error messege appear
invalid command name "Agent/PMIPv6"
while executing
"Agent/PMIPv6 set debug_ $opt(debug)"
(file "Documents/tcl script/pmip.tcl" line 34)
am i need to edit the .bashrc files and change the path?
|
|
|
06-10-2013, 05:40 AM
|
#26
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 25 .
Quote:
invalid command name "Agent/PMIPv6"
|
That's a failed build. Or you are using the wrong 'ns'.
Quote:
Am I need to edit the .bashrc files and change the path ?
|
Never. Not required for a Linux OS.
But : If you have another 'ns' executable in your PATH, you can rename
the new "ns" in ns-allinone-2.29/ns-2.29/ to 'ns-nist-pmipv6',
and copy the file to /usr/local/bin/ . Then you can do :
$ ns-nist-pmipv6 pmip.tcl
-
|
|
1 members found this post helpful.
|
06-10-2013, 03:09 PM
|
#27
|
LQ Newbie
Registered: Mar 2013
Location: Indonesia
Posts: 26
Rep:
|
okay thank you...
it already works now..
|
|
|
11-05-2013, 02:06 AM
|
#28
|
LQ Newbie
Registered: Nov 2013
Posts: 2
Rep:
|
hi.. I installed MIH NIST module as mention in steps before "ns2.29 in Ubunto 10.4"
and it works and there are some output file ..
the problem with nam when i try to open files in hstng /802.11/
most of them don't work with NAM
NAM windows close from itself and "cannot connect to existing nam instance. starting a new one... segmentation fault"
appears in terminal . how i can fix that problem ?
anyone can help?
|
|
|
11-05-2013, 04:44 AM
|
#29
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
Post #28, @AMA21 : Welcome to LQ.
Quote:
I installed MIH NIST module as mention in steps .. "ns2.29 in Ubunto 10.4"
and it works and there are some output file ..
the problem with nam when i try to open files in hstng /802.11/
|
I guess you mean ns-2.29-nist-mob-022707.tgz, Ubuntu 10.04 ?
"hsntg/802_21/" : Contains c++ code only.
No "simulation files.tcl" . What do you mean ?
-
|
|
|
11-05-2013, 03:28 PM
|
#30
|
LQ Newbie
Registered: Nov 2013
Posts: 2
Rep:
|
knudfl thank you for replay ..
i try to execute .tcl files in ns2-2.29/tcl/hstng /802.11/
there are many files such as scenario1_802.11.tcl ,scenario1_802.16.tcl ,Simple_802_21_WIMAX-WiFi_1BS-2AP_v2.tcl
when i run them in terminal i have two output files one out.res , and the other out .nam .
they have a lot of lines and values it seems work correct but
the problem with NAM animator when execute .tcl file or nam out.nam it closes from it self
sometimes show result in NAM and type "cannot connect to existing nam instance. starting a new one... " i want to see handover in NAM to understand and also to sure the code was executed correctly
also , when i try to run node802.11.tcl have this:
node 3 is not defined... node 4 is not defined... node 4 is not defined... node 5 is not defined... Warning: Tracefile events are not sorted by time.
+ -t 4.54499999999996 -s 0 -d 1 -p cbr -e 1000 -c 0 -i 20287 -a 0 -x {0.0.0.5 1.0.4.1 2530 ------- null}
The above event should occur at or after -t 4.545000.
node 5 is not defined... node 2 is not defined... node 3 is not defined... node 4 is not defined... node 5 is not defined... node 2 is not defined... node 3 is not defined... node 4 is not defined... node 2 is not defined... node 2 is not defined... node 3 is not defined... Warning: Tracefile events are not sorted by time.
+ -t 4.54599999999996 -s 0 -d 1 -p cbr -e 1000 -c 0 -i 20291 -a 0 -x {0.0.0.1 1.0.2.1 2543 ------- null}
The above event should occur at or after -t 4.546000.
node 3 is not defined... node 4 is not defined... node 4 is not defined... node 5 is not defined... Warning: Tracefile events are not sorted by time.
+ -t 4.54599999999996 -s 0 -d 1 -p cbr -e 1000 -c 0 -i 20295 -a 0 -x {0.0.0.5 1.0.4.1 2531 ------- null}
The above event should occur at or after -t 4.546000.
node 5 is not defined... node 2 is not defined... node 3 is not defined... node 4 is not defined... node 5 is not defined...
Last edited by AMA21; 11-06-2013 at 12:12 AM.
|
|
|
All times are GMT -5. The time now is 07:37 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|