Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.1
-
Component/s: Installation
-
Labels:None
-
Environment:Debian 5, kernel 2.6.26-2-686
Description
Installing VuFind on a minimal Debian installation as described in http://credaul.wordpress.com/2010/09/01/step-by-step-implementation-of-vufind/, the installation script fails to install Smarty libraries. This is because of the following. The script contains the following lines towards the end.
# Install Smarty into PHP Include Directory
PHPDIR=`pear config-get php_dir`
SMARTYDIR="$PHPDIR/Smarty"
if [ ! -d $SMARTYDIR ]
then
wget http://www.smarty.net/do_download.php?download_file=Smarty-2.6.19.tar.gz
tar -zxf Smarty-2.6.19.tar.gz
mkdir $SMARTYDIR
mv Smarty-2.6.19/libs/* $SMARTYDIR
rm Smarty-2.6.19.tar.gz
rm -rf Smarty-2.6.19
fi
This does not work because wget saves a file called do_download.php?download_file=Smarty-2.6.19.tar.gz and obviously the following line fails as there is no file called Smarty-2.6.19.tar.gz.
I suggest this be changed to
# Install Smarty into PHP Include Directory
PHPDIR=`pear config-get php_dir`
SMARTYDIR="$PHPDIR/Smarty"
if [ ! -d $SMARTYDIR ]
then
wget http://www.smarty.net/do_download.php?download_file=Smarty-2.6.19.tar.gz -O Smarty-2.6.19.tar.gz
tar -zxf Smarty-2.6.19.tar.gz
mkdir $SMARTYDIR
mv Smarty-2.6.19/libs/* $SMARTYDIR
rm Smarty-2.6.19.tar.gz
rm -rf Smarty-2.6.19
fi
Thank you.
# Install Smarty into PHP Include Directory
PHPDIR=`pear config-get php_dir`
SMARTYDIR="$PHPDIR/Smarty"
if [ ! -d $SMARTYDIR ]
then
wget http://www.smarty.net/do_download.php?download_file=Smarty-2.6.19.tar.gz
tar -zxf Smarty-2.6.19.tar.gz
mkdir $SMARTYDIR
mv Smarty-2.6.19/libs/* $SMARTYDIR
rm Smarty-2.6.19.tar.gz
rm -rf Smarty-2.6.19
fi
This does not work because wget saves a file called do_download.php?download_file=Smarty-2.6.19.tar.gz and obviously the following line fails as there is no file called Smarty-2.6.19.tar.gz.
I suggest this be changed to
# Install Smarty into PHP Include Directory
PHPDIR=`pear config-get php_dir`
SMARTYDIR="$PHPDIR/Smarty"
if [ ! -d $SMARTYDIR ]
then
wget http://www.smarty.net/do_download.php?download_file=Smarty-2.6.19.tar.gz -O Smarty-2.6.19.tar.gz
tar -zxf Smarty-2.6.19.tar.gz
mkdir $SMARTYDIR
mv Smarty-2.6.19/libs/* $SMARTYDIR
rm Smarty-2.6.19.tar.gz
rm -rf Smarty-2.6.19
fi
Thank you.