ltib
[Top][All Lists]
Advanced

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

Re: [Ltib] PHP(5.0.4) build success, installation fail, Please help.


From: Stuart Hughes
Subject: Re: [Ltib] PHP(5.0.4) build success, installation fail, Please help.
Date: Wed, 01 Dec 2010 18:00:21 +0000
User-agent: Thunderbird 2.0.0.16 (X11/20080707)

Hi Kevin,

You need to run all build commands with the LTIB environment.  So you
should not run configure outside the LTIB shell.

The correct steps are:

1. Unpack: ./ltib -m prep -p php

2. Edit the .spec file to adapt the configure options (I think this is
what you are doing?)

3. Build/install the package: ./ltib -p php -m scdeploy

It looks from the output that your build makes something for the target
(ARM) that is being run as part of the installer.  ARM executables won't
run on your PC.  You need to look at what the installer is trying to do
and figure out a way of getting this to work in a cross compiled
environment.

Regards, Stuart



Kevin Li wrote:
> Hello Everyone,
> 
> I need PHP extension functions. so I did:
> 1. ./ltib -m prep -p php
> 2.  cd ..../php-5.0.4 and run ./configure
> 3. then build it by : ./ltib -m scbuild -p php, it was success.
> 4. then I tried install it by:  ./ltib -m scinstall -p php
> 
> it shows fail by /bin/sh:
> /home/kevin/lpc3250/ltib-qs/rpm/BUILD/php-5.0.4/sapi/cli/php: cannot
> execute binary file.
> 
> I am using Ubuntu 9.10 with bash.
> 
> Any help are welcome!
> Thank you.
> 
> Kevin
> 
> 
> 
> 
> Processing: php
> =================
> Build path taken because: directory build, build key set,
> 
> rpmbuild --dbpath /home/kevin/lpc3250/ltib-qs/rootfs//var/lib/rpm
> --target arm --define '_unpackaged_files_terminate_build 0' --define
> '_target_cpu arm' --define '__strip strip' --define '_topdir
> /home/kevin/lpc3250/ltib-qs/rpm' --define '_prefix /usr' --define
> '_tmppath /home/kevin/lpc3250/ltib-qs/tmp' --define '_rpmdir
> /home/kevin/lpc3250/ltib-qs/rpm/RPMS'  --define '_mandir /usr/share/man'
> --define '_sysconfdir /etc' --define '_localstatedir /var' -bi
> --short-circuit  /home/kevin/lpc3250/ltib-qs/dist/lfs-5.1/php/php.spec
> Building target platforms: arm
> Building for target arm
> Executing(%install): /bin/sh -e
> /home/kevin/lpc3250/ltib-qs/tmp/rpm-tmp.75940
> + umask 022
> + cd /home/kevin/lpc3250/ltib-qs/rpm/BUILD
> + cd php-5.0.4
> + rm -rf /home/kevin/lpc3250/ltib-qs/tmp/php
> + mkdir -p
> /home/kevin/lpc3250/ltib-qs/tmp/php//opt/freescale/rootfs/arm//usr
> + mkdir -p
> /home/kevin/lpc3250/ltib-qs/tmp/php//opt/freescale/rootfs/arm//usr/modules
> + mkdir -p
> /home/kevin/lpc3250/ltib-qs/tmp/php//opt/freescale/rootfs/arm//usr/conf
> + mkdir -p
> /home/kevin/lpc3250/ltib-qs/tmp/php//opt/freescale/rootfs/arm//usr/htdocs
> + cp /home/kevin/lpc3250/ltib-qs/rootfs/usr/conf/httpd.conf
> /home/kevin/lpc3250/ltib-qs/tmp/php//opt/freescale/rootfs/arm//usr/conf
> + '[' '!' -f ./sapi/cli/php.orig ']'
> + make -j1 install
> prefix=/home/kevin/lpc3250/ltib-qs/tmp/php//opt/freescale/rootfs/arm//usr
> Installing PHP SAPI module:       apache2handler
> /home/kevin/lpc3250/ltib-qs/rootfs/usr/bin/../build/instdso.sh
> SH_LIBTOOL='/home/kevin/lpc3250/ltib-qs/rootfs/usr/build/libtool'
> libphp5.la
> /home/kevin/lpc3250/ltib-qs/tmp/php//opt/freescale/rootfs/arm//usr/modules
> /home/kevin/lpc3250/ltib-qs/rootfs/usr/build/libtool --mode=install cp
> libphp5.la
> /home/kevin/lpc3250/ltib-qs/tmp/php//opt/freescale/rootfs/arm//usr/modules/
> cp .libs/libphp5.so
> /home/kevin/lpc3250/ltib-qs/tmp/php//opt/freescale/rootfs/arm//usr/modules/libphp5.so
> cp .libs/libphp5.lai
> /home/kevin/lpc3250/ltib-qs/tmp/php//opt/freescale/rootfs/arm//usr/modules/libphp5.la
> libtool: install: warning: remember to run `libtool --finish
> /home/kevin/lpc3250/ltib-qs/rpm/BUILD/php-5.0.4/libs'
> chmod 755
> /home/kevin/lpc3250/ltib-qs/tmp/php//opt/freescale/rootfs/arm//usr/modules/libphp5.so
> [activating module `php5' in
> /home/kevin/lpc3250/ltib-qs/tmp/php//opt/freescale/rootfs/arm//usr/conf/httpd.conf]
> Installing PHP CLI binary:       
> /home/kevin/lpc3250/ltib-qs/tmp/php//opt/freescale/rootfs/arm//usr/bin/
> Installing PHP CLI man page:     
> /home/kevin/lpc3250/ltib-qs/tmp/php//opt/freescale/rootfs/arm//usr/man/man1/
> Installing PEAR environment:     
> /home/kevin/lpc3250/ltib-qs/tmp/php//opt/freescale/rootfs/arm//usr/lib/php/
> /bin/sh: /home/kevin/lpc3250/ltib-qs/rpm/BUILD/php-5.0.4/sapi/cli/php:
> cannot execute binary file
> make[1]: *** [install-pear-installer] Error 126
> make: *** [install-pear] Error 2
> error: Bad exit status from
> /home/kevin/lpc3250/ltib-qs/tmp/rpm-tmp.75940 (%install)
> 
> 
> RPM build errors:
>     Bad exit status from /home/kevin/lpc3250/ltib-qs/tmp/rpm-tmp.75940
> (%install)
> Build time for php: 1 seconds
> 
> Failed building php
> 
> 
> f_scinstall() returned an error, exiting
> traceback:
>  main:567
> 
> Exiting on error or interrupt
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> LTIB home page: http://ltib.org
> 
> Ltib mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/ltib



reply via email to

[Prev in Thread] Current Thread [Next in Thread]