Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php7 make fail #4

Closed
greggreenhaw opened this issue Mar 18, 2016 · 11 comments
Closed

php7 make fail #4

greggreenhaw opened this issue Mar 18, 2016 · 11 comments

Comments

@greggreenhaw
Copy link

Makefile:194: recipe for target 'php_memcached.lo' failed
make: *** [php_memcached.lo] Error 1

@QuChen88
Copy link
Contributor

I haven't come across this error previously. Can you please post the exact steps to reproduce this error? i.e. which AMI in EC2 did you launch, and what commands are executed after launching the instance to arrive at the error.

@greggreenhaw
Copy link
Author

In debian 8, I cloned the php7 branch ran phpize and configured fine without error then on make I got the error. It was confirmed by AWS support as well in ticket 1689381041.

@QuChen88
Copy link
Contributor

I just tried to compile on Debian 8 and realized that you will encounter this error if you try to compile the client with the "master" code branch of the package which is intended for PHP 5.x. I switched over to "php7" code branch and it compiled successfully.

@greggreenhaw
Copy link
Author

i did a git clone -b php7 wouldn't that get the right branch? Can you share a .so file?

@QuChen88
Copy link
Contributor

I did

git clone https://github.com/awslabs/aws-elasticache-cluster-client-memcached-for-php.git
cd aws-elasticache-cluster-client-memcached-for-php
git checkout php7

You can also do "git config -l" to see which remote upstream you are tracking on your local git branch.

Let me know if you see any other issues compiling.

@greggreenhaw
Copy link
Author

root@sample:/usr/local/src/aws-elasticache-cluster-client-memcached-for-php# git checkout php7
Already on 'php7'
Your branch is up-to-date with 'origin/php7'.

@greggreenhaw
Copy link
Author

phpize && ./configure --with-libmemcached-dir=/usr/ --disable-memcached-sasl --enable-memcached-json && make

@QuChen88
Copy link
Contributor

You need to compile and reference our custom libmemcached rather than referencing the libmemcached that is installed in the OS via apt-get.

I attached my compiled memcached.so artifact here from my compilation earlier today. You can unzip it and try to link this extension in your PHP7 installation and see if this works for you or not. It worked on my Debian 8 machine.

@QuChen88 QuChen88 mentioned this issue Mar 22, 2016
@greggreenhaw
Copy link
Author

Copying the .so you sent worked

@QuChen88
Copy link
Contributor

Sounds good.

@QuChen88
Copy link
Contributor

Removing the zip file here in favour of the updated README instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants