1

I have two versions of PHP installed on the system, one in /opt/local (API=20090626) and another in /opt/php54 (API=20100525). I'm trying to compile an extension for the /opt/php54 version, so I run /opt/php54/bin/phpize in the extension directory, then ./configure --enable-<ext> && make && sudo make install. The problem though is that the compiled extension is not for API=20100525, but rather for API=20090626 (the one in /opt/local). Even when running make install, it tries to install it in /opt/local instead of /opt/php54.

What am I doing wrong?

1 Answer 1

2

Add --with-php-config=/opt/php54/bin/php-config to the configure string.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.