LinuxQuestions.org
Help answer threads with 0 replies.
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 03-16-2012, 02:42 AM   #1
ulyssues.fam
LQ Newbie
 
Registered: Mar 2012
Posts: 8

Rep: Reputation: Disabled
NS2 v2.26 installation on Ubuntu 11.10


Hello all,

I'm not quite sure if I should post here but from what I've seen most the people have posted about this issue in this part of the forum.

I've been trying to install NS2 v2.26 on my Ubuntu 11.10 for the past two weeks asI am trying to implement the Z-MAC protocol I have found from http://www4.ncsu.edu/~rhee/export/zm.../zmac/zmac.htm and the DRAND from http://www4.ncsu.edu/~rhee/export/zm...rand/drand.htm which is needed in order for the Z-MAC implementation to work.

It is been two hectic weeks where I have not managed yet to make it work. I've only managed to install NS2 v.2.35 which works flawlessly. I;ve checked all the possible sites and threads for the subject but cannot work it out! I always get the following error:

* Build tcl8.3.2
============================================================
loading cache ./config.cache
checking for ranlib... ranlib
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for unistd.h... yes
checking for limits.h... yes
checking for building with threads... no (default)
checking if the compiler understands -pipe... yes
checking for getcwd... yes
checking for opendir... yes
checking for strstr... yes
checking for strtol... yes
checking for tmpnam... yes
checking for waitpid... yes
checking for strerror... yes
checking for getwd... yes
checking for wait3... yes
checking for uname... yes
checking for realpath... yes
checking dirent.h... yes
checking for errno.h... yes
checking for float.h... yes
checking for values.h... yes
checking for limits.h... (cached) yes
checking for stdlib.h... yes
checking for string.h... yes
checking for sys/wait.h... yes
checking for dlfcn.h... yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking termios vs. termio vs. sgtty... termios
checking fd_set and sys/select... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for sys/time.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for tm_zone in struct tm... yes
checking tm_tzadj in struct tm... no
checking tm_gmtoff in struct tm... yes
checking long timezone variable... yes
checking for st_blksize in struct stat... yes
checking for fstatfs... yes
checking for 8-bit clean memcmp... yes
checking for memmove... yes
checking proper strstr implementation... yes
checking for strtoul... yes
checking for strtod... yes
checking for strtod... (cached) yes
checking for Solaris2.4/Tru64 strtod bugs... ok
checking for ANSI C header files... yes
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for opendir... (cached) yes
checking union wait... yes
checking matherr support... yes
checking for strncasecmp... yes
checking for BSDgettimeofday... no
checking for gettimeofday... yes
checking for gettimeofday declaration... present
checking whether char is unsigned... no
checking signed char declarations... yes
checking for sin... no
checking for main in -lieee... yes
checking for main in -linet... no
checking for net/errno.h... no
checking for connect... yes
checking for gethostbyname... yes
checking if 64bit support is requested... no
checking if 64bit Sparc VIS support is requested... no
checking system version (for dynamic loading)... ./configure: 1: Syntax error: Unterminated quoted string
tcl8.3.2 configuration failed! Exiting ...


In my attempts to find a solution I have tried to install NS2 v2.27 based on the following thread:
http://www.linuxquestions.org/questi...9-10-a-782356/

but when it asks to apply the patch from this thread:
http://www.linuxquestions.org/questi...12-a-797763/#7

I get the following errors:

******@***:~/NS2/ns-allinone-2.27/tk8.4.18$ patch -p0 < tk-8.4-lastevent.patch
patching file generic/tk.h
Hunk #1 FAILED at 635.
1 out of 1 hunk FAILED -- saving rejects to file generic/tk.h.rej


My basic objectives are the following:
1)If there is ANY way that I can install NS2 2.26 on my Ubuntu 11.10
or
2)If there is a way to fix the patching process for v2.27, maybe it will work with the Z-MAC I am trying to work with.


Any ideas?

Thank you all for your precious time!

Last edited by colucix; 03-16-2012 at 03:09 AM. Reason: Removed (useless) part of error message with commercial link
 
Old 03-16-2012, 04:56 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ. .. ..

