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

Unable to compile php-extension in Ubuntu 12.10 #7

Open
sfernandez opened this issue Jul 25, 2013 · 1 comment
Open

Unable to compile php-extension in Ubuntu 12.10 #7

sfernandez opened this issue Jul 25, 2013 · 1 comment

Comments

@sfernandez
Copy link

Once properly compiled and installed libketama (installed in /usr/lib), I'm unable to compile the php extension.

steps:

  • phpize
  • configure
    and the following error will appear:
    checking for ketama_roll in -lketama... no
@sfernandez
Copy link
Author

Ok the solution is the following;

  • change the following line of libketama Makefile build target:
    gcc -shared -Wl,-soname,libketama.so.1 -o libketama.so.1 -lm ketama.o md5.o ---> gcc -shared
    -Wl,-soname,libketama.so.1 -o libketama.so.1 ketama.o md5.o -lm

in php_ketama execute ./configure --with-ketama instead of ./configure

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

1 participant