Installing uploadprogress on shared server

From: Date: Thu, 07 May 2009 22:58:33 +0000
Subject: Installing uploadprogress on shared server
Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-6383@lists.php.net to get a copy of this message
I'm trying to install uploadprogress with the command 'pear install pecl/uploadprogress' and pecl install uploadprogress; but the install scripts fails at the very end when trying to copy the uploadprogress.so file to a directory I don't have permission to (shared server). Installing '/usr/local/lib/php/extensions/no-debug-zts-20060613/uploadprogress.so' ERROR: failed to mkdir /usr/local/lib/php/extensions/no-debug-zts-20060613 It seems I need to pass the location of my pear/ext directory to the installation script somehow. I've looking in my .pearrc file and it is correct. I also added my local pear and pecl executables to my path. Is it possible to install this module locally? Ciao. swidnikk <ENTIRE INSTALLATION SCRIPT BELOW> [bike@web14 ~]$ pecl install uploadprogress downloading uploadprogress-1.0.0.tgz ... Starting to download uploadprogress-1.0.0.tgz (7,761 bytes) .....done: 7,761 bytes 3 source files, building running: phpize Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20060613 Zend Extension Api No: 220060519 building in /var/tmp/pear-build-bikeorgil/uploadprogress-1.0.0 running: /home/bikeorgil/srv/pear/temp/uploadprogress/configure checking for egrep... grep -E checking for a sed that does not truncate output... /bin/sed checking for gcc... gcc checking for C compiler default output file name... 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 for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for PHP prefix... /usr/local checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-zts-20060613 checking for PHP installed headers prefix... /usr/local/include/php checking for re2c... no configure: WARNING: You will need re2c 0.12.0 or later if you want to regenerate PHP parsers. checking for gawk... gawk checking whether to enable uploadprogress functions... yes, shared 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 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 dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no creating libtool appending configuration tag "CXX" to libtool configure: creating ./config.status config.status: creating config.h running: make /bin/sh /var/tmp/pear-build-bikeorgil/uploadprogress-1.0.0/libtool --mode=compile gcc -I. -I/home/bikeorgil/srv/pear/temp/uploadprogress -DPHP_ATOM_INC -I/var/tmp/pear-build-bikeorgil/uploadprogress-1.0.0/include -I/var/tmp/pear-build-bikeorgil/uploadprogress-1.0.0/main -I/home/bikeorgil/srv/pear/temp/uploadprogress -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/bikeorgil/srv/pear/temp/uploadprogress/uploadprogress.c -o uploadprogress.lo mkdir .libs gcc -I. -I/home/bikeorgil/srv/pear/temp/uploadprogress -DPHP_ATOM_INC -I/var/tmp/pear-build-bikeorgil/uploadprogress-1.0.0/include -I/var/tmp/pear-build-bikeorgil/uploadprogress-1.0.0/main -I/home/bikeorgil/srv/pear/temp/uploadprogress -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/bikeorgil/srv/pear/temp/uploadprogress/uploadprogress.c -fPIC -DPIC -o .libs/uploadprogress.o /bin/sh /var/tmp/pear-build-bikeorgil/uploadprogress-1.0.0/libtool --mode=link gcc -DPHP_ATOM_INC -I/var/tmp/pear-build-bikeorgil/uploadprogress-1.0.0/include -I/var/tmp/pear-build-bikeorgil/uploadprogress-1.0.0/main -I/home/bikeorgil/srv/pear/temp/uploadprogress -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -o uploadprogress.la -export-dynamic -avoid-version -prefer-pic -module -rpath /var/tmp/pear-build-bikeorgil/uploadprogress-1.0.0/modules uploadprogress.lo gcc -shared .libs/uploadprogress.o -Wl,-soname -Wl,uploadprogress.so -o .libs/uploadprogress.so creating uploadprogress.la (cd .libs && rm -f uploadprogress.la && ln -s ../uploadprogress.la uploadprogress.la) /bin/sh /var/tmp/pear-build-bikeorgil/uploadprogress-1.0.0/libtool --mode=install cp ./uploadprogress.la /var/tmp/pear-build-bikeorgil/uploadprogress-1.0.0/modules cp ./.libs/uploadprogress.so /var/tmp/pear-build-bikeorgil/uploadprogress-1.0.0/modules/uploadprogress.so cp ./.libs/uploadprogress.lai /var/tmp/pear-build-bikeorgil/uploadprogress-1.0.0/modules/uploadprogress.la PATH="$PATH:/sbin" ldconfig -n /var/tmp/pear-build-bikeorgil/uploadprogress-1.0.0/modules ---------------------------------------------------------------------- Libraries have been installed in: /var/tmp/pear-build-bikeorgil/uploadprogress-1.0.0/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. Don't forget to run 'make test'. running: make INSTALL_ROOT="/var/tmp/pear-build-bikeorgil/install-uploadprogress-1.0.0" install Installing shared extensions: /var/tmp/pear-build-bikeorgil/install-uploadprogress-1.0.0/usr/local/lib/php/extensions/no-debug-zts-20060613/ running: find "/var/tmp/pear-build-bikeorgil/install-uploadprogress-1.0.0" | xargs ls -dils 17154690 4 drwxrwxr-x 3 bikeorgil bikeorgil 4096 May 6 02:26 /var/tmp/pear-build-bikeorgil/install-uploadprogress-1.0.0 17154711 4 drwxrwxr-x 3 bikeorgil bikeorgil 4096 May 6 02:26 /var/tmp/pear-build-bikeorgil/install-uploadprogress-1.0.0/usr 17154712 4 drwxrwxr-x 3 bikeorgil bikeorgil 4096 May 6 02:26 /var/tmp/pear-build-bikeorgil/install-uploadprogress-1.0.0/usr/local 17154713 4 drwxrwxr-x 3 bikeorgil bikeorgil 4096 May 6 02:26 /var/tmp/pear-build-bikeorgil/install-uploadprogress-1.0.0/usr/local/lib 17154714 4 drwxrwxr-x 3 bikeorgil bikeorgil 4096 May 6 02:26 /var/tmp/pear-build-bikeorgil/install-uploadprogress-1.0.0/usr/local/lib/php 17154715 4 drwxrwxr-x 3 bikeorgil bikeorgil 4096 May 6 02:26 /var/tmp/pear-build-bikeorgil/install-uploadprogress-1.0.0/usr/local/lib/php/extensions 17154716 4 drwxrwxr-x 2 bikeorgil bikeorgil 4096 May 6 02:26 /var/tmp/pear-build-bikeorgil/install-uploadprogress-1.0.0/usr/local/lib/php/extensions/no-debug-zts-20060613 49372 40 -rwxr-xr-x 1 bikeorgil bikeorgil 38851 May 6 02:26 /var/tmp/pear-build-bikeorgil/install-uploadprogress-1.0.0/usr/local/lib/php/extensions/no-debug-zts-20060613/uploadprogress.so Build process completed successfully Installing '/usr/local/lib/php/extensions/no-debug-zts-20060613/uploadprogress.so' ERROR: failed to mkdir /usr/local/lib/php/extensions/no-debug-zts-20060613 -- View this message in context: http://www.nabble.com/Installing-uploadprogress-on-shared-server-tp23437031p23437031.html Sent from the Pecl - Dev mailing list archive at Nabble.com.

« previous php.pecl.dev (#6383) next »