[PHP] Unable to load dynamic library (solved)
Mon, 01/09/2012 - 12:02
Hi, I'm trying to use the PHP SDK... executing the following steps I get a "Unable to load dynamic library" error:
1) # wget http://sdk-snapshots.couchbase.com/latestbuilds/php-couchbase-memcached_...
2) # tar xvzf php-couchbase-memcached_centos_5.2_x86_64.tar.gz
3) # mv php-couchbase-memcached /opt
4) # nano /etc/php.ini
extension=/opt/php-couchbase-memcached/memcached.so
5) # php -i | grep memcached
PHP Warning: PHP Startup: Unable to load dynamic library '/opt/php-couchbase-memcached/memcached.so' - /opt/php-couchbase-memcached/memcached.so: undefined symbol: memcached_touch in Unknown on line 0 PHP Warning: Unknown: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Buenos_Aires' for 'ART/-3.0/no DST' instead in Unknown on line 0
INFO:
# uname -a
Linux warp-redhat64-devel 2.6.32-220.2.1.el6.x86_64 #1 SMP Tue Dec 13 16:21:34 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
Is there something missing?
thanks.
Thu, 01/12/2012 - 05:37
Hi, thx for the answer.
Now It is working:
# php -i | grep memcached
PHP Warning: Unknown: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Buenos_Aires' for 'ART/-3.0/no DST' instead in Unknown on line 0 memcached memcached support => enabled libmemcached version => 0.47 memcached.compression_factor => 1.3 => 1.3 memcached.compression_threshold => 2000 => 2000 memcached.compression_type => fastlz => fastlz memcached.serializer => php => php memcached.sess_lock_wait => 150000 => 150000 memcached.sess_locking => 1 => 1 memcached.sess_prefix => memc.sess.key. => memc.sess.key. Registered save handlers => files user memcached
thanks!
I resolved this issue just last night. Can you try with the current download?
Sorry for the hassle.