Comments (5)
@7homasSutter Found a solution: sudo apt install libmariadbd-dev (embedded DB libraries)
But got another error, now I am assuming because the /usr/include/mariadb/server/private is still missing
I will update on solution!!!
from lib_mysqludf_sys.
@eugeneYWang You might need to edit Makefile
and replace:
gcc -Wall -I/usr/include/mysql -I. -shared lib_mysqludf_sys.c -o $(LIBDIR)/lib_mysqludf_sys.so
by
gcc -Wall -I/usr/include/mysql/server -I. -shared lib_mysqludf_sys.c -o $(LIBDIR)/lib_mysqludf_sys.so
from lib_mysqludf_sys.
trying to compile lib_mysqludf_sys.c with mariadb-server 10.3 you need
gcc -Wall -I/usr/include/mariadb/server/ -I. -shared lib_mysqludf_sys.c -o /usr/lib/x86_64-linux-gnu/mariadb19/plugin/lib_mysqludf_sys.so
otherwise you get
root@debian:~/lib_mysqludf_sys# gcc -Wall -I/usr/include/mysql/server -I. -shared lib_mysqludf_sys.c -o $(LIBDIR)/lib_mysqludf_sys.so bash: LIBDIR: command not found lib_mysqludf_sys.c:40:10: fatal error: my_global.h: No such file or directory #include ^~~~~~~~~~~~~ compilation terminated.
from lib_mysqludf_sys.
Does anyone has a working Makefile example for MariaDB 10.6.7?
On Kali MariaDb does not have the folder (/usr/include/mariadb/server/
) and the build fails with the following error:
gcc -fPIC -m64 -Wall -I/usr/include/mariadb/server/ -I/usr/include/mariadb/ -I/usr/include/mariadb/mysql/ -I. -shared ./lib_mysqludf_sys.c -o ./lib_mysqludf_sys.so
In file included from ./lib_mysqludf_sys.c:40:
/usr/include/mariadb/my_global.h:3:2: warning: #warning This file should not be included by clients, include only <mysql.h> [-Wcpp]
3 | #warning This file should not be included by clients, include only <mysql.h>
| ^~~~~~~
In file included from ./lib_mysqludf_sys.c:41:
/usr/include/mariadb/my_sys.h:3:2: warning: #warning This file should not be included by clients, include only <mysql.h> [-Wcpp]
3 | #warning This file should not be included by clients, include only <mysql.h>
| ^~~~~~~
./lib_mysqludf_sys.c:44:10: fatal error: m_ctype.h: No such file or directory
44 | #include <m_ctype.h>
| ^~~~~~~~~~~
compilation terminated.
make: *** [Makefile:4: install] Error 1
Does anyone know what my installation is missing or how to reference the missing m_ctype.h
file?
from lib_mysqludf_sys.
Any updates on this? Still not working for me.
from lib_mysqludf_sys.
Related Issues (20)
- sql file run in phpmyadmin run time error
- Cant't import to phpmyadmin HOT 1
- No paths allowed for shared library (At installation) HOT 2
- 64bits recompilation fails. Error with header files HOT 5
- how to install on mac HOT 1
- Can't install on Ubuntu 16.04.5 LTS "Unable to locate package libmysqlclient15-dev" HOT 2
- Where should I place this library in my Computer ? can anyone give me a path for that ?
- Out of memory when creating a procedure
- Provide install instruction for mysql Docker container HOT 1
- Need root to install HOT 1
- ERROR 1125 (HY000) at line 29: Function 'lib_mysqludf_sys_info' already exists HOT 2
- ERROR 1126 (HY000) at line 29: Can't open shared library 'lib_mysqludf_sys.so' (errno: 11 /usr/local/mysql/lib/plugin/lib_mysqludf_sys.so: wrong ELF class: ELFCLASS32) HOT 3
- fatal error: my_atomic.h: No such file or directory HOT 2
- Seems impossible to pass a variable from trigger to cmd
- not compatible with mysql 8.0 HOT 1
- Can't find symbol 'lib_mysqludf_sys_info' in library
- mysql crashed with mariadb 10.3 HOT 1
- sys_eval() not freeing memory and can cause crashes
- Not possible to compile on Ubuntu, code doesn't work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lib_mysqludf_sys.