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

Makefile compiles to wrong lib directrory #13

Open
hevisko opened this issue Apr 20, 2016 · 1 comment
Open

Makefile compiles to wrong lib directrory #13

hevisko opened this issue Apr 20, 2016 · 1 comment

Comments

@hevisko
Copy link

hevisko commented Apr 20, 2016

ERROR 1126 (HY000) at line 29: Can't open shared library 'lib_mysqludf_sys.so' (errno: 0 /usr/lib/mysql/plugin/lib_mysqludf_sys.so: cannot open shared object file: No such file or directory)

@uuip
Copy link

uuip commented Sep 12, 2016

vim Makefile

gcc -fPIC -Wall -I/usr/include/mysql -I. -shared lib_mysqludf_sys.c -o /usr/lib/mysql/plugin/lib_mysqludf_sys.so

-o /usr/lib/mysql
-o /usr/lib/mysql your mysql's path

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