LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-11-2010, 04:26 PM   #16
mengoshmink
Member
 
Registered: Nov 2003
Distribution: Fedora
Posts: 42

Original Poster
Rep: Reputation: 3

Thank you for your reply.
Okay, I have tried the following.
ls /usr/include/mysql/
and mysql.h was in there.

As root:
LDFLAGS=-L/usr/lib/mysql CPPFLAGS=-I/usr/include/mysql

Removed the pure-ftpd-1.0.29 folder, re-extracted the .tar.bz2 and ran:
./configure --with-mysql

but still the same error.
I am glad people are still coming up with ideas
 
Old 09-11-2010, 04:28 PM   #17
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Just tuning bathory's reply: LDFLAGS=-L/usr/lib/mysql CPPFLAGS=-I/usr/include/mysql ./configure --with-mysql ... (removed the 64 bit part).
 
Old 09-11-2010, 04:28 PM   #18
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You should run all in one command, as written in my previous post:
Code:
LDFLAGS=-L/usr/lib64/mysql CPPFLAGS=-I/usr/include/mysql ./configure --with-mysql ...
Don't split it in 2 parts
 
Old 09-11-2010, 04:31 PM   #19
mengoshmink
Member
 
Registered: Nov 2003
Distribution: Fedora
Posts: 42

Original Poster
Rep: Reputation: 3
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 ;-)
 
Old 09-11-2010, 04:33 PM   #20
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Have a look at bathory's reply (#18)
 
Old 09-11-2010, 04:35 PM   #21
mengoshmink
Member
 
Registered: Nov 2003
Distribution: Fedora
Posts: 42

Original Poster
Rep: Reputation: 3
Oh right. My bad!
However, just tried it and nope, still not working, still the same error message. It is like we have changed nothing.
 
Old 09-11-2010, 04:38 PM   #22
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
And did you also try "my" version (post #17)?
 
Old 09-11-2010, 04:39 PM   #23
mengoshmink
Member
 
Registered: Nov 2003
Distribution: Fedora
Posts: 42

Original Poster
Rep: Reputation: 3
Sure did.
 
Old 09-11-2010, 05:20 PM   #24
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
@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.
 
Old 09-11-2010, 05:38 PM   #25
mengoshmink
Member
 
Registered: Nov 2003
Distribution: Fedora
Posts: 42

Original Poster
Rep: Reputation: 3
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.
 
Old 09-11-2010, 05:51 PM   #26
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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.
 
Old 09-11-2010, 06:27 PM   #27
mengoshmink
Member
 
Registered: Nov 2003
Distribution: Fedora
Posts: 42

Original Poster
Rep: Reputation: 3
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.

Thanks again for all your help
 
Old 09-12-2010, 04:14 AM   #28
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
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:
Code:
export PATH=$PATH:/path/to/mysql_config
Regards
 
Old 09-12-2010, 04:29 AM   #29
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
Originally Posted by mengoshmink View Post
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.....
 
Old 09-12-2010, 04:44 AM   #30
mengoshmink
Member
 
Registered: Nov 2003
Distribution: Fedora
Posts: 42

Original Poster
Rep: Reputation: 3
Morning guys,

I have tried exporting the path to mysql_config (after checking that it did exist and where it existed on here) but again it didn't work.

Thanks for reminding me about the symlinks I made in post 10.

Back when I was a Slackware user I did install MySQL from source. I suspect one day I will try it and see what happens.

I really appreciate the help as this the most help people have given me on a Linux forum before :-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error Installing pure-ftpd-mysql crzyone9584 Ubuntu 1 07-01-2009 05:06 AM
pure-ftpd-mysql activates pure-ftpd zvikamer Linux - Software 2 03-01-2008 12:11 PM
Pure-Ftpd and MySql and Fedora core 5 olva Fedora 1 04-30-2006 07:45 AM
Pure-ftpd-mysql + Sarge nestor10 Linux - Software 1 01-26-2005 08:06 AM
pure-ftpd and mysql dominant Linux - General 1 01-11-2005 02:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration