[ns] Bug report - ns-allinone-2.28

Bob McConnell rvm at CBORD.com
Thu Jun 9 06:40:13 PDT 2005


Problem: The install script fails to insert one or more library paths
before attempting to build the ns application.

Explanation: The allinone package contains a version of the X11
libraries needed to build tk. But install fails to set the path for
these libraries before calling make in the tk8.4.5/unix subdirectory.

Procedure:

1. Install FreeBSD 5.4 Developers platform (no X11 components) from the
standard distribution CD (or iso) on a Dell Optiplex.
2. 'cd /usr/local/src'
3. 'zcat <path>/ns-allinone-2.28.tar.gz | tar xvBf -'
4. 'cd ns-allinone-2.28'
5. './install'

make will fail, and report that it is unable to find Xlib.h, even though
it is available in /usr/local/src/ns-allinone-2.28/tk8.4.5/xlib/X11/.

Discussion:
I don't know what the normal selection is when installing FreeBSD. I am
setting this up on a 450MHz P-III, which doesn't have excess machine
cycles to waste painting pictures. Therefore, the installation does not
include X-Windows. But the install script should be able to detect this
and set up a path for the X11 libraries already included in the package.

If anyone can tell me how to add the correct include path into the
current install script, I would appreciate it. Setting the path in tcsh
before running install did not correct the problem (setenv
LD_LIBRARY_PATH /usr/local/src/ns-allinone-2.28/tk8.4.5/xlib), nor did
the following change in the install script:

   echo "============================================================"
   echo "* Build Tk$TKVER"
   echo "============================================================"

   cd ./tk$TKVER/unix
   if [ -f Makefile ] ; then
+       LD_LIBRARY_PATH=$CUR_PATH/tk$TKVER/xlib:$LD_LIBRARY_PATH
+       export LD_LIBRARY_PATH
        make distclean
   fi

Thank you,

Bob McConnell
Principal Communications Programmer
The CBORD Group, Inc.
61 Brown Road
Ithaca NY, 14850
Phone 607 257-2410
FAX 607 257-1902
Email rvm at cbord.com
Web www.cbord.com



More information about the Ns-users mailing list