Re: bcompiler installation problems

From: Date: Tue, 12 Nov 2002 15:10:00 +0000
Subject: Re: bcompiler installation problems
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-10724@lists.php.net to get a copy of this message
I have just deleted /usr/local/include/php and linked it to /etc/include/php this seems to help with compiling, however there is an error after the compilation .... installed: /etc/lib/php/docs/bcompiler/examples/bcompiler_compile.php 7 source files, building building in /tmp/tmpO2hAFY/bcompiler-0.4 running: phpize You should update your `aclocal.m4' by running aclocal. building in /var/tmp/pear-build-root/bcompiler-0.4 running: /tmp/tmpO2hAFY/bcompiler-0.4/configure creating cache ./config.cache running: make /bin/sh /var/tmp/pear-build-root/bcompiler-0.4/libtool --mode=compile gcc -I. -I/tmp/tmpO2hAFY/bcompiler-0.4 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/bcompiler-0.4/include -I/var/tmp/pear-build-root/bcompiler-0.4/main -I/tmp/tmpO2hAFY/bcompiler-0.4 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend
-I/usr/local/include/php/TSRM  -DHAVE_CONFIG_H    -prefer-pic -c /tmp/tmpO2hAFY/bcompiler-0.4/bcompiler.c -o bcompiler.lo
bcompiler.so copied to /tmp/tmpO2hAFY/bcompiler-0.4/bcompiler.so installing bcompiler.so + cp /tmp/tmpO2hAFY/bcompiler-0.4/bcompiler.so ext_dir Fatal error: Call to a member function on a non-object in /etc/lib/php/PEAR/Installer.php on line 572 At 14:31 12/11/2002 +0000, Michael Dransfield wrote:
Configuration: ============== +----------------------+-----------------+-------------------------------------+
| PEAR executables     | bin_dir         | /etc/bin                            |
| directory            |                 |                                     |
| PEAR documentation   | doc_dir         | /etc/lib/php/docs                   |
| directory            |                 |                                     |
| PHP extension        | ext_dir         | /etc/lib/php/extensions/no-debug-no |
| directory            |                 | n-zts-20020429                      |
| PEAR directory       | php_dir         | /etc/lib/php                        |
| PEAR Installer cache | cache_dir       | /tmp/pear/cache                     |
| directory            |                 |                                     |
| PEAR data directory  | data_dir        | /etc/lib/php/data                   |
| PEAR test directory  | test_dir        | /etc/lib/php/tests                  |
| Cache TimeToLive     | cache_ttl       | <not set>                           |
| Preferred Package    | preferred_state | stable                              |
| State                |                 |                                     |
| Unix file mask       | umask           | 18                                  |
| Debug Log Level      | verbose         | 1                                   |
| HTTP Proxy Server    | http_proxy      | <not set>                           |
| Address              |                 |                                     |
| PEAR server          | master_server   | pear.php.net                        |
| PEAR password (for   | password        | ********                            |
| maintainers)         |                 |                                     |
| Signature Handling   | sig_bin         | /usr/bin/gpg                        |
| Program              |                 |                                     |
| Signature Key        | sig_keydir      | /etc/etc/pearkeys                   |
| Directory            |                 |                                     |
| Package Signature    | sig_type        | gpg                                 |
| Type                 |                 |                                     |
| PEAR username (for   | username        | mikedransfield                      |
| maintainers)         |                 |                                     |
+----------------------+-----------------+-------------------------------------+ [root@ns /root]# pear config-set verbose 5 [root@ns /root]# pear uninstall bcompiler deleted file /etc/lib/php/docs/bcompiler/examples/bcompiler.php deleted file /etc/lib/php/docs/bcompiler/examples/bcompiler_read.php deleted file /etc/lib/php/docs/bcompiler/examples/bcompiler_parse.php deleted file /etc/lib/php/docs/bcompiler/examples/bcompiler_compile.php + rmdir /etc/lib/php/docs/bcompiler/examples/bcompiler_compile.php uninstall ok: bcompiler [root@ns /root]# pear install bcompiler + tmp dir created at /tmp/tmpe4j1wu + create dir /etc/lib/php/docs/bcompiler/examples + mkdir /etc/lib/php/docs/bcompiler/examples + cp /tmp/tmpe4j1wu/bcompiler-0.4/examples/bcompiler.php /etc/lib/php/docs/bcompiler/examples/bcompiler.php md5sum ok: /etc/lib/php/docs/bcompiler/examples/bcompiler.php installed: /etc/lib/php/docs/bcompiler/examples/bcompiler.php + cp /tmp/tmpe4j1wu/bcompiler-0.4/examples/bcompiler_read.php /etc/lib/php/docs/bcompiler/examples/bcompiler_read.php md5sum ok: /etc/lib/php/docs/bcompiler/examples/bcompiler_read.php installed: /etc/lib/php/docs/bcompiler/examples/bcompiler_read.php + cp /tmp/tmpe4j1wu/bcompiler-0.4/examples/bcompiler_parse.php /etc/lib/php/docs/bcompiler/examples/bcompiler_parse.php md5sum ok: /etc/lib/php/docs/bcompiler/examples/bcompiler_parse.php installed: /etc/lib/php/docs/bcompiler/examples/bcompiler_parse.php + cp /tmp/tmpe4j1wu/bcompiler-0.4/examples/bcompiler_compile.php /etc/lib/php/docs/bcompiler/examples/bcompiler_compile.php md5sum ok: /etc/lib/php/docs/bcompiler/examples/bcompiler_compile.php installed: /etc/lib/php/docs/bcompiler/examples/bcompiler_compile.php 7 source files, building building in /tmp/tmpe4j1wu/bcompiler-0.4 running: phpize You should update your `aclocal.m4' by running aclocal. building in /var/tmp/pear-build-root/bcompiler-0.4 running: /tmp/tmpe4j1wu/bcompiler-0.4/configure creating cache ./config.cache running: make /bin/sh /var/tmp/pear-build-root/bcompiler-0.4/libtool --mode=compile gcc -I. -I/tmp/tmpe4j1wu/bcompiler-0.4 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/bcompiler-0.4/include -I/var/tmp/pear-build-root/bcompiler-0.4/main -I/tmp/tmpe4j1wu/bcompiler-0.4 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend
-I/usr/local/include/php/TSRM  -DHAVE_CONFIG_H    -prefer-pic -c /tmp/tmpe4j1wu/bcompiler-0.4/bcompiler.c -o bcompiler.lo
install ok: bcompiler 0.4 Here you go :) - it seems to be interested in /usr/local/php, but my php is in /etc/php Mike At 09:36 12/11/2002 +0800, you wrote:
you may need to check you havent got any old phpize's etc. lying around.. try sending pear config-show and do pear config-set verbose 5 pear uninstall bcompiler pear install bcompiler and send the output .. Michael Dransfield wrote:
I have just upgraded to php-4.3.0pre2 and I am trying to get bcompiler installed (Red Hat Linux). I have tried pear install bcompiler, which seems to work. The problem I am having is I cannot seem to find (or load) bcompiler.so, the command seems to compile something, but the library is not where it should be. I have also tried extracting to ext/bcompiler, running phpize then ./buildconf, ./configure --with-bcompiler, this also seems to work but no .so file is generated. Last but not least i tried cd to bcompiler - then running phpize, ./configure;make install - this generates a stream of errors and fails to compile.
and these errors are..... :)
I have also tried using the latest cvs checkout. Regards Mike
-- PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.pear.dev (#10724) next »