Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Hi druuna. I am running out of ideas too! I also thought bathory's idea could be a winner, especially when I saw he is a Slackware user.
Yes, still exactly the same error. I have tried to use the --with-mysql switch some years back and had no problems although at the time I knew nothing about sql. I am wishing to start using it now as I am using MySQL for some other web application databases, so it makes sense to use it for Pure-FTPd also.
I can not remove the old puredb just yet as they are currently in use. For the same reason I have not tried a reboot yet. Could the problem really be that the server is currently in use? I would hope not. If so, feel free to call me names ;-)
@druuna
I'm running pure-ftp 64bit, without mysql support on my Slackware64 with no problems.
@OP
Just for testing, I've installed mysql-5.1.46-x86_64 Slackware package and recompiled pure-ftp with mysql and it was compiled just fine. So I guess it's something with Fedora mysql libraries (or it's SELinux?)
Another thing to try is to add /usr/lib64/mysql (don't mix 32 and 64 bit libraries) in /etc/ld.so.conf, run ldconfig and retry.
So, I have removed any 32-bit MySQL bits, checked that /usr/lib64/mysql exists in /etc/ld.so.conf.d/mysql-x86_64.conf, re-run /sbin/ldconfig and tried again. Still the same error. I have SELinux set to permissive at the moment as it interferes with another service I run. It will be reactivated later but for now it is 'switched off'. It is starting to look like a Fedora thing.
Thank you all for the suggestions, I really appreciate it.
Doh, I'm also buffled!
As a last resort, you can download the mysql-5.1.50-linux-x86_64-glibc23 binary from www.mysql.com, extract it in some place like /opt and rename the directory /opt/mysql-5.1.50-linux-x86_64-glibc23 to /opt/mysql
Then use /opt/mysql/lib in /etc/ld.so.conf and LDFLAGS and /opt/mysql/include in CPPFLAGS and try again. I've also tested here (after removing the mysql Slackware package) and it also compiled fine.
I am not desperate for it to work so I don't think I will download from mysql.com and do a manual install. When my users have finished using the ftp I will try a reboot and some other things. I am sure in 6 months time or so it will be fixed by someone out there.
I am not desperate for it to work so I don't think I will download from mysql.com and do a manual install.
Fair enough.
Anyway I've done a little more research on this, because it looks very strange, and I've find out that the pure-ftpd configure script looks for mysql_config, so make sure it exists and it's in your PATH:
I am not desperate for it to work so I don't think I will download from mysql.com and do a manual install.
Understandable. Do make sure you remove mysql first (both 32 and 64 bits versions)and also remove the links you created (see posts #10/11) before you start installing mysql from source.
A manual install does have another possible advantage: You can decide which switches/options to use (just as you want with pure-ftpd).
Quote:
Thanks again for all your help
Well, we did try, too bad we could not come up with a solution.....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.