VuFind

Installation script fails to install Smarty libraries

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major 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.

Activity

Hide
Demian Katz added a comment -
Thanks for sharing this -- I have made several improvements to the Smarty installation process as of r2975, which should resolve your problem.
Show
Demian Katz added a comment - Thanks for sharing this -- I have made several improvements to the Smarty installation process as of r2975, which should resolve your problem.
Hide
Demian Katz added a comment -
Note that further install script problems are resolved in VUFIND-355.
Show
Demian Katz added a comment - Note that further install script problems are resolved in VUFIND-355.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: