pear install apd fails, but workaround presented (php-4.3.4)
| From: | Radu Duta | Date: | Wed, 18 Feb 2004 03:42:01 +0000 |
| Subject: | pear install apd fails, but workaround presented (php-4.3.4) | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-10757@lists.php.net to get a copy of this message | ||
I tried to install apd, and after some struggle got it working, but most likely
there is something wrong:
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
# pear install apd
No releases found for package 'apd'
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
# pear download apd
File apd-0.4p2.tgz downloaded (39326 bytes)
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
# pear install ./apd-0.4p2.tgz
+ tmp dir created at /tmp/tmpPNa59u
adding to transaction: mkdir /opt/p1/php-cli/lib/php/doc/apd
+ create dir /opt/p1/php-cli/lib/php/doc/apd
+ mkdir /opt/p1/php-cli/lib/php/doc/apd
+ cp /tmp/tmpPNa59u/apd-0.4p2/LICENSE /opt/p1/php-cli/lib/php/doc/apd/.tmpLICENSE
md5sum ok: /opt/p1/php-cli/lib/php/doc/apd/LICENSE
adding to transaction: chmod 644 /opt/p1/php-cli/lib/php/doc/apd/.tmpLICENSE
adding to transaction: rename /opt/p1/php-cli/lib/php/doc/apd/.tmpLICENSE
/opt/p1/php-cli/lib/php/doc/apd/LICENSE
adding to transaction: installed_as LICENSE /opt/p1/php-cli/lib/php/doc/apd/LICENSE
/opt/p1/php-cli/lib/php/doc/apd /
+ cp /tmp/tmpPNa59u/apd-0.4p2/README /opt/p1/php-cli/lib/php/doc/apd/.tmpREADME
md5sum ok: /opt/p1/php-cli/lib/php/doc/apd/README
adding to transaction: chmod 644 /opt/p1/php-cli/lib/php/doc/apd/.tmpREADME
adding to transaction: rename /opt/p1/php-cli/lib/php/doc/apd/.tmpREADME
/opt/p1/php-cli/lib/php/doc/apd/README
adding to transaction: installed_as README /opt/p1/php-cli/lib/php/doc/apd/README
/opt/p1/php-cli/lib/php/doc/apd /
+ cp /tmp/tmpPNa59u/apd-0.4p2/pprofp /opt/p1/php-cli/bin/.tmppprofp
md5sum ok: /opt/p1/php-cli/bin/pprofp
+ chmod +x /opt/p1/php-cli/bin/.tmppprofp
adding to transaction: chmod 755 /opt/p1/php-cli/bin/.tmppprofp
adding to transaction: rename /opt/p1/php-cli/bin/.tmppprofp /opt/p1/php-cli/bin/pprofp
adding to transaction: installed_as pprofp /opt/p1/php-cli/bin/pprofp /opt/p1/php-cli/bin /
16 source files, building
building in /tmp/tmpPNa59u/apd-0.4p2
running: phpize
/opt/p1/php-cli/bin/phpize: line 1: /tmp/tmpPNa59u/apd-0.4p2/build/shtool: Permission denied
/opt/p1/php-cli/bin/phpize: line 61: -f: command not found
`phpize' failed
--------------------------------------------------------------------------------
Ok fine so lets feed the best. line 61 does a "$libtoolize -f -c || exit 1" so lets
add a line after 59:
--- phpize 2004-02-17 22:37:41.000000000 -0500
+++ phpize.orig 2004-02-17 22:37:25.000000000 -0500
@@ -57,7 +57,6 @@
aclocal || exit 1
autoconf || exit 1
autoheader || exit 1
-chmod 777 $builddir/build/shtool
libtoolize=
$builddir/build/shtool path glibtoolize libtoolize
$libtoolize -f -c || exit 1
and afterwoards:
# pear install ./apd-0.4p2.tgz
+ tmp dir created at /tmp/tmp8mGlLH
+ cp /tmp/tmp8mGlLH/apd-0.4p2/LICENSE /opt/p1/php-cli/lib/php/doc/apd/.tmpLICENSE
md5sum ok: /opt/p1/php-cli/lib/php/doc/apd/LICENSE
adding to transaction: chmod 644 /opt/p1/php-cli/lib/php/doc/apd/.tmpLICENSE
adding to transaction: rename /opt/p1/php-cli/lib/php/doc/apd/.tmpLICENSE
/opt/p1/php-cli/lib/php/doc/apd/LICENSE
adding to transaction: installed_as LICENSE /opt/p1/php-cli/lib/php/doc/apd/LICENSE
/opt/p1/php-cli/lib/php/doc/apd /
+ cp /tmp/tmp8mGlLH/apd-0.4p2/README /opt/p1/php-cli/lib/php/doc/apd/.tmpREADME
md5sum ok: /opt/p1/php-cli/lib/php/doc/apd/README
adding to transaction: chmod 644 /opt/p1/php-cli/lib/php/doc/apd/.tmpREADME
adding to transaction: rename /opt/p1/php-cli/lib/php/doc/apd/.tmpREADME
/opt/p1/php-cli/lib/php/doc/apd/README
adding to transaction: installed_as README /opt/p1/php-cli/lib/php/doc/apd/README
/opt/p1/php-cli/lib/php/doc/apd /
+ cp /tmp/tmp8mGlLH/apd-0.4p2/pprofp /opt/p1/php-cli/bin/.tmppprofp
md5sum ok: /opt/p1/php-cli/bin/pprofp
+ chmod +x /opt/p1/php-cli/bin/.tmppprofp
adding to transaction: chmod 755 /opt/p1/php-cli/bin/.tmppprofp
adding to transaction: rename /opt/p1/php-cli/bin/.tmppprofp /opt/p1/php-cli/bin/pprofp
adding to transaction: installed_as pprofp /opt/p1/php-cli/bin/pprofp /opt/p1/php-cli/bin /
16 source files, building
building in /tmp/tmp8mGlLH/apd-0.4p2
running: phpize
Configuring for:
PHP Api Version: 20020918
Zend Module Api No: 20020429
Zend Extension Api No: 20021010
building in /var/tmp/pear-build-rduta/apd-0.4p2
running: /tmp/tmp8mGlLH/apd-0.4p2/configure
checking build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-linux-gnu
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for PHP prefix... /opt/p1/php-cli
checking for PHP includes... -I/opt/p1/php-cli/include/php -I/opt/p1/php-cli/include/php/main
-I/opt/p1/php-cli/include/php/Zend -I/opt/p1/php-cli/include/php/TSRM
checking for PHP extension directory... /opt/p1/php-cli/lib/php/extensions/no-debug-non-zts-20020429
checking for re2c... exit 0;
checking for gawk... gawk
checking whether to enable apd support... yes, shared
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /var/tmp/pear-build-rduta/apd-0.4p2/libtool --mode=compile gcc -I.
-I/tmp/tmp8mGlLH/apd-0.4p2 -DPHP_ATOM_INC -I/var/tmp/pear-build-rduta/apd-0.4p2/include
-I/var/tmp/pear-build-rduta/apd-0.4p2/main -I/tmp/tmp8mGlLH/apd-0.4p2 -I/opt/p1/php-cli/include/php
-I/opt/p1/php-cli/include/php/main -I/opt/p1/php-cli/include/php/Zend
-I/opt/p1/php-cli/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -prefer-pic -c
/tmp/tmp8mGlLH/apd-0.4p2/php_apd.c -o php_apd.lo
mkdir .libs
gcc -I. -I/tmp/tmp8mGlLH/apd-0.4p2 -DPHP_ATOM_INC -I/var/tmp/pear-build-rduta/apd-0.4p2/include
-I/var/tmp/pear-build-rduta/apd-0.4p2/main -I/tmp/tmp8mGlLH/apd-0.4p2 -I/opt/p1/php-cli/include/php
-I/opt/p1/php-cli/include/php/main -I/opt/p1/php-cli/include/php/Zend
-I/opt/p1/php-cli/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -c /tmp/tmp8mGlLH/apd-0.4p2/php_apd.c
-fPIC -DPIC -o .libs/php_apd.o
/bin/sh /var/tmp/pear-build-rduta/apd-0.4p2/libtool --mode=compile gcc -I.
-I/tmp/tmp8mGlLH/apd-0.4p2 -DPHP_ATOM_INC -I/var/tmp/pear-build-rduta/apd-0.4p2/include
-I/var/tmp/pear-build-rduta/apd-0.4p2/main -I/tmp/tmp8mGlLH/apd-0.4p2 -I/opt/p1/php-cli/include/php
-I/opt/p1/php-cli/include/php/main -I/opt/p1/php-cli/include/php/Zend
-I/opt/p1/php-cli/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -prefer-pic -c
/tmp/tmp8mGlLH/apd-0.4p2/apd_lib.c -o apd_lib.lo
gcc -I. -I/tmp/tmp8mGlLH/apd-0.4p2 -DPHP_ATOM_INC -I/var/tmp/pear-build-rduta/apd-0.4p2/include
-I/var/tmp/pear-build-rduta/apd-0.4p2/main -I/tmp/tmp8mGlLH/apd-0.4p2 -I/opt/p1/php-cli/include/php
-I/opt/p1/php-cli/include/php/main -I/opt/p1/php-cli/include/php/Zend
-I/opt/p1/php-cli/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -c /tmp/tmp8mGlLH/apd-0.4p2/apd_lib.c
-fPIC -DPIC -o .libs/apd_lib.o
/bin/sh /var/tmp/pear-build-rduta/apd-0.4p2/libtool --mode=compile gcc -I.
-I/tmp/tmp8mGlLH/apd-0.4p2 -DPHP_ATOM_INC -I/var/tmp/pear-build-rduta/apd-0.4p2/include
-I/var/tmp/pear-build-rduta/apd-0.4p2/main -I/tmp/tmp8mGlLH/apd-0.4p2 -I/opt/p1/php-cli/include/php
-I/opt/p1/php-cli/include/php/main -I/opt/p1/php-cli/include/php/Zend
-I/opt/p1/php-cli/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -prefer-pic -c
/tmp/tmp8mGlLH/apd-0.4p2/opcode.c -o opcode.lo
gcc -I. -I/tmp/tmp8mGlLH/apd-0.4p2 -DPHP_ATOM_INC -I/var/tmp/pear-build-rduta/apd-0.4p2/include
-I/var/tmp/pear-build-rduta/apd-0.4p2/main -I/tmp/tmp8mGlLH/apd-0.4p2 -I/opt/p1/php-cli/include/php
-I/opt/p1/php-cli/include/php/main -I/opt/p1/php-cli/include/php/Zend
-I/opt/p1/php-cli/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -c /tmp/tmp8mGlLH/apd-0.4p2/opcode.c
-fPIC -DPIC -o .libs/opcode.o
/bin/sh /var/tmp/pear-build-rduta/apd-0.4p2/libtool --mode=compile gcc -I.
-I/tmp/tmp8mGlLH/apd-0.4p2 -DPHP_ATOM_INC -I/var/tmp/pear-build-rduta/apd-0.4p2/include
-I/var/tmp/pear-build-rduta/apd-0.4p2/main -I/tmp/tmp8mGlLH/apd-0.4p2 -I/opt/p1/php-cli/include/php
-I/opt/p1/php-cli/include/php/main -I/opt/p1/php-cli/include/php/Zend
-I/opt/p1/php-cli/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -prefer-pic -c
/tmp/tmp8mGlLH/apd-0.4p2/apd_stack.c -o apd_stack.lo
gcc -I. -I/tmp/tmp8mGlLH/apd-0.4p2 -DPHP_ATOM_INC -I/var/tmp/pear-build-rduta/apd-0.4p2/include
-I/var/tmp/pear-build-rduta/apd-0.4p2/main -I/tmp/tmp8mGlLH/apd-0.4p2 -I/opt/p1/php-cli/include/php
-I/opt/p1/php-cli/include/php/main -I/opt/p1/php-cli/include/php/Zend
-I/opt/p1/php-cli/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -c /tmp/tmp8mGlLH/apd-0.4p2/apd_stack.c
-fPIC -DPIC -o .libs/apd_stack.o
/bin/sh /var/tmp/pear-build-rduta/apd-0.4p2/libtool --mode=link gcc -DPHP_ATOM_INC
-I/var/tmp/pear-build-rduta/apd-0.4p2/include -I/var/tmp/pear-build-rduta/apd-0.4p2/main
-I/tmp/tmp8mGlLH/apd-0.4p2 -I/opt/p1/php-cli/include/php -I/opt/p1/php-cli/include/php/main
-I/opt/p1/php-cli/include/php/Zend -I/opt/p1/php-cli/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -o
apd.la -export-dynamic -avoid-version -prefer-pic -module -rpath
/var/tmp/pear-build-rduta/apd-0.4p2/modules php_apd.lo apd_lib.lo opcode.lo apd_stack.lo
gcc -shared .libs/php_apd.o .libs/apd_lib.o .libs/opcode.o .libs/apd_stack.o -Wl,-soname
-Wl,apd.so -o .libs/apd.so
creating apd.la
(cd .libs && rm -f apd.la && ln -s ../apd.la apd.la)
/bin/sh /var/tmp/pear-build-rduta/apd-0.4p2/libtool --mode=install cp ./apd.la
/var/tmp/pear-build-rduta/apd-0.4p2/modules
cp ./.libs/apd.so /var/tmp/pear-build-rduta/apd-0.4p2/modules/apd.so
cp ./.libs/apd.lai /var/tmp/pear-build-rduta/apd-0.4p2/modules/apd.la
PATH="$PATH:/sbin" ldconfig -n /var/tmp/pear-build-rduta/apd-0.4p2/modules
----------------------------------------------------------------------
Libraries have been installed in:
/var/tmp/pear-build-rduta/apd-0.4p2/modules
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).
apd.so copied to /tmp/tmp8mGlLH/apd-0.4p2/apd.so
Build process completed successfully
Installing 'apd.so' at ext_dir
(/opt/p1/php-cli/lib/php/extensions/no-debug-non-zts-20020429/apd.so)
+ cp /tmp/tmp8mGlLH/apd-0.4p2/apd.so ext_dir
(/opt/p1/php-cli/lib/php/extensions/no-debug-non-zts-20020429/apd.so)
about to commit 9 file operations
+ chmod 644 /opt/p1/php-cli/lib/php/doc/apd/.tmpLICENSE
+ mv /opt/p1/php-cli/lib/php/doc/apd/.tmpLICENSE /opt/p1/php-cli/lib/php/doc/apd/LICENSE
+ chmod 644 /opt/p1/php-cli/lib/php/doc/apd/.tmpREADME
+ mv /opt/p1/php-cli/lib/php/doc/apd/.tmpREADME /opt/p1/php-cli/lib/php/doc/apd/README
+ chmod 755 /opt/p1/php-cli/bin/.tmppprofp
+ mv /opt/p1/php-cli/bin/.tmppprofp /opt/p1/php-cli/bin/pprofp
successfully committed 9 file operations
install ok: apd 0.4p2
--
Radu Duta <rduta@syskey.com>
The reasonable man adapts himself to the world; the unreasonable man persists in trying to adapt the
world to himself. Therefore, all progress depends on the unreasonable man.
- G. B. Shaw