View Single Post
  #3  
Old 03-31-2010, 12:00 PM
raphidae raphidae is offline
Senior Member
 
Join Date: Apr 2008
Posts: 59
I've investigated:

Code:
[root@virasena /opt/lsws]# /usr/local/lsws/phpbuild/buildphp_manual_run.sh
Manually running installation script: /usr/local/lsws/phpbuild/buildphp_1270060006.9.install.sh
Running at background with command:
/usr/local/lsws/phpbuild/buildphp_1270060006.9.install.sh 1> /usr/local/lsws/phpbuild/buildphp_1270060006.9.log 2>&1
[: xroot: unexpected operator
First, this doesn't run in the background as stated.

Second, there's an error due to:

Code:
if [  "x$INST_USER" == "xroot" ]; then
   chown -R lsadm:lsadm /usr/local/lsws/phpbuild/php-5.2.12
   check_errs $? "Could not chown to lsadm for direcotry /usr/local/lsws/phpbuild/php-5.2.12"
fi
in buildphp_xx.9.install.sh & buildphp_manual_run.sh

'==' is not a valid operator for a test evaluation. At least it isn't on BSD. You should be using '=' there.

The actual install error is due to the following:

Code:
[root@virasena /opt/lsws/phpbuild/php-5.2.12]# make -k install-sapi
Installing PHP SAPI module:       litespeed
:No such file or directory
*** Error code 1 (continuing)

[root@virasena /opt/lsws/phpbuild/php-5.2.12]# make -k -n install-sapi
echo "Installing PHP SAPI module:       litespeed"
/usr/local/lsws/phpbuild/php-5.2.12/build/shtool mkdir -p /opt/lsws/lsphp5/bin
if test ! -r /usr/local/lsws/phpbuild/php-5.2.12/libs/libphp5.so; then  for i in 0.0.0 0.0 0; do  if test -r /usr/local/lsws/phpbuild/php-5.2.12/libs/libphp5.so.$i; then  ln -s /usr/local/lsws/phpbuild/php-5.2.12/libs/libphp5.so.$i /usr/local/lsws/phpbuild/php-5.2.12/libs/libphp5.so;  break;  fi;  done;  fi

[root@virasena /opt/lsws/phpbuild/php-5.2.12]#
Notice the blank line after the two commands. Somehow make is trying to execute an empty command... This is due to this in '/usr/local/lsws/phpbuild/php-5.2.12/Makefile':

Code:
install-sapi: $(OVERALL_TARGET)   
        @echo "Installing PHP SAPI module:       $(PHP_SAPI)"
        -@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir)
        -@if test ! -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); then \
                for i in 0.0.0 0.0 0; do \
                        if test -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i; then \
                                $(LN_S) $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); \
                                break; \
                        fi; \
                done; \
        fi
        @$(INSTALL_IT)
The variable INSTALL_IT should have been set in '/usr/local/lsws/phpbuild/php-5.2.12/sapi/litespeed/config.m4', even if not used, otherwise it results in trying to execute "". Adding

INSTALL_IT="@true"

to '/usr/local/lsws/phpbuild/php-5.2.12/sapi/litespeed/config.m4' will fix this.

I'm quite concerned that apparently you haven't fully tested at least the last three releases on BSD and that a small error like this isn't fixed in over two months. If you aren't taking the BSD platform seriously I'd like to know.

(Also, there's two spelling/grammar errors in this: 'Running at background with command:' -> 'Running command in the background:' and 'direcotry' -> 'directory'.)

Last edited by raphidae; 03-31-2010 at 05:41 PM..
Reply With Quote