# 15.
It's either : patch -p0 < ns-2.26-gcc410.patch Or : patch -p0 < ns-2.26-gcc410.patch.txt The patch must be present in the directory where you extract ns-allinone-2.26.tar.gz . |
My last post is wrong, I wanted to say that.
I typed this in the directory of I have ns-2.26-gcc410.patch logically: patch -p0 < 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 knudfl |
# 17 :
Can mean two things : ( The Spanish text is not quite clear ? But I think that 'orden' means "command". Ref. my old Danish/Spanish dictionary.) 1) The ns-2.26-gcc410.patch is not present in the current directory. 2) The patch command is not installed : sudo apt-get install patch / # yum install patch . |
Yeah, order means command knudfl
I have installed patch yum install patch and all OK! Installed: patch.i686 0:2.6-6.el6 And then, I type patch ns-2.26-gcc410.patch and this command don't return nothing. The program is like working but it don't finish... Next, I type export CC=gcc34 CXX=g++34 and OK! but when I want install with ./install ============================================================ * 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... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... missing checking if malloc debugging is wanted... no checking for gcc... gcc34 checking whether the C compiler (gcc34 ) works... yes checking whether the C compiler (gcc34 ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc34 accepts -g... yes checking how to run the C preprocessor... gcc34 -E checking for X... libraries , headers checking for dnet_ntoa in -ldnet... no checking for dnet_ntoa in -ldnet_stub... no checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes checking for float.h... yes checking for limits.h... yes checking for stdlib.h... yes checking for string.h... yes checking for strings.h... yes checking for unistd.h... yes checking for strcasecmp... yes updating cache ./config.cache creating ./config.status creating Makefile creating autoconf.h ./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 ============================================================ Building static library libz.a version 1.1.4 with gcc34. Checking for unistd.h... Yes. Checking for errno.h... Yes. Checking for mmap support... Yes. ./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... 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)... Linux-2.6.32-220.el6.i686 checking if gcc is being used... yes (gcc -pipe) checking for dlopen in -ldl... yes checking for build with symbols... no checking for sys/ioctl.h... yes checking for sys/filio.h... no checking FIONBIO vs. O_NONBLOCK for nonblocking I/O... O_NONBLOCK checking how to build libraries... static updating cache ./config.cache creating ./config.status creating Makefile creating tclConfig.sh ./install: línea 298: make: no se encontró la orden tcl8.3.2 make failed! Exiting ... For problems with Tcl/Tk see http://www.scriptics.com I hope that you can help me again, Thank you very much, Vicente, |
#19.
Quote:
Quote:
Please do : # yum install make . |
The patch is Ok but when I want install with ./install,the error is this
queue/red.cc: In member function ‘virtual void REDQueue::trace(TracedVar*)’: queue/red.cc:807: error: conversión inválida de ‘const char*’ a ‘char*’ queue/red.cc:808: error: conversión inválida de ‘const char*’ a ‘char*’ queue/red.cc:809: error: conversión inválida de ‘const char*’ a ‘char*’ queue/red.cc:810: error: conversión inválida de ‘const char*’ a ‘char*’ make: *** [queue/red.o] Error 1 Ns make failed! See http://www.isi.edu/nsnam/ns/ns-problems.html for problems What happen now? Sorry but I am a beginner in CentOS. Thanks again knudfl |
# 21
Every time you start an "./install" you will have to type : export CC=gcc34 CXX=g++34 <Enter> ... before you use the './install' command. Be aware that the export command is temporary : Will reset to gcc / g++ version 4.4.4 (CentOS6) when you exit the terminal window. . |
Hi again,
I type export CC=gcc34 CXX=g++34 and this command doesn't return nothing. After in the same terminal, I type: ./install and the error is the same: queue/red.cc: In member function ‘virtual void REDQueue::trace(TracedVar*)’: queue/red.cc:807: error: conversión inválida de ‘const char*’ a ‘char*’ queue/red.cc:808: error: conversión inválida de ‘const char*’ a ‘char*’ queue/red.cc:809: error: conversión inválida de ‘const char*’ a ‘char*’ queue/red.cc:810: error: conversión inválida de ‘const char*’ a ‘char*’ make: *** [queue/red.o] Error 1 Ns make failed! See http://www.isi.edu/nsnam/ns/ns-problems.html for problems It is strange but I hope that you can help me! Thanks in advance knudfl, |
#23
If you by accident used the wrong gcc / g++, I guess you will have to start from scrath with a new unpacked ns-allinone-2.26.tar.gz. Unless you do a 'make clean' in all the concerned applications / libraries: tcl8.3.2/unix/, tk8.3.2/unix/, otcl-1.0a8/, tclcl-1.0b13/, ns-2.26/. And also delete the Makefile, which 'make clean' isn't doing in them all. . |
Thank you very much knudfl
Everything is resolved :) One question, now have I got add some to path?? Now, I'm going to install ZMAC and DRAND. Have you used this protocols? Regards, |
# 25
Quote:
su make install ( 'make install' will copy the binary 'ns' to a system PATH : /usr/local/bin/ ). And 2) Make a backup copy of 'ns' : You will need it for default files. An ns that has new protocols added, will most often not work with default tcl files. Quote:
if you want some advice. And no. I don't know the protocols. But installing a patch etc. is usually rather easy. . |
Quote:
/usr/bin/install -c -m 555 -o bin -g bin ns /usr/local/bin /usr/bin/install -c -m 444 -o bin -g bin ns.1 /usr/local/man/man1 /usr/bin/install: no se puede crear el fichero regular «/usr/local/man/man1»: No existe el fichero o el directorio make: *** [install-man] Error 1 What is it happening? Quote:
http://www4.ncsu.edu/~rhee/export/zm...rand/drand.htm Thanks again ;) |
Quote:
And if you want to install the man page : 1) su 2) mkdir -p /usr/local/man/man1 ... Then the 'make install' can copy ns.1 to /usr/local/man/man1 |
2 Attachment(s)
#25, #27.
http://www4.ncsu.edu/~rhee/export/zm.../zmac/zmac.htm : >>> Before using Z-MAC, some setup is required. For a given topology, Z-MAC requires each node to know its TDMA slot. This is achieved using DRAND. Looks like it could be an advantage to have two (more?) installs of ns-2.26. ( Make a backup of the binary 'ns' as 'ns-orig', if you are going to reuse the ns-2.26.) NS-2.26 is first used with DRAND. If you then afterwords patch the same install with ZMAC, you will not be able to go back and do more DRAND work. A) The DRAND ns-2.26. http://www4.ncsu.edu/~rhee/export/zm...rand/drand.htm tar xvf ns-allinone-2.26.tar.gz && patch -p0 < ns-2.26-gcc410.patch cd ns-allinone-2.26/ns-2.26/ && tar xvf drandNS2.tar.gz Then copy the new files ns-packet.tcl packet.h mac-802_11.cc cmu-trace.cc to their destinations. And the new Makefile.in : cp -a drand-Makefile.in.txt Makefile.in cd ../ && export CC=gcc34 CXX=g++34 && ./install And the "DRAND ns" binary is created. Suggest : Make a backup : cd ns-2.26/ && cp ns ns-drand B) The ZMAC ns-2.26 http://www4.ncsu.edu/~rhee/export/zm.../zmac/zmac.htm tar xvf ns-allinone-2.26.tar.gz && patch -p0 < ns-2.26-gcc410.patch cd ns-allinone-2.26/ns-2.26/ && tar xvf zmac.tar.gz cp zmac/* mac/ http://www4.ncsu.edu/~rhee/export/zm...mobilenode.tcl >>> cp -a ns-mobilenode.tcl tcl/lib/ And the new Makefile.in : cp -a zmac-Makefile.in.txt Makefile.in Delete the Makefile, and run 'make clean', if this is an ns-2.26 reuse. cd ../ && export CC=gcc34 CXX=g++34 && ./install Result : The "ZMAC ns" binary. A backup : cd ns-2.26/ && cp ns ns-zmac ... |
Hello again,
I have followed your instructions and I have DRAND installed succesfully. The problem is ZMAC when I type ./install the error is the next: creating tcl/lib/ns-autoconf.tcl creating indep-utils/webtrace-conv/ucb/Makefile creating indep-utils/webtrace-conv/dec/Makefile creating indep-utils/webtrace-conv/nlanr/Makefile creating indep-utils/webtrace-conv/epa/Makefile creating indep-utils/cmu-scen-gen/setdest/Makefile creating autoconf.h autoconf.h is unchanged make: *** No hay ninguna regla para construir el objetivo `pushback/logging-data-stcp', necesario para `ns'. Alto. Ns make failed! See http://www.isi.edu/nsnam/ns/ns-problems.html for problems Do you know solve this problem? Thank you very much. You are helping me too much. Vicente, |
All times are GMT -5. The time now is 10:42 PM. |