PHP 5.3 + Zend Opcache & PHP 5.2

rytek

Verified User
Joined
Aug 28, 2011
Messages
9
Hi,

Not so long ago I've installed PHP 5.3 next to the 5.2 using informations in this thread: http://forum.directadmin.com/showthread.php?t=35175

I need to install opcache extension for 5.3, but pecl is stubborn and is trying to install version for php 5.2.
I've tried to force usage of new php files using these commands:
Code:
pear config-set php_ini /usr/local/etc/php6/cgi/php.ini
pecl config-set php_bin /usr/local/etc/php6/bin/php
pear config-set php_suffix 6
then i've created symlinks to php-ize and php-config.

But i can't force pecl to install proper version.
This tool is showing correct version of extension:
Code:
PHP Api Version:                  20090626
Zend Module Api No:                20090626
but is showing warnings at the end:
Code:
(...)
Libraries have been installed in:
   /tmp/pear/temp/pear-build-rootaGdqPP/zendopcache-7.0.3/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="/tmp/pear/temp/pear-build-rootaGdqPP/install-zendopcache-7.0.3" install
Installing shared extensions:     /tmp/pear/temp/pear-build-rootaGdqPP/install-zendopcache-7.0.3/usr/local/lib/php/extensions/no-debug-non-zts-20060613/
running: find "/tmp/pear/temp/pear-build-rootaGdqPP/install-zendopcache-7.0.3" | xargs ls -dils
56099701   4 drwxr-xr-x 3 root root   4096 Apr 14 19:48 /tmp/pear/temp/pear-build-rootaGdqPP/install-zendopcache-7.0.3
56099754   4 drwxr-xr-x 3 root root   4096 Apr 14 19:48 /tmp/pear/temp/pear-build-rootaGdqPP/install-zendopcache-7.0.3/usr
56099755   4 drwxr-xr-x 3 root root   4096 Apr 14 19:48 /tmp/pear/temp/pear-build-rootaGdqPP/install-zendopcache-7.0.3/usr/local
56099756   4 drwxr-xr-x 3 root root   4096 Apr 14 19:48 /tmp/pear/temp/pear-build-rootaGdqPP/install-zendopcache-7.0.3/usr/local/lib
56099757   4 drwxr-xr-x 3 root root   4096 Apr 14 19:48 /tmp/pear/temp/pear-build-rootaGdqPP/install-zendopcache-7.0.3/usr/local/lib/php
56099758   4 drwxr-xr-x 3 root root   4096 Apr 14 19:48 /tmp/pear/temp/pear-build-rootaGdqPP/install-zendopcache-7.0.3/usr/local/lib/php/extensions
56099759   4 drwxr-xr-x 2 root root   4096 Apr 14 19:48 /tmp/pear/temp/pear-build-rootaGdqPP/install-zendopcache-7.0.3/usr/local/lib/php/extensions/no-debug-non-zts-20060613
56099753 412 -rwxr-xr-x 1 root root 418931 Apr 14 19:48 /tmp/pear/temp/pear-build-rootaGdqPP/install-zendopcache-7.0.3/usr/local/lib/php/extensions/no-debug-non-zts-20060613/opcache.so

Warning: opendir(/tmp/pear/temp/pear-build-rootaGdqPP/install-zendopcache-7.0.3//usr/local/php5): failed to open dir: No such file or directory in PEAR/Builder.php on line 188

Warning: opendir(/tmp/pear/temp/pear-build-rootaGdqPP/install-zendopcache-7.0.3//usr/local/php5): failed to open dir: No such file or directory in /usr/local/lib/php/PEAR/Builder.php on line 188

Build process completed successfully
install ok: channel://pecl.php.net/zendopcache-7.0.3
and doesn't create opcache.so anywhere (tried to find / -name opcache - no results).

Any idea?
Thanks for help.

Edit:
Oh, and another thing that may help:
Code:
WARNING: php_bin /usr/local/etc/php6/bin/php appears to have a suffix 6/bin/php, but config variable php_suffix does not match
Edit2: got rid of this warning by creating symlink without "php" in name.
Edit3: phpize6 -v (symlink to phpize from 5.3) shows:
Code:
phpize6 -v
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
-----------------------------------------------------------
OK, my bad, the path to php_bin is:
Code:
/usr/local/php6/bin/php
not the
Code:
/usr/local/etc/php6/bin/php

meh, probably too much work today...
 
Last edited:
Back
Top