[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ns-2.1b6 installation problems (and fixes)



Hi,

[Using Linux RedHat 6.0]

These might be already known, but maybe not. In any case,
it would be good to put a comment in the download / 
installation problems web pages.


--------------------
Problem:
- configure.in.int64_t is missing from the ns-src-2.1b6.tar.gz
package (didn't try with allinone), so autoconf fails.

Fix:
- Get configure.in.int64_t from CVS and put it in ~ns/conf
(btw, cvsweb should explicitly add a .gz suffix when retrieving
a file, or maybe a comment should be added somewhere - it took
me some time to realize that the files were compressed)

--------------------
Problem:
- There is a typo (?) near the top of configure.in.tk;
the default value for the --with-tk option should be an empty
string, not $prefix (otherwise configure fails saying that
'NONE is not a directory').

Fix:
- Change the line:
AC_ARG_WITH(tk, --with-tk=path   ... , d=$withval, d=$prefix)
  to:
AC_ARG_WITH(tk, --with-tk=path   ... , d=$withval, d="")

--------------------
Problem:
- configure.in.TclCL checks for 1.0b8, but the package available
in the 'download' web page is 1.0b9, so it will not find it and
it will fail saying that TclCL installation is incomplete.

Fix:
- Edit configure.in.TclCL and change the version string from 1.0b8 to 1.0b9

--------------------
Problem:
- When doing make install, ns is installed, but the recursive
'make install' for all $SUBDIRS (that is, those progs inside
the indep-utils subdir) fail. This is because:
a) the variable INSTALL is not defined in
   ~ns/indep-utils/cmu-scen-gen/setdest/Makefile.in
   so it fails saying that it couldn't find command '-m'
   (because install is called as $(INSTALL) -m ...)
b) there is no install target at all in the following makefiles:
   ~ns/indep-utils/webtrace-conv/dec
   ~ns/indep-utils/webtrace-conv/epa
   ~ns/indep-utils/webtrace-conv/nlanr
   ~ns/indep-utils/webtrace-conv/ucb

Fix:
- Add the following line to ~ns/indep-utils/cmu-scen-gen/setdest/Makefile.in
INSTALL=@INSTALL@
- Do the same for the others subdirs and also add a 'install' target to
the relevant makefiles.


That's all.

Regards,
G.
--
Guillermo Rodriguez Garcia
<[email protected]>