You can try to say --with_tcl=xxx and provide the path or --prefix=xxxx if you are installing to a directory of your choice etc. Look into all the flags and check if the makefile.in is present in the directory quoted. I did a build on a 64-bit machine and the major change required was to point to lib64 directory correctly. Regards, Sita
> > Hi everyone...I'm having a problem...When I try to install NS2.31 on s > friend's machine, I get this error message > > Victor:/home/mavor/Network Simulator/ns-allinone-2.31 # ls > cweb INSTALL.WIN32 otcl-1.13 sgb tclcl-1.19 zlib-1.2.3 > gt-itm nam-1.13 perl-5.8.8 stable.tar tk8.4.14 > install ns-2.31 README tcl8.4.14 xgraph-12.1 > Victor:/home/mavor/Network Simulator/ns-allinone-2.31 # ./install > ============================================================ > * Testing for Darwin (OS X) environment > ============================================================ > ============================================================ > * 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}... 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... 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 X... libraries /usr/lib64, 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 > gcc -DHAVE_CONFIG_H -I. -I. -I. -g -c xgraph.c > gcc -DHAVE_CONFIG_H -I. -I. -I. -g -c xgX.c > gcc -DHAVE_CONFIG_H -I. -I. -I. -g -c hard_devices.c > gcc -DHAVE_CONFIG_H -I. -I. -I. -g -c dialog.c > gcc -DHAVE_CONFIG_H -I. -I. -I. -g -c hpgl.c > gcc -DHAVE_CONFIG_H -I. -I. -I. -g -c ps.c > gcc -DHAVE_CONFIG_H -I. -I. -I. -g -c idraw.c > idraw.c: In function 'idrawInit': > idraw.c:155: warning: cast to pointer from integer of different size > idraw.c: In function 'idrawText': > idraw.c:303: warning: incompatible implicit declaration of built-in > function > 'strlen' > gcc -DHAVE_CONFIG_H -I. -I. -I. -g -c xtb.c > xtb.c: In function 'focus_evt': > xtb.c:873: warning: incompatible implicit declaration of built-in function > 'printf' > xtb.c:882: warning: incompatible implicit declaration of built-in function > 'printf' > xtb.c: In function 'xtb_hort': > xtb.c:1279: warning: incompatible implicit declaration of built-in > function > 'printf' > xtb.c: In function 'xtb_vert': > xtb.c:1321: warning: incompatible implicit declaration of built-in > function > 'printf' > xtb.c: In function 'xtb_fmt_setpos': > xtb.c:1351: warning: incompatible implicit declaration of built-in > function > 'printf' > xtb.c: In function 'xtb_fmt_addpos': > xtb.c:1379: warning: incompatible implicit declaration of built-in > function > 'printf' > xtb.c: In function 'xtb_fmt_top': > xtb.c:1520: warning: incompatible implicit declaration of built-in > function > 'printf' > xtb.c:1529: warning: incompatible implicit declaration of built-in > function > 'printf' > gcc -DHAVE_CONFIG_H -I. -I. -I. -g -c st.c > st.c: In function 'st_init_table_with_params': > st.c:78: warning: cast to pointer from integer of different size > st.c: In function 'st_lookup': > st.c:151: warning: cast from pointer to integer of different size > st.c:151: warning: cast from pointer to integer of different size > st.c:151: warning: cast from pointer to integer of different size > st.c:151: warning: cast from pointer to integer of different size > st.c:153: warning: cast from pointer to integer of different size > st.c:153: warning: cast from pointer to integer of different size > st.c: In function 'st_insert': > st.c:199: warning: cast from pointer to integer of different size > st.c:199: warning: cast from pointer to integer of different size > st.c:199: warning: cast from pointer to integer of different size > st.c:199: warning: cast from pointer to integer of different size > st.c:201: warning: cast from pointer to integer of different size > st.c:201: warning: cast from pointer to integer of different size > st.c:204: warning: cast from pointer to integer of different size > st.c:204: warning: cast from pointer to integer of different size > st.c:204: warning: cast from pointer to integer of different size > st.c:204: warning: cast from pointer to integer of different size > st.c: In function 'st_add_direct': > st.c:224: warning: cast from pointer to integer of different size > st.c:224: warning: cast from pointer to integer of different size > st.c:224: warning: cast from pointer to integer of different size > st.c:224: warning: cast from pointer to integer of different size > st.c:225: warning: cast from pointer to integer of different size > st.c:225: warning: cast from pointer to integer of different size > st.c:225: warning: cast from pointer to integer of different size > st.c:225: warning: cast from pointer to integer of different size > st.c: In function 'st_find_or_add': > st.c:241: warning: cast from pointer to integer of different size > st.c:241: warning: cast from pointer to integer of different size > st.c:241: warning: cast from pointer to integer of different size > st.c:241: warning: cast from pointer to integer of different size > st.c:243: warning: cast from pointer to integer of different size > st.c:243: warning: cast from pointer to integer of different size > st.c:246: warning: cast from pointer to integer of different size > st.c:246: warning: cast from pointer to integer of different size > st.c:246: warning: cast from pointer to integer of different size > st.c:246: warning: cast from pointer to integer of different size > st.c: In function 'st_find': > st.c:270: warning: cast from pointer to integer of different size > st.c:270: warning: cast from pointer to integer of different size > st.c:270: warning: cast from pointer to integer of different size > st.c:270: warning: cast from pointer to integer of different size > st.c:272: warning: cast from pointer to integer of different size > st.c:272: warning: cast from pointer to integer of different size > st.c: In function 'rehash': > st.c:305: warning: cast to pointer from integer of different size > st.c:320: warning: cast from pointer to integer of different size > st.c:320: warning: cast from pointer to integer of different size > st.c:320: warning: cast from pointer to integer of different size > st.c:320: warning: cast from pointer to integer of different size > st.c: In function 'st_copy': > st.c:348: warning: cast to pointer from integer of different size > st.c: In function 'st_delete': > st.c:387: warning: cast from pointer to integer of different size > st.c:387: warning: cast from pointer to integer of different size > st.c:387: warning: cast from pointer to integer of different size > st.c:387: warning: cast from pointer to integer of different size > st.c:389: warning: cast from pointer to integer of different size > st.c:389: warning: cast from pointer to integer of different size > st.c: In function 'st_numhash': > st.c:461: warning: cast from pointer to integer of different size > st.c:461: warning: cast from pointer to integer of different size > st.c:461: warning: cast from pointer to integer of different size > st.c: In function 'st_ptrhash': > st.c:469: warning: cast from pointer to integer of different size > st.c: In function 'st_numcmp': > st.c:477: warning: cast from pointer to integer of different size > st.c:477: warning: cast from pointer to integer of different size > st.c: In function 'st_ptrcmp': > st.c:485: warning: cast from pointer to integer of different size > st.c:485: warning: cast from pointer to integer of different size > gcc -DHAVE_CONFIG_H -I. -I. -I. -g -c params.c > params.c: In function 'do_font': > params.c:368: warning: cast from pointer to integer of different size > gcc -DHAVE_CONFIG_H -I. -I. -I. -g -c alloc.c > gcc -DHAVE_CONFIG_H -I. -I. -I. -g -c draw.c > gcc -DHAVE_CONFIG_H -I. -I. -I. -g -c init.c > gcc -DHAVE_CONFIG_H -I. -I. -I. -g -c read.c > gcc -DHAVE_CONFIG_H -I. -I. -I. -g -c tgif.c > tgif.c: In function 'tgifInit': > tgif.c:77: warning: cast to pointer from integer of different size > tgif.c: In function 'tgifText': > tgif.c:230: warning: incompatible implicit declaration of built-in > function > 'strlen' > gcc -DHAVE_CONFIG_H -I. -I. -I. -g -c derivative.c > gcc -g -o xgraph xgraph.o xgX.o hard_devices.o dialog.o hpgl.o > ps.o > idraw.o xtb.o st.o params.o alloc.o draw.o init.o read.o tgif.o > derivative.o > -L/usr/lib64 -lSM -lICE -lX11 -lm > xgraph has been installed successfully. > ============================================================ > * Build CWeb > ============================================================ > Making cweb > gcc -g -c -o ctangle.o ctangle.c > ctangle.w:75: warning: conflicting types for built-in function 'strlen' > gcc -g -DCWEBINPUTS=\"/usr/local/lib/cweb\" -c common.c > common.w:1409: warning: conflicting types for built-in function 'strlen' > gcc -g -o ctangle ctangle.o common.o > ./ctangle cweave > This is CTANGLE (Version 3.4) > *1*16*29*37*58*77*88*96*103*173*184*204*224*249 > Writing the output file (cweave.c > ):.....500.....1000.....1500.....2000.....2500.....3000.... > Done. > (No errors were found.) > gcc -g -c -o cweave.o cweave.c > cweave.w:79: warning: conflicting types for built-in function 'strlen' > gcc -g -o cweave cweave.o common.o > ln: target `cweave' is not a directory > ln: target `ctangle' is not a directory > ============================================================ > * Build Stanford GraphBase > ============================================================ > Making sgb > if test -r gb_io.ch; then ctangle gb_io.w gb_io.ch; else ctangle gb_io.w; > fi > /bin/sh: ctangle: command not found > make: *** [gb_io.c] Error 127 > Unable to create sgb library, but it's optional, so continuing... > ============================================================ > * Build GT-ITM > ============================================================ > sgb lib not found. gt-itm & sgb2ns could not be installed. Continuing.. > ============================================================ > * Build zlib > ============================================================ > Checking for gcc... > Building static library libz.a version 1.2.3 with gcc. > Checking for unistd.h... Yes. > Checking whether to use vs[n]printf() or s[n]printf()... using > vs[n]printf() > Checking for vsnprintf() in stdio.h... Yes. > Checking for return value of vsnprintf()... Yes. > Checking for errno.h... Yes. > Checking for mmap support... Yes. > gcc -O3 -DUSE_MMAP -c -o example.o example.c > gcc -O3 -DUSE_MMAP -c -o adler32.o adler32.c > gcc -O3 -DUSE_MMAP -c -o compress.o compress.c > gcc -O3 -DUSE_MMAP -c -o crc32.o crc32.c > gcc -O3 -DUSE_MMAP -c -o gzio.o gzio.c > gcc -O3 -DUSE_MMAP -c -o uncompr.o uncompr.c > gcc -O3 -DUSE_MMAP -c -o deflate.o deflate.c > gcc -O3 -DUSE_MMAP -c -o trees.o trees.c > gcc -O3 -DUSE_MMAP -c -o zutil.o zutil.c > gcc -O3 -DUSE_MMAP -c -o inflate.o inflate.c > gcc -O3 -DUSE_MMAP -c -o infback.o infback.c > gcc -O3 -DUSE_MMAP -c -o inftrees.o inftrees.c > gcc -O3 -DUSE_MMAP -c -o inffast.o inffast.c > ar rc libz.a adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o > trees.o > zutil.o inflate.o infback.o inftrees.o inffast.o > gcc -O3 -DUSE_MMAP -o example example.o -L. libz.a > gcc -O3 -DUSE_MMAP -c -o minigzip.o minigzip.c > gcc -O3 -DUSE_MMAP -o minigzip minigzip.o -L. libz.a > Zlib has been installed successfully. > ============================================================ > * Build tcl8.4.14 > ============================================================ > configure: warning: Simulator/ns-allinone-2.31: invalid host type > creating cache ./config.cache > ./configure: line 572: cd: /home/mavor/Network: No such file or directory > checking whether to use symlinks for manpages... no > checking whether to compress the manpages... no > checking whether to add a package name suffix for the manpages... no > 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 dirent.h... yes > checking for errno.h... yes > checking for float.h... yes > checking for values.h... yes > checking for limits.h... 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... yes > checking for sys/param.h... yes > checking if the compiler understands -pipe... yes > checking for building with threads... no (default) > 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 how to build libraries... static > checking for ranlib... ranlib > checking if 64bit support is requested... no > checking if 64bit Sparc VIS support is requested... no > checking system version... Linux-2.6.18.2-34-default > checking for dlopen in -ldl... yes > checking for ar... ar > checking for build with symbols... no > checking for required early compiler flags... _LARGEFILE64_SOURCE > checking for 64-bit integer type... using long > checking whether byte ordering is bigendian... no > checking for getcwd... yes > checking for opendir... yes > checking for strstr... yes > checking for strtol... yes > checking for strtoll... yes > checking for strtoull... 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 for sys/modem.h... no > checking termios vs. termio vs. sgtty... termios > checking for fd_set in sys/types... 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 for gmtime_r... yes > checking for localtime_r... 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... ok > checking for strtoul... yes > checking proper strtoul implementation... ok > checking for strtod... yes > checking proper strtod implementation... ok > 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 socklen_t... yes > checking for opendir... (cached) yes > checking union wait... 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 a putenv() that copies the buffer... no > checking for langinfo.h... yes > checking whether to use nl_langinfo... yes > checking for fts... no > checking for sys/ioctl.h... yes > checking for sys/filio.h... no > checking system version... (cached) Linux-2.6.18.2-34-default > checking FIONBIO vs. O_NONBLOCK for nonblocking I/O... O_NONBLOCK > updating cache ./config.cache > creating ./config.status > ./config.status: line 28: Simulator/ns-allinone-2.31/tcl8.4.14/unix: No > such > file or directory > creating Makefile > sed: can't read /Makefile.in: No such file or directory > creating dltest/Makefile > sed: can't read /dltest/Makefile.in: No such file or directory > creating tclConfig.sh > sed: can't read /tclConfig.sh.in: No such file or directory > make: *** No targets. Stop. > tcl8.4.14 make failed! Exiting ... > For problems with Tcl/Tk see http://www.scriptics.com > > > I then try to install tcl8.4.14 and I get the error message below > > Victor:/home/mavor/Network Simulator/ns-allinone-2.31/tcl8.4.14/unix # > ./configure > loading cache ./config.cache > ./configure: line 572: cd: /home/mavor/Network: No such file or directory > checking whether to use symlinks for manpages... no > checking whether to compress the manpages... no > checking whether to add a package name suffix for the manpages... no > checking for gcc... (cached) 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... (cached) yes > checking whether gcc accepts -g... (cached) yes > checking how to run the C preprocessor... (cached) gcc -E > checking dirent.h... (cached) yes > checking for errno.h... (cached) yes > checking for float.h... (cached) yes > checking for values.h... (cached) yes > checking for limits.h... (cached) yes > checking for stdlib.h... (cached) yes > checking for string.h... (cached) yes > checking for sys/wait.h... (cached) yes > checking for dlfcn.h... (cached) yes > checking for unistd.h... (cached) yes > checking for sys/param.h... (cached) yes > checking if the compiler understands -pipe... yes > checking for building with threads... no (default) > checking for sin... (cached) no > checking for main in -lieee... (cached) yes > checking for main in -linet... (cached) no > checking for net/errno.h... (cached) no > checking for connect... (cached) yes > checking for gethostbyname... (cached) yes > checking how to build libraries... shared > checking for ranlib... (cached) ranlib > checking if 64bit support is requested... no > checking if 64bit Sparc VIS support is requested... no > checking system version... (cached) Linux-2.6.18.2-34-default > checking for dlopen in -ldl... (cached) yes > checking for ar... (cached) ar > checking for build with symbols... no > checking for required early compiler flags... (cached) (cached) (cached) > _LARGEFILE64_SOURCE > checking for 64-bit integer type... (cached) using long > checking whether byte ordering is bigendian... (cached) no > checking for getcwd... (cached) yes > checking for opendir... (cached) yes > checking for strstr... (cached) yes > checking for strtol... (cached) yes > checking for strtoll... (cached) yes > checking for strtoull... (cached) yes > checking for tmpnam... (cached) yes > checking for waitpid... (cached) yes > checking for strerror... (cached) yes > checking for getwd... (cached) yes > checking for wait3... (cached) yes > checking for uname... (cached) yes > checking for realpath... (cached) yes > checking for sys/modem.h... (cached) no > checking termios vs. termio vs. sgtty... (cached) termios > checking for fd_set in sys/types... (cached) yes > checking whether struct tm is in sys/time.h or time.h... (cached) time.h > checking for sys/time.h... (cached) yes > checking whether time.h and sys/time.h may both be included... (cached) > yes > checking for tm_zone in struct tm... (cached) yes > checking for gmtime_r... (cached) yes > checking for localtime_r... (cached) yes > checking tm_tzadj in struct tm... (cached) no > checking tm_gmtoff in struct tm... (cached) yes > checking long timezone variable... (cached) yes > checking for st_blksize in struct stat... (cached) yes > checking for fstatfs... (cached) yes > checking for 8-bit clean memcmp... (cached) yes > checking for memmove... (cached) yes > checking proper strstr implementation... (cached) ok > checking for strtoul... (cached) yes > checking proper strtoul implementation... (cached) ok > checking for strtod... (cached) yes > checking proper strtod implementation... (cached) ok > checking for strtod... (cached) yes > checking for Solaris2.4/Tru64 strtod bugs... (cached) ok > checking for ANSI C header files... (cached) yes > checking for mode_t... (cached) yes > checking for pid_t... (cached) yes > checking for size_t... (cached) yes > checking for uid_t in sys/types.h... (cached) yes > checking for socklen_t... (cached) yes > checking for opendir... (cached) yes > checking union wait... (cached) yes > checking for strncasecmp... (cached) yes > checking for BSDgettimeofday... (cached) no > checking for gettimeofday... (cached) yes > checking for gettimeofday declaration... (cached) present > checking whether char is unsigned... (cached) no > checking signed char declarations... (cached) yes > checking for a putenv() that copies the buffer... (cached) no > checking for langinfo.h... (cached) yes > checking whether to use nl_langinfo... (cached) yes > checking for fts... (cached) no > checking for sys/ioctl.h... (cached) yes > checking for sys/filio.h... (cached) no > checking system version... (cached) Linux-2.6.18.2-34-default > checking FIONBIO vs. O_NONBLOCK for nonblocking I/O... O_NONBLOCK > creating ./config.status > ./config.status: line 28: Simulator/ns-allinone-2.31/tcl8.4.14/unix: No > such > file or directory > creating Makefile > sed: can't read /Makefile.in: No such file or directory > creating dltest/Makefile > sed: can't read /dltest/Makefile.in: No such file or directory > creating tclConfig.sh > sed: can't read /tclConfig.sh.in: No such file or directory > > > PLEASE SOMEONE HELP ME. THANKS. > > Regards, > > Brenda >