LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-25-2018, 01:30 AM   #1
LAlx
LQ Newbie
 
Registered: May 2018
Posts: 7

Rep: Reputation: Disabled
Unhappy pureFTP souce code compilation ERROR


I m trying to do a source code installation for PureFTP in Centos 6.but getting a error :-
checking default TCP receive buffer size... 87380
checking for floor in -lm... yes
checking for gzclose in -lz... yes
checking for mysql_init... no
checking for mysql_init in -lmariadb... no
checking for mysql_init in -lmysqlclient... yes
checking whether mysql clients can run... no
configure: error: Your MySQL client libraries aren't properly installed
#######
the configure command i used is
./configure --prefix=/usr --localstatedir=/var --with-mysql=/usr/local/lib/libmysql --with-virtualchroot --with-everything
#########
pure-ftpd-1.0.46]# uname -a
Linux iqolsolutionsindia.com 2.6.32-431.el6.i686 #1 SMP Fri Nov 22 00:26:36 UTC 2013 i686 i686 i386 GNU/Linux

Last edited by LAlx; 05-25-2018 at 02:07 AM.
 
Old 05-25-2018, 02:36 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
the configure command i used is
./configure --prefix=/usr --localstatedir=/var --with-mysql=/usr/local/lib/libmysql --with-virtualchroot --with-everything
Are you sure about that mysql location? And why didn't you use your distro's mysql package?

Anyway, if you have installed your version of mysql under some specific path (e.g. /usr/local/mysql), you need to specify that path in the configure script, so it can find the mysql header files and shared libraries under it.

Regards
 
1 members found this post helpful.
Old 05-25-2018, 03:31 AM   #3
LAlx
LQ Newbie
 
Registered: May 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
ERROR PureFTPD-

Quote:
Originally Posted by bathory View Post
Are you sure about that mysql location? And why didn't you use your distro's mysql package?

Anyway, if you have installed your version of mysql under some specific path (e.g. /usr/local/mysql), you need to specify that path in the configure script, so it can find the mysql header files and shared libraries under it.

Regards


[root@iqolsolutionsindia pure-ftpd-1.0.46]# find / -name '*mysqlclient*'/usr/local/lib/libmysqlclient_r.so.18.0.0
/usr/local/lib/libmysqlclient.so.18.0.0
/usr/local/lib/libmysqlclient.a
/usr/local/lib/libmysqlclient.so
/usr/local/lib/libmysqlclient_r.a
/usr/local/lib/libmysqlclient.so.18
/usr/local/lib/libmysqlclient_r.so
/usr/local/lib/libmysqlclient_r.so.18



This is the installation path i have used ...I used the source code installation for MySQL.
I used the the configure command:-

cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/ \
-DMYSQL_DATADIR=/var/mysql/data \
-DMYSQL_UNIX_ADDR=/var/tmp/unix.sock -DSYSCONFDIR=/etc \
-DWITH_SSL=yes -DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DMYSQL_TCP_PORT=3306 -DINSTALL_LIBDIR=/usr/local/lib/mysql \
-DCURSES_LIBRARY=/usr/lib/libncurses.so \
-DCURSES_INCLUDE_PATH=/usr/include.
THanks for the reply....
 
Old 05-25-2018, 04:09 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
This is the installation path i have used ...I used the source code installation for MySQL.
I used the the configure command:-

cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/ \
<snip>
You still don't answer why you used mysql compiled from sources instead of your distro's mysql package?

As I told you above, except from the libraries location you need also the location of the mysql header files. So try the following:
Code:
LDFLAGS=-L/usr/local/lib CPPFLAGS=-I/usr/local/include ./configure --prefix=/usr --localstatedir=/var --with-mysql --with-virtualchroot --with-everything
Also note that there is a more recent version of pureftpd (1.0.47) available, if you're going to install it from sources.
 
Old 05-25-2018, 02:31 PM   #5
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,735

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Also, why are you looking for files named mysqlclient when the configure is looking for mysql? The find doesn't search for the same thing as the install wants.
Is there a directory /usr/local/lib/mysql as the -DINSTALL_LIBDIR parameter is looking for?
 
Old 05-25-2018, 11:27 PM   #6
LAlx
LQ Newbie
 
Registered: May 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
Unhappy

Quote:
Originally Posted by scasey View Post
Also, why are you looking for files named mysqlclient when the configure is looking for mysql? The find doesn't search for the same thing as the install wants.
Is there a directory /usr/local/lib/mysql as the -DINSTALL_LIBDIR parameter is looking for?
When i provide your method it gives me back this :---

checking whether you already have a standard SHA1 implementation... no
checking whether we are inside a Virtuozzo virtual host... no
checking default TCP send buffer size... 16384
checking default TCP receive buffer size... 87380
checking for floor in -lm... no
checking for gzclose in -lz... no
checking for mysql_init... no
checking for mysql_init in -lmariadb... no
checking for mysql_init in -lmysqlclient... no
configure: error: libmysqlclient is needed for MySQL support


So i did the find on this file ????????? libmysqlclient- its there in my /usr/local/lib/

Last edited by LAlx; 05-25-2018 at 11:31 PM. Reason: Errors!!
 
Old 05-25-2018, 11:30 PM   #7
LAlx
LQ Newbie
 
Registered: May 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bathory View Post
Are you sure about that mysql location? And why didn't you use your distro's mysql package?