Quote:
If there is ANY way that I can install NS2 2.26 on my Ubuntu 11.10
No. Definitely not. Out of the box ns-2.35 only. And a fixed ns-2.34 :
http://erl1.wordpress.com/2011/10/14...neiric-ocelot/

All ns- 2.27 ... 2.33 : Ubuntu 10.04 will do.
2.27 http://www.linuxquestions.org/questi...10-a-782356/#3

NS-allinone-2.26 will compile with g++/gcc version 3.3.3,
not available for any contemporary Ubuntu. And Ubuntu : No go with tcl8.3.2.
There may be a patch that makes it possible on Ubuntu 10.04 with g++-4.1 :
( Or g++-3.4 = version 3.4.6 )
#15 http://www.linuxquestions.org/questi...2-a-797763/#15
The ns-2.26-gcc410.patch will also fix tcl / tk 8.3.2 configuring.

But : All the builds, I have seen, or answered to, (and tested)
were done on a default ns2 OS = Fedora or CentOS.

'gcc33-c++-3.3.3', for Fedora, CentOS (and Suse)
http://download.opensuse.org/reposit...E-10_SDK/i586/

.

Last edited by knudfl; 03-16-2012 at 05:15 AM.
 
Old 03-16-2012, 05:05 AM   #3
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
You'll keep on getting errors in ubuntu. Ubuntu is not the right OS to install and use ns. Use CentOS or OpenSuse for ns and use ns-allinone.
 
Old 03-16-2012, 06:09 AM   #4
ulyssues.fam
LQ Newbie
 
Registered: Mar 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
Ok guys, I will follow your advice!

Which version of Fedora should I use? I've found version 8 but I believe that is obselete and maybe I won't be able to download any packets that I may need.

Any ideas?

Thanks!
 
Old 03-16-2012, 06:42 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The "Long Term Supported" version is CentOS 6, based on Fedora 12.
( Identical to RHEL 6 and Scientific Linux SL6.)
Works perfect with ns-2.26.

CentOS 6.2 http://www.centos.org/ > http://centos.arcticnetwork.ca/6.2/isos/i386/


.

Last edited by knudfl; 03-16-2012 at 06:44 AM.
 
Old 03-16-2012, 10:11 AM   #6
ulyssues.fam
LQ Newbie
 
Registered: Mar 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
I've went into http://centos.arcticnetwork.ca/6.2/isos/i386/ and downloaded the CentOS-6.2-i386-LiveDVD but when I try to make a bootable USB through the Startup Disk Creator of my Ubuntu, it does not recognize the iso. the same with Windows when I try to create a Bootable Usb through the USB Installer (www.pendrivelinux.com).

Maybe I'm not doing something right? I've started downloading CentOS-6.2-i386-bin-DVD1to2, I hope that will work.
 
Old 03-17-2012, 11:15 AM   #7
ulyssues.fam
LQ Newbie
 
Registered: Mar 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
No luck, still I cannot create a bootable USB for the CentOS 6.2

Any ideas?

Thank you in advance!
 
Old 03-18-2012, 01:48 AM   #8
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Checkout these two links for creating bootable USB:
http://blog.chenhow.net/2010/07/23/l...nstallation-2/
http://www.cyberciti.biz/faq/linux-c...table-usb-pen/
 
Old 03-18-2012, 01:51 AM   #9
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Or you just burn the DVDs and use them to install CentOS.
 
Old 03-18-2012, 02:46 PM   #10
ulyssues.fam
LQ Newbie
 
Registered: Mar 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
Done good up to now! Thank you for your help!

After managing to install CentOS 6.2, I am faced with one problem. Everytime I plug in my USB, I cannot enter my ext3 partition as it says: "THe folder contents could not be displayed. You do not have the permissions necessary to view the contents of ...."

It has to do with the privilages of my account. I have found something about visudo but I think that only works for the termina or something..

I logged in as root and I can see my USB and open it and also other applications. But I do not wan to use the root account to work on NS. I just want to work through my account.
I've tried opening KUser for the root account and edited my account and added it into the root group but nothing works.


What can I do in order for my account to have the same funcionality as root?
Any ideas?

