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

[ns] HEAD UP: ns-allinone-2.1b7 install problem



As it's biten many people, 2.1b7 install has a bug that it does not supply
correct paths to configure of ns/nam/otcl/tclcl. Please apply the
following patch (fixed by George Riley, emphasized by Lloyd Wood :)

To apply the patch, cut&paste the following to a file, e.g., p.txt, then
go to your ns-allinone directory, do 'patch < p.txt'; or 'man patch' on
its usage in your system.

This will show up in ns problems page tomorrow.

- Haobo

--- install~    Wed Oct 18 14:41:56 2000
+++ install     Mon Oct 30 09:49:21 2000
@@ -104,7 +104,7 @@
 
 blame='Please check http://www.isi.edu/nsnam/ns/ns-problems.html
 for common problems and bug fixes.'
-./configure || die "otcl-1.0a6 configuration failed! Exiting ..."
+./configure --with-tcl=../tclbox --with-tk=../tkbox || die "otcl-1.0a6
configuration failed
! Exiting ..."
 
 if make 
 then
@@ -122,7 +122,7 @@
 
 cd ./tclcl-1.0b10
 
-./configure || die "tclcl-1.0b10 configuration failed! Exiting ..."
+./configure --with-tcl=../tclbox --with-tk=../tkbox || die "tclcl-1.0b10
configuration fail
ed! Exiting ..."
 
 if make
 then
@@ -234,16 +234,15 @@
     echo "sgb lib not found. gt-itm & sgb2ns could not be
installed. Continuing.."
 fi
 
-#compile and install ns
+# Compile and install ns. Since ns searches for tclsh in $PATH, the
following is needed.
 PATH=$CUR_PATH/tclbox/bin:$CUR_PATH/tkbox/bin:$PATH
 export PATH
-#echo $PATH
 
 # John's hack
 test -f ./otcl-1.0a6/libotcl.a && rm ./otcl-1.0a6/libotcl.so
 
 cd ./ns-2.1b7
-./configure || die "Ns configuration failed! Exiting ..."
+./configure --with-tcl=../tclbox --with-tk=../tkbox || die "Ns
configuration failed! Exitin
g ..."
 
 if make
 then
@@ -279,7 +278,7 @@
 
 cd ./nam-1.0a9
 
-./configure || die "Nam configuration failed! Exiting ..."
+./configure --with-tcl=../tclbox --with-tk=../tkbox || die "Nam
configuration failed! Exiti
ng ..."
 
 if make
 then 
@@ -356,7 +355,8 @@
 
 echo "-----------------------------------------------------"
 echo "Please put $CUR_PATH/bin into your PATH environment."
-echo "You many need to put $CUR_PATH/otcl-1.0a6, $CUR_PATH/tclbox/lib,
$CUR_PATH/tkbox/lib"
+echo ""
+echo "You MUST put $CUR_PATH/otcl-1.0a6, $CUR_PATH/tclbox/lib,
$CUR_PATH/tkbox/lib"
 echo "into your LD_LIBRARY_PATH environment variable. If it complains
about X libraries,"
 echo "add path to your X libraries into LD_LIBRARY_PATH."
 echo ""