-
Notifications
You must be signed in to change notification settings - Fork 5
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
compile on debian 7? #6
Comments
Hi! Thanks for your interest. I don't have a debian nearby so I can't test it. But are you sure your compile line is ok? you wrote /usr/local/mysql/include but you said it's in the include/mysql dir. So I guess it should be g++ -Wall -I include -I /usr/local/include/mysql -shared -fPIC -DMYSQL_DYNAMIC_PLUGIN -o mysqlv8udfs.so mysqlv8udfs.cpp /usr/lib/libv8.so /usr/local/mysql/lib/libmysqlclient.so ? |
Thanks for replying. No I'm not sure - but sorry, I wan't clear. I'll just paste the lines I tried: federico@this: In the first case it doesn't find mysql.h, in the second case it can't find services.h. |
I think the first message indicates the include path is just wrong. I bet if you do ls: on that path, you'll get: "cannot access /usr/local/mysql/include: No such file or directory". The second path looks like it does contain at least plugin.h. That apparently contains an include for mysql/services.h, but that isn't there. How did you install mariadb? Perhaps there is a -dev package you can install? If that fails, try installing the dev pacakge for mysql and see if you can compile. Please let me know what you find. |
Sorry for the delay and thanks for helping. |
Hi Santec, can you get a Mariadb.tar.gz, unpack that, and use the include directory from there? You don't need to actually run from there, you can still use the one installed from the package manager. I just suspect the package manager messes up the location of the include files. |
Sorry for delay, I don't use GitHub when I'm too busy. |
I tried to adapt your command to my system (debian 7 with MariaDB 10 generic binaries):
g++ -Wall -I include -I /usr/local/mysql/include -shared -fPIC -DMYSQL_DYNAMIC_PLUGIN -o mysqlv8udfs.so mysqlv8udfs.cpp /usr/lib/libv8.so /usr/local/mysql/lib/libmysqlclient.so
But it can't find mysql.h, because it's in the include/mysql subdir. So I adjusted the include path, but now it says:
mysqlv8udfs.cpp:7:19: fatal error: mysql.h: File o directory non esistente
compilation terminated.
I can't find a working command for compiling, don't know if it's a bug or just my stupidity.
The text was updated successfully, but these errors were encountered: