justRadojko
justRadojko

Reputation: 257

Installing mysqludf library on CentOS x64

I've been googling a lot about the problem that I have trying to install MySQL library.

I've downloaded library files from https://github.com/mysqludf/lib_mysqludf_sys and placed it on digitalocean server (running on CentOS x64) on location: /usr/lib64/mysql/plugin

Library's Makefile was altered so now it looks like this:

install:
    gcc -m64 -fPIC -Wall -I/usr/include/mysql -I. -shared lib_mysqludf_sys.c -o     /usr/lib64/mysql/plugin/lib_mysqludf_sys.so -L/usr/lib/x86_64-linux-gnu/libstdc++.so.6

When I try to install the library from terminal using following command:

mysql -u root -p mysql < /usr/lib64/mysql/plugin/lib_mysqludf_sys.sql

I get this error:

ERROR 1126 (HY000) at line 26: Can't open shared library 'lib_mysqludf_sys.so' (errno: 22 /usr/lib64/mysql/plugin/lib_mysqludf_sys.so: wrong ELF class: ELFCLASS32)

Googling this error I've found this potential solution but it didn't help. Could anyone help me solve this issue?

Upvotes: 1

Views: 1889

Answers (0)

Related Questions