Page 1 of 1

install pecl packages [Xampp 1.6.8a on Ubunt 8.10]

PostPosted: 23. November 2008 15:58
by dGo
hi,

I was wondering if somebody can tell me how I can install pecl packages when using Xampp.

when running:
Code: Select all
sudo /opt/lampp/bin/pecl install channel://pecl.php.net/docblock-0.2.0


I get the following error message:
Code: Select all
downloading docblock-0.2.0.tgz ...
Starting to download docblock-0.2.0.tgz (28,197 bytes)
.........done: 28,197 bytes
9 source files, building
running: phpize
grep: /opt/lampp/include/php/main/php.h: No such file or directory
grep: /opt/lampp/include/php/Zend/zend_modules.h: No such file or directory
grep: /opt/lampp/include/php/Zend/zend_extensions.h: No such file or directory
Configuring for:
PHP Api Version:
Zend Module Api No:
Zend Extension Api No:
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF
environment variable is set correctly and then rerun this script.

ERROR: `phpize' failed


does anybody have a clue ?

thanks a lot...
dGo[/code]

no one ?

PostPosted: 27. November 2008 08:52
by dGo
hi,

me again,
does nobady have a clue about this ?

thanks,
dGo

PostPosted: 27. November 2008 09:01
by Wiedmann
grep: /opt/lampp/include/php/main/php.h: No such file or directory

You need the XAMPP devel package.

Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF
environment variable is set correctly and then rerun this script.

"autoconf" is part of the GNU build system. Normaly you can install this with the package system from your Linux distribution.

PostPosted: 27. November 2008 09:15
by dGo
hi Wiedman,

thanks mate !
I'll try by installing the XAMPP devel package and see how that works.
I'll also have a look at my PHP configuration because $PHP_AUTOCONF should be ok.

thanks a lot !!
dGo

PostPosted: 29. November 2008 15:22
by dGo
hi Wiedman (or other person with a good hearth)...

me again.
I did as you told me and installed AUTO_CONF. I also installed the Xampp devel package.

now, when launching the command below from within the '/opt/lampp/bin' directory

Code: Select all
sudo ./pecl install channel://pecl.php.net/docblock-0.2.0


the first time I got:

Code: Select all
downloading docblock-0.2.0.tgz ...
Starting to download docblock-0.2.0.tgz (28,197 bytes)
.........done: 28,197 bytes
9 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-root/docblock-0.2.0
running: /tmp/pear/temp/docblock/configure
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/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 ISO C89... 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... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /opt/lampp
checking for PHP includes... -I/opt/lampp/include/php -I/opt/lampp/include/php/main -I/opt/lampp/include/php/TSRM -I/opt/lampp/include/php/Zend -I/opt/lampp/include/php/ext -I/opt/lampp/include/php/ext/date/lib
checking for PHP extension directory... /opt/lampp/lib/php/extensions/no-debug-non-zts-20060613
checking for PHP installed headers prefix... /opt/lampp/include/php
checking for re2c... re2c
checking for re2c version... 0.13.3 (ok)
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking whether to enable docblock tokenizer support... 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 -m elf_x86_64) 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
ERROR: `/tmp/pear/temp/docblock/configure' failed


and when retrying after that, I got:

Code: Select all
downloading docblock-0.2.0.tgz ...
Starting to download docblock-0.2.0.tgz (28,197 bytes)
.........done: 28,197 bytes
9 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
ERROR: `phpize' faile


I really don't know what I should or can do now...

Any help... somebody ?

Thanks a lot in advance,
dGo[/code]