Installation problem in installing UCBT bluetooth extension in ns-2.29

159 views
Skip to first unread message

Praveen Kumar

unread,
May 26, 2015, 5:53:17 AM5/26/15
to ns-u...@googlegroups.com
Hi all,

I am receiving the following problem in installing the UCBT bluetooth extension for NS2 (screenshot has been attached). I was following this link
http://www.cs.uc.edu/~cdmc/ucbt/
I searched on internet too but didn't find anything useful. Any sort of help will be appreciated.

Thanks
Screenshot from 2015-05-26 17:33:36.png

knudfl

unread,
May 27, 2015, 11:57:48 AM5/27/15
to ns-u...@googlegroups.com
Hi .

Ref. http://www.cs.uc.edu/~cdmc/ucbt/
? May be ``ucbt-0.9.9.2a.tgz´´ is buggy ?  Or some extra preparations are required ?
...  Anyway it isn't working OK.  The "ucbt-0.9.8.2a" will do the job :

tar xvf ns-allinone-2.29.3.tar.gz
cd ns
-allinone-2.29/
tar xvf ns
-2.29-nist-mob-022707.tgz
http
://hcl.korea.ac.kr/%7Eneongas/pub/ns-2.29-nist-mob-022707.tgz
export CC=gcc34 CXX=g++34
./install
cd ns
-2.29/
cp ns ns
-nist
sudo cp ns
-nist /usr/local/bin/

Simulation :  cd ucbt-0.9.8.2a/test/ && ns-nist 1f.tcl
... etc. etc. bluetooth examples

Important :  Please tell which OS you are using, like Ubuntu 14.04 - 32bits ,
... then I can supply links to the right  { gcc34, g++34 } compilers.

-

Praveen Kumar

unread,
May 27, 2015, 10:04:51 PM5/27/15
to ns-u...@googlegroups.com
Hi knudfl,

Thanks a lot for replying. I was really in need of some help. My OS is ubuntu-14.04-64 bits and gcc version 4.8.2. Also i had a doubt about the steps that you provided. What is the difference between ns-allinone-2.29.3.tar.gz and ns-2.29-nist-mob-022707.tgz? . Do we need to follow the first two steps if we are unzipping second version. Also wont we require setting any path.

In anticipation of a reply sooner.

Thanks

--
You received this message because you are subscribed to a topic in the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-users/j0P4m9ZQ3OY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-users+u...@googlegroups.com.
To post to this group, send email to ns-u...@googlegroups.com.
Visit this group at http://groups.google.com/group/ns-users.
For more options, visit https://groups.google.com/d/optout.



--
Praveen Kumar
Fourth year undergraduate student
Department of Electrical Engineering
IIT Kharagpur-721302
West Bengal, India
Phone no- +91 7407654496

Praveen Kumar

unread,
May 27, 2015, 10:35:44 PM5/27/15
to ns-u...@googlegroups.com
Hi Knudfl,

After following the above-said steps, i received the following error.

