Error when trying to compile cbmysql for web-meetme
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
CFLAGS+=$(shell if [ -d /usr/local/mysql/include ]; then echo "-I/usr/local/mysql/include"; fi)
CFLAGS+=$(shell if [ -d /usr/include/mysql ]; then echo "-I/usr/include/mysql"; fi)
CFLAGS+=$(shell if [ -d /usr/local/include/mysql ]; then echo "-I/usr/local/include/mysql"; fi)
CFLAGS+=$(shell if [ -d /opt/mysql/include/mysql ]; then echo "-I/opt/mysql/include/mysql"; fi)
MLFLAGS=
MLFLAGS+=$(shell if [ -d /usr/lib/mysql ]; then echo "-L/usr/lib/mysql"; fi)
MLFLAGS+=$(shell if [ -d /usr/lib64/mysql ]; then echo "-L/usr/lib64/mysql"; fi)
MLFLAGS+=$(shell if [ -d /usr/local/mysql/lib ]; then echo "-L/usr/local/mysql/lib"; fi)
MLFLAGS+=$(shell if [ -d /usr/local/lib/mysql ]; then echo "-L/usr/local/lib/mysql"; fi)
MLFLAGS+=$(shell if [ -d /opt/mysql/lib/mysql ]; then echo "-L/opt/mysql/lib/mysql"; fi)
Doesn't this mean that there is looked for 64bit or 32bit libraries ??
Could it be that it first locates the 32bit-directory and therefore can not compile with a 64bit linker ??
I have both the libraries installed, but the lib64 is never used...
If this is the problem, can I then remove the 32bit-libs ?? Or would it be saver to create a symlink ?
Is it possible I will have problems with other programs on my system ?
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,483
Rep:
Quote:
Is it possible I will have problems with other programs on my system ?
I don't think so, but you will find out.
Quote:
2) Could it be that it first locates the 32bit-directory and
therefore can not compile with a 64bit linker ??
I have both the libraries installed, but the lib64 is never used..
1) If this is the problem, can I then remove the 32bit-libs ??
1) Not using the i386 ' -devel ' libraries : You can remove
mysql-devel.i386 , is used for nothing but compiling.
And if you have other "lib<name>-devel.i386" : Remove them.
Can always be brought back, if ever again required.
2) After the '-devel.i386' are removed : Please do the command :
make distclean
.. and check that Makefile and config.status are deleted.
./configure will then create a new Makefile, hopefully
with the right libraries included.
.....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.