OS - Centos 6.3
PHP 5.6.1
Did the following:
sudo yum groupinstall "Development Tools"
sudo yum install openssl-devel
sudo yum install lua-devel
Dowloaded the zip from github.
cd src/aerospike
./build.sh
make test
The output is “You may have found a problem in PHP…”
Output of /var/log/messages
Not dumping repeating crash in /usr/local/bin.php
segfault at 30 ip 00007f88ad4094e3 sp 00007fff591659f0 error 4 in aerospike.so
What could be the reason for this error.
Thanks
Hey Pushpesh. Did you install the module after calling ./build.sh
and before running make test
?
At the end of the build you get an instruction block that looks something like this (paths customized to your environment):
----------------------------------------------------------------------
⇒ ⇒ ⇒ Installing the Aerospike PHP Extension ⇐ ⇐ ⇐
To install the extension run inside src/aerospike:
sudo make install
⇒ ⇒ ⇒ Configure PHP to Load the Extension ⇐ ⇐ ⇐
Create an aerospike.ini file at /usr/local/etc/php/5.6/conf.d with the directive:
extension=aerospike.so
aerospike.udf.lua_system_path=/usr/local/aerospike/client-php/sys-lua
aerospike.udf.lua_user_path=/usr/local/aerospike/client-php/usr-lua
⇒ ⇒ ⇒ Verify the Extension ⇐ ⇐ ⇐
php -m | grep aerospike
Please do a sudo make install
and make sure your config file is set. If you have already built a module on that box your interpreter is probably using the older one against the test, rather than the newer build.
Also, if you’ve built on this box already, please remove any older C client SDK rm -rf src/aerospike-client-c
. The release may rely on a new version of the C client (see the release notes in the GitHub repo’s Releases) than the one the build script got on a previous run.
1 Like