Script failing on extension_dir
| From: | George R Smith | Date: | Mon, 09 Apr 2012 20:16:17 +0000 |
| Subject: | Script failing on extension_dir | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-317496@lists.php.net to get a copy of this message | ||
All,
I am tying to install php that will talk to the database I us (QM, a pick type database). As I
am new to pdp don’t have much experience in figuring out what the qm_ext_build script is
failing.
Thanks for you help in advance.
george
I am trying to run following:
root@dell350:/usr/qmsys/qmphp# ./qm_ext_build
It is failing here with the message after the script.
echo ---
echo get the directory where PHP extension are stored
echo ---
EXTDIR=
php -i 2> /dev/null | grep -i "extension_dir" | cut -d" "
-f3
if [ ! -d "$EXTDIR" ]; then
echo -n -e "\n"
echo ============================================================
echo You need to create the php extensions directory:
echo $EXTDIR
echo ============================================================
echo -n -e "\n"
exit
fi
Error message follows, what does the no mean ?
get the directory where PHP extension are stored
============================================================
You need to create the php extensions directory:
/usr/lib/php5/20090626+lfs no
============================================================
There is a directory which contains (I think) the compiled extensions.
I am unsure where to go from here. Do I create a
extension_dir and if so where do I put it and do I have
to copy the file currently in 20090626+lfs to it. Also
would have to, I believe, add the extension_dir to
the php.ini file.
Help would be appreciated.
root@dell350:/usr/lib/php5/20090626+lfs# ls -la
total 1688
drwxr-xr-x 2 root root 4096 Apr 9 08:33 .
drwxr-xr-x 5 root root 4096 Apr 8 08:20 ..
-rw-r--r-- 1 root root 62936 Feb 10 08:31 curl.so
-rw-r--r-- 1 root root 95596 Feb 10 08:31 gd.so
-rw-r--r-- 1 root root 20024 Feb 27 2010 idn.so
-rw-r--r-- 1 root root 335288 Jun 1 2010 imagick.so