Thank you in advance!
 
Old 03-19-2012, 11:58 AM   #11
ulyssues.fam
LQ Newbie
 
Registered: Mar 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hey guys one more question:

After succesfully installing NS2 2.26 on my CentOS 6.2, i run ./validate

UNfortunately after a few tests I get the following error:

Running test pi1:
../../ns test-suite-pi.tcl pi1 QUIET
*** glibc detected *** ../../ns: malloc(): memory corruption (fast): 0x08c799f0 ***


ANy ideas?

THank you
 
Old 03-20-2012, 06:58 PM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Two ns-2.26 test builds on the 32bits Scientific Linux SL6.2
( Identical to CentOS 6.2 ) :
The builds were made in different locations ( /home/<?>/8tmp/ ,
/home/<?>/0tmp/ ), to have 2 different ns-2.26 to test.

1) With the "gcc410 patch" :
tar xvf ns-allinone-2.26.tar.gz && patch -p0 < ns-2.26-gcc410.patch
&& cd ns-allinone-2.26/ && export CC=gcc34 CXX=g++34 && ./install
&& cd ns-2.26/ && ./validate : After "500 tests" this appears ..
Running test pi1:
../../ns test-suite-pi.tcl pi1 QUIET
*** glibc detected *** ../../ns: malloc():
memory corruption (fast): 0x094ef840 ***

Never seen that error before. But then again :
There are other errors in the ns-2.26 test suite.
The file "validate.out", line 3378 ( the last line ) :
""validate overall report: all tests passed""
.... So actually the test continues to the end,
but no result is shown in the terminal.
( The test that causes errors : "./test-all-pi" : validate.out, line 2283.)


2) No patches.
# rpm -Uvh cpp33-3.3.3-51.1.i586.rpm
# rpm -Uvh --nodeps gcc33-3.3.3-51.1.i586.rpm
# rpm -Uvh libstdc++33-3.3.3-51.1.i586.rpm
# rpm -Uvh libstdc++33-devel-3.3.3-51.1.i586.rpm
# rpm -Uvh gcc33-c++-3.3.3-51.1.i586.rpm

cd ns-allinone-2.26/ && export CC=gcc-3.3 CXX=g++-3.3 && ./install
&& cd ns-2.26/ && ./validate : The same "memory corruption" error.

And again : "validate.out", line 3378 :
validate overall report: all tests passed
.

Last edited by knudfl; 03-20-2012 at 07:21 PM.
 
Old 05-03-2012, 03:28 AM   #13
visego
LQ Newbie
 
Registered: May 2012
Posts: 13

Rep: Reputation: Disabled
Hello all,

I am in the same situation of ulyssues.fam. I want work with Z-MAC and DRAND for my project.

I have followed the steps and now, I am running CentOS 6.2 and I have downloaded ns2.26 but when I type ./install for install ns2.26 happen this:

============================================================
* Testing for Cygwin environment
============================================================
Cygwin not detected, proceeding with regular install.
============================================================
* 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}... no
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking if malloc debugging is wanted... no
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
./install: línea 163: make: no se encontró la orden
Can not create xgraph; But xgraph is an optional package, continuing...
============================================================
* Build CWeb
============================================================
Making cweb
./install: línea 186: make: no se encontró la orden
cweb failed to make, but it's optional
chmod: no se puede acceder a «cweave»: No existe el fichero o el directorio
chmod: no se puede acceder a «ctangle»: No existe el fichero o el directorio
============================================================
* Build Stanford GraphBase
============================================================
Making sgb
./install: línea 215: make: no se encontró la orden
Unable to create sgb library, but it's optional, so continuing...
============================================================
* Build GT-ITM
============================================================
./install: línea 246: make: no se encontró la orden
./install: línea 252: make: no se encontró la orden
============================================================
* Build zlib
============================================================
Checking for gcc...
Building static library libz.a version 1.1.4 with cc.
Checking for unistd.h... No.
Checking for errno.h... No.
Checking for mmap support... No.
./install: línea 272: make: no se encontró la orden
Zlib make failed, but it's optional Continue ...
============================================================
* Build tcl8.3.2
============================================================
loading cache ./config.cache
checking for ranlib... ranlib
checking for gcc... gcc
checking whether the C compiler (gcc ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
tcl8.3.2 configuration failed! Exiting ...
Tcl is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.
[visego@localhost ns-allinone-2.26]$ ^C
[visego@localhost ns-allinone-2.26]$ dpkg --get-selections | grep -i build
bash: dpkg: no se encontró la orden
[visego@localhost ns-allinone-2.26]$ ./install
============================================================
* Testing for Cygwin environment
============================================================
Cygwin not detected, proceeding with regular install.
============================================================
* Build XGraph-12.1
============================================================
loading 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}... no
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking if malloc debugging is wanted... no
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
./install: línea 163: make: no se encontró la orden
Can not create xgraph; But xgraph is an optional package, continuing...
============================================================
* Build CWeb
============================================================
Making cweb
./install: línea 186: make: no se encontró la orden
cweb failed to make, but it's optional
chmod: no se puede acceder a «cweave»: No existe el fichero o el directorio
chmod: no se puede acceder a «ctangle»: No existe el fichero o el directorio
ln: creating symbolic link «cweave»: El fichero ya existe
ln: creating symbolic link «ctangle»: El fichero ya existe
============================================================
* Build Stanford GraphBase
============================================================
Making sgb
./install: línea 215: make: no se encontró la orden
Unable to create sgb library, but it's optional, so continuing...
============================================================
* Build GT-ITM
============================================================
./install: línea 246: make: no se encontró la orden
./install: línea 252: make: no se encontró la orden
============================================================
* Build zlib
============================================================
Checking for gcc...
Building static library libz.a version 1.1.4 with cc.
Checking for unistd.h... No.
Checking for errno.h... No.
Checking for mmap support... No.
./install: línea 272: make: no se encontró la orden
Zlib make failed, but it's optional Continue ...
============================================================
* Build tcl8.3.2
============================================================
loading cache ./config.cache
checking for ranlib... ranlib
checking for gcc... gcc
checking whether the C compiler (gcc ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
tcl8.3.2 configuration failed! Exiting ...
Tcl is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.
[visego@localhost ns-allinone-2.26]$ yum -y install gcc
Loaded plugins: fastestmirror, refresh-packagekit, security
You need to be root to perform this command.

Do somebody know how solutionate this?

Sorry for my English,

Thanks in advance,

Vicente
 
Old 05-03-2012, 06:23 AM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post # 13, @visego.

CentOS, Fedora. The ns2 prerequisites : 1) su <password>
2) yum install \
gcc-c++ compat-gcc-34-c++ automake autoconf libtool libX11-devel \
libXext-devel libXau-devel libXmu-devel xorg-x11-proto-devel

And : The install commands are like "1)" in the above post #12 :
tar xvf ns-allinone-2.26.tar.gz && patch -p0 < ns-2.26-gcc410.patch
&& cd ns-allinone-2.26/ && export CC=gcc34 CXX=g++34 && ./install
.
Attached Files
File Type: txt ns-2.26-gcc410.patch.txt (25.8 KB, 105 views)
 
Old 05-03-2012, 10:22 AM   #15
visego
LQ Newbie
 
Registered: May 2012
Posts: 13

Rep: Reputation: Disabled
Thank you very much knudfl but still I haven't installed ns2.26 because show this error:

When I type
ns-2.26-gcc410.patch

bash: patch: no se encontró la orden (In English is "it didn't find the order)

Do you know that it happen?

Thanks again in advance

Vicente,
 
  


Reply

Tags
ns-2.26, ns2, ns226, zmac


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
ns2.34 installation help in Ubuntu 10.10 xptional Ubuntu 46 04-02-2018 01:42 PM
Problems in Installation of NS2.27 on Ubuntu 9.10 Scofield Linux - General 7 03-15-2013 03:47 AM
installation of ns2.1b5 on ubuntu? shanky Linux - Software 3 03-12-2012 11:46 PM
ns2.29 installation in ubuntu bolmeteus Ubuntu 4 02-08-2011 01:46 PM

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

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