Anyway, if you have installed your version of mysql under some specific path (e.g. /usr/local/mysql), you need to specify that path in the configure script, so it can find the mysql header files and shared libraries under it.

Regards
Sorry for the late reply ,sir, yaa well indeed sir .the header files are there in the /usr/local/lib/....
 
Old 05-26-2018, 02:11 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by LAlx View Post
Sorry for the late reply ,sir, yaa well indeed sir .the header files are there in the /usr/local/lib/....
I guess you mean /usr/local/include, not /usr/local/lib!!!
So, did you manage to compile pureftpd?
 
Old 05-26-2018, 02:20 AM   #9
LAlx
LQ Newbie
 
Registered: May 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
Unhappy

Quote:
Originally Posted by bathory View Post
I guess you mean /usr/local/include, not /usr/local/lib!!!
So, did you manage to compile pureftpd?
NO.Not yet sir......
/usr/local/include
[root@iqolsolutionsindia include]# ls
decimal.h my_dbug.h mysqld_ername.h plugin_ftparser.h
errmsg.h my_dir.h mysqld_error.h plugin.h
keycache.h my_getopt.h mysql_embed.h sql_common.h
m_ctype.h my_global.h mysql.h sql_state.h
m_string.h my_list.h mysql_time.h sslopt-case.h
my_alloc.h my_net.h mysql_version.h sslopt-longopts.h
my_attribute.h my_pthread.h my_sys.h sslopt-vars.h
my_compiler.h mysql my_xml.h typelib.h
my_config.h mysql_com.h plugin_audit.h
[root@iqolsolutionsindia include]# cd /usr/local/lib
/usr/local/lib
[root@iqolsolutionsindia lib]# ls
apr.exp libaprutil-1.la libmysqlclient_r.so.18.0.0
aprutil.exp libaprutil-1.so libmysqlclient.so
libapr-1.a libaprutil-1.so.0 libmysqlclient.so.18
libapr-1.la libaprutil-1.so.0.6.1 libmysqlclient.so.18.0.0
libapr-1.so libmysqlclient.a libmysqlservices.a
libapr-1.so.0 libmysqlclient_r.a pkgconfig
libapr-1.so.0.6.3 libmysqlclient_r.so plugin
libaprutil-1.a libmysqlclient_r.so.18
 
Old 05-26-2018, 02:50 AM   #10
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Why not? What is the error you get now?
Since everything related to mysql in under /usr/local, you may also try the following and see if it helps:
Code:
./configure --prefix=/usr --localstatedir=/var --with-virtualchroot --with-everything --with-mysql=/usr/local
 
Old 05-27-2018, 11:41 PM   #11
LAlx
LQ Newbie
 
Registered: May 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
Unhappy

Quote:
Originally Posted by bathory View Post
Why not? What is the error you get now?
Since everything related to mysql in under /usr/local, you may also try the following and see if it helps:
Code:
./configure --prefix=/usr --localstatedir=/var --with-virtualchroot --with-everything --with-mysql=/usr/local
Sir,its getting the same error for me
checking for floor in -lm... yes
checking for gzclose in -lz... yes
checking for mysql_init... no
checking for mysql_init in -lmariadb... no
checking for mysql_init in -lmysqlclient... yes
checking whether mysql clients can run... no
configure: error: Your MySQL client libraries aren't properly installed.
Is there any yum install package !!!! for that >>>>> tottally fed up with this???
 
Old 05-28-2018, 02:29 AM   #12
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by LAlx View Post
Sir,its getting the same error for me
checking for floor in -lm... yes
checking for gzclose in -lz... yes
checking for mysql_init... no
checking for mysql_init in -lmariadb... no
checking for mysql_init in -lmysqlclient... yes
checking whether mysql clients can run... no
configure: error: Your MySQL client libraries aren't properly installed.
Is there any yum install package !!!! for that >>>>> tottally fed up with this???
You should have done it from the beginning. Here is what you need to do.

Regards
 
Old 05-28-2018, 11:05 PM   #13
LAlx
LQ Newbie
 
Registered: May 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
Smile The answer thanks for the help!!!!! and my findings too

Quote:
Originally Posted by bathory View Post
You should have done it from the beginning. Here is what you need to do.

Regards
I got the answer guys thanks for the help u all extended to my thread here !!!!!
-> I can't compile with MySQL. ./configure says that MySQL libraries aren't
properly installed.

The libmysqlclient.so file should be in a path known by your dynamic linker.
For instance, on a GNU/Linux system, add the path to libmysqlclient.so file
(only the path, not the file itself) to /etc/ld.so.conf . Then, run
'ldconfig' .

i did this .There is other popssible way for the way that u can create like this for the centos 6 distro!!
ln -s /usr/local/lib/libmysqlclient.so.18 /usr/lib/libmysqlclient.so.18
while configuring the with-mysql
 
  


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
[SOLVED] install a program from souce code moreroz Linux - Newbie 3 07-04-2014 06:40 AM
Iwlist souce code David_Moses Linux - Software 2 04-07-2005 03:23 PM
are header files the souce code? shanenin Linux - Software 3 02-16-2005 10:24 AM
Help - rm souce code kilaabe Linux - General 1 11-14-2003 08:22 PM
Compile problem with souce code neilcpp Linux - Software 3 10-18-2003 01:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:16 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