Build XGraph-12.1
============================================================
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking if malloc debugging is wanted... no
checking for gcc... gcc34
checking whether the C compiler (gcc34  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
make: *** No targets specified and no makefile found.  Stop.
Can not create xgraph; But xgraph is an optional package, continuing...


I think gcc 34 is not there. Also i have gcc-4.8.2 in my system and currently running NS3 on my system. I had to install NS2 too with UCBT. SO , what should i do now?

Thanks

knudfl

unread,
May 28, 2015, 4:09:14 AM5/28/15
to ns-u...@googlegroups.com
Repeat :     ..... tell which OS you are using, like Ubuntu 14.04 - 32bits ,

... then I can supply links to the right  { gcc34, g++34 } compilers.
**   I.e.  you are supposed to wait until you know which gcc34 to use.
**   Should be obvious : You cannot use a tool that's not installed on your OS ! !

Compilers :  You can have as many as you want, installed at the same time.
The default extra´s for Ubuntu 14.04 are g++-4.4 , g++-4.6 .

``ns2´´ is for a 32bits OS. However, most protocols will also work with a 64bits OS.
( A 64bits OS will always show an inferior validate ('make test') result.)

About setting a *PATH :
The executable 'ns' or 'ns-<any-name>' is hard coded to know the location of it´s libraries→
→  ns-allinone-2.xx/{ bin/tcsh8*, lib/** }.
The old year ~1999 text »» Please put .... ,,   IMPORTANT NOTICES: You MUST put .. ««
... was meant only for a "University Computer" : You had no write permissions to /usr/.
I.e. the default 'make install' in e.g. ns-2.29/ will copy 'ns' to /usr/local/bin/.

ns-allinone-2.29.3.tar.gz http://sourceforge.net/projects/nsnam/files/allinone/ns-allinone-2.29/ns-allinone-2.29.3.tar.gz/download
.... versus ns-2.29-nist-mob-022707.tgz :  I guess you can unpack both to know what you get.
ns-allinone-2.29.3.tar.gz : Is the stock allinone 2.29 package for gcc versions 3.4.6 .. 4.1.2 .
ns-2.29-nist-mob : Is a "multi-criteria" addition : Bluetooth, UMTS, etc.

* When you have a usable 32bits OS, e.g. Ubuntu 14.04 - i686, you can use the 32bits gcc34/g++34:
compat-gcc34  https://drive.google.com/file/d/0B7S255p3kFXNTzNKRHBEMHFwNTg/view?usp=sharing
compat-g++34  https://drive.google.com/file/d/0B7S255p3kFXNT0JTTVNDSHpNVGM/view?usp=sharing
....  Download the two packages.  Then "click" the packages, and they will be installed.

-

knudfl

unread,
May 28, 2015, 6:37:44 AM5/28/15
to ns-u...@googlegroups.com
:) Good news. 
Seems the Bluetooth part of `ns-2.29-nist-mob´ works OK with the 64bits Ubuntu 14.04 .

Compilers for 64bits :
compat-gcc34  https://drive.google.com/file/d/0B7S255p3kFXNRTkzQnRSNXZ6UVU/view?usp=sharing
→  compat-gcc34-3.4.6-ubuntu1204-1_amd64.deb
compat-gcc-34-c++  https://drive.google.com/file/d/0B7S255p3kFXNV3J3bnVoWGNWdG8/view?usp=sharing
→  compat-gcc-34-c++_3.4.6-20_amd64.deb

:)  Good luck !

-

Praveen Kumar

unread,
May 29, 2015, 2:29:24 AM5/29/15
to ns-u...@googlegroups.com
Hi Knudfl,

I can't express how much helpful you have been. Thanks a lot for your responses and help. As You said, i downloaded

( compat-gcc-34-c++  https://drive.google.com/file/d/0B7S255p3kFXNV3J3bnVoWGNWdG8/view?usp=sharing
→  compat-gcc-34-c++_3.4.6-20_amd64.deb )

gcc deb file and installed using ubuntu software centre. After that i followed the exact steps of 


tar xvf ns-allinone-2.29.3.tar.gz
cd ns
-allinone-2.29/

wget http
://hcl.korea.ac.kr/%7Eneongas/pub/ns-2.29-nist-mob-022707.tgz
tar xvf ns-2.29-nist-mob-022707.tgz
export CC=gcc34 CXX=g++34
./install


But i am again receiving the same problem and it gets exited. The output error has been attached with this. 

Please help. Also i wanted to ask if there is any bluetooth extension developed for ns-3.

Thanks again.
Screenshot from 2015-05-29 14:27:49.png

knudfl

unread,
May 29, 2015, 6:56:46 AM5/29/15
to ns-u...@googlegroups.com
Hi.

Please read my above posts :  »»"click" the (two) packages, and they will be installed.««.
....  Which means :
1)  "click"  compat-gcc34-3.4.6-ubuntu1204-1_amd64.deb :  And you have /usr/bin/gcc34 .
2)  "click"  compat-gcc-34-c++_3.4.6-20_amd64.deb :   /usr/bin/g++34 .

-

knudfl

unread,
May 29, 2015, 7:04:40 AM5/29/15
to ns-u...@googlegroups.com
ns3 :   A google search will probably tell you that there's no bluetooth for ns3.
I did a new search a couple of days ago, and found only the old information.

ns3 :  Please ask your bluetooth question (and other ns3) in the  ``ns3  Forum´´ :
https://groups.google.com/forum/?fromgroups=#!forum/ns-3-users


-
Reply all
Reply to author
Forward
0 new messages