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! :) |
Welcome to LQ. .. :) ..
Quote:
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/ . |
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.
|
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! |
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/ . |
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. |
No luck, still I cannot create a bootable USB for the CentOS 6.2
Any ideas? Thank you in advance! |
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/ |
Or you just burn the DVDs and use them to install CentOS.
|
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! |
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 |
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 . |
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 |
1 Attachment(s)
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 . |
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, |
All times are GMT -5. The time now is 03:45 AM. |