Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

checking for MySQL library directory... no

Linux Kernel, Network, and Services configuration.
Message
Author
Husker
Posts: 12
Joined: 2018-04-04 22:23

checking for MySQL library directory... no

#1 Post by Husker »

I have the latest and most up to date Debian 9 64 bit and trying to Configure, Compile, Install Ocelot tracker I run the command:

Code: Select all

./configure --with-mysql-lib=/usr/lib/x86_64-linux-gnu/ --with-ev-lib=/usr/lib/x86_64-linux-gnu/
make
It stops at:

Code: Select all

checking for MySQL library directory... no
configure: error: Didn't find mysqlclient library in '/usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu//lib64 /usr/lib/x86_64-linux-gnu//lib /usr/lib/x86_64-linux-gnu//lib64/mysql /usr/lib/x86_64-linux-gnu//lib/mysql'
I'd really appreciate some help with this one, please.

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: checking for MySQL library directory... no

#2 Post by Segfault »

Code: Select all

--with-mysql-lib=/usr/lib/x86_64-linux-gnu/
?? What's the idea of this path?

tynman
Posts: 132
Joined: 2016-05-03 19:48
Location: British Columbia, Canada
Been thanked: 2 times

Re: checking for MySQL library directory... no

#3 Post by tynman »

By default MySQL under Debian (and other Linuxes) installs schemas/databases, transaction logs and config files into to /var/lib/mysql/. Maybe that's what it's looking for. (Just a wild guess. I don't think I have ever heard anyone call it the "MySQL library directory", but I might start calling it that now.)

Husker
Posts: 12
Joined: 2018-04-04 22:23

Re: checking for MySQL library directory... no

#4 Post by Husker »

The guide can be seen https://github.com/WhatCD/Gazelle/wiki/ ... ure-ocelot it is in fact written for ubuntu 16.04

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: checking for MySQL library directory... no

#5 Post by Segfault »

You have to use correct path for your system, maybe /usr/lib/mysql/lib, whatnot, I'm not there watching over your shoulder.

Husker
Posts: 12
Joined: 2018-04-04 22:23

Re: checking for MySQL library directory... no

#6 Post by Husker »

No, you're not and it would help if you were.

Code: Select all

/usr/lib/mysql/plugin
That is what I have

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: checking for MySQL library directory... no

#7 Post by Segfault »

Code: Select all

dpkg -L <package>
This will list all files and locations installed by <package>.

Husker
Posts: 12
Joined: 2018-04-04 22:23

Re: checking for MySQL library directory... no

#8 Post by Husker »

https://hastebin.com/ecenehemin.css

Full list of installed packages thanks

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: checking for MySQL library directory... no

#9 Post by Segfault »

Can't see the list because ajax.googleapis.com scripts are not allowed here. Anyhow, you need to look at MySQL installation locations.

Husker
Posts: 12
Joined: 2018-04-04 22:23

Re: checking for MySQL library directory... no

#10 Post by Husker »

Segfault wrote:Can't see the list because ajax.googleapis.com scripts are not allowed here. Anyhow, you need to look at MySQL installation locations.
You can copy paste the url into a new tab.
Last edited by Husker on 2018-04-06 14:45, edited 1 time in total.

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: checking for MySQL library directory... no

#11 Post by Segfault »

I'm at loss, what was the exact command that resulted in this output?

Husker
Posts: 12
Joined: 2018-04-04 22:23

Re: checking for MySQL library directory... no

#12 Post by Husker »

Edited for neatness
Last edited by Husker on 2018-04-25 19:42, edited 1 time in total.

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: checking for MySQL library directory... no

#13 Post by Segfault »

I told you to look up the locations using dpkg, you posted a list of packages instead. More I look at this thread less I understand what the problem is and what you are doing there.
I suggest to get qualified help, maybe hire someone.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: checking for MySQL library directory... no

#14 Post by stevepusser »

Your sort of error is usually the result of missing headers for the library in question, which would be in a "-dev" package in Debian. Probably installing the "default-libmysqlclient-dev" metapackage will take care of those.

That Ubuntu 16.04 guide has a list of build-depends you need to install first, but the mysql packages are somewhat different in Debian and more recent Ubuntus now.

Steve "I've seen build failures you people wouldn't believe. Configure files self-destructing in virtual machines. C-code erroring in a dark terminal on Tannhauser's desktop. All those errors will be lost in time, like memory in RAM...time to reboot."
MX Linux packager and developer

Husker
Posts: 12
Joined: 2018-04-04 22:23

Re: checking for MySQL library directory... no

#15 Post by Husker »

stevepusser wrote:Your sort of error is usually the result of missing headers for the library in question, which would be in a "-dev" package in Debian. Probably installing the "default-libmysqlclient-dev" metapackage will take care of those.

That Ubuntu 16.04 guide has a list of build-depends you need to install first, but the mysql packages are somewhat different in Debian and more recent Ubuntus now.

Steve "I've seen build failures you people wouldn't believe. Configure files self-destructing in virtual machines. C-code erroring in a dark terminal on Tannhauser's desktop. All those errors will be lost in time, like memory in RAM...time to reboot."
Hello, thanks that made some progress but still fails further on

Code: Select all

checking for MySQL library directory... /usr/lib/x86_64-linux-gnu/
checking for MySQL include directory... /usr/include/mysql
checking if we can link to MySQL C API library directly... yes
checking for MySQL++ library location... configure: error: Didn't find the MySQL++ library dir in '/usr/local/mysql++/lib64 /usr/local/mysql++/lib /usr/local/lib64/mysql++ /usr/local/lib/mysql++ /opt/mysql++/lib64 /opt/mysql++/lib /usr/lib64/mysql++ /usr/lib/mysql++ /usr/local/lib64 /usr/local/lib /usr/lib64 /usr/lib'

Husker
Posts: 12
Joined: 2018-04-04 22:23

Re: checking for MySQL library directory... no

#16 Post by Husker »

Segfault wrote:

Code: Select all

dpkg -L <package>
This will list all files and locations installed by <package>.
I'm sorry but what is the name of the package you would like to see?
dpkg -L mysql-common
/.
/etc
/etc/mysql
/etc/mysql/conf.d
/etc/mysql/conf.d/mysql.cnf
/etc/mysql/conf.d/mysqldump.cnf
/etc/mysql/my.cnf.fallback
/usr
/usr/share
/usr/share/doc
/usr/share/doc/mysql-common
/usr/share/doc/mysql-common/changelog.gz
/usr/share/doc/mysql-common/copyright
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/mysql-common
/usr/share/mysql-common
/usr/share/mysql-common/configure-symlinks

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: checking for MySQL library directory... no

#17 Post by stevepusser »

Pretty much the same type of problem as your first one. That second error would lead me to think that you don't have the libmysql++-dev package installed. It's listed as a build-depend in that linked guide for 16.04. Is it installed? Have you installed the rest of them that are possible in Stretch?
MX Linux packager and developer

Husker
Posts: 12
Joined: 2018-04-04 22:23

Re: checking for MySQL library directory... no

#18 Post by Husker »

stevepusser wrote:Pretty much the same type of problem as your first one. That second error would lead me to think that you don't have the libmysql++-dev package installed. It's listed as a build-depend in that linked guide for 16.04. Is it installed? Have you installed the rest of them that are possible in Stretch?
Hello again and no

Code: Select all

libmysql++-dev
was not installed and how would install the rest of them that are possible in Stretch, please?

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: checking for MySQL library directory... no

#19 Post by stevepusser »

Please follow the Ubuntu 16.04 instruction link that you gave above. Scroll up to where it says what you need to install to build it on Ubuntu 16.04. Install all the packages that it says to. If it fails because it says a package is not available, edit that one out of the command.
MX Linux packager and developer

Husker
Posts: 12
Joined: 2018-04-04 22:23

Re: checking for MySQL library directory... no

#20 Post by Husker »

stevepusser wrote:Please follow the Ubuntu 16.04 instruction link that you gave above. Scroll up to where it says what you need to install to build it on Ubuntu 16.04. Install all the packages that it says to. If it fails because it says a package is not available, edit that one out of the command.
I see and editing the package that fails out of the command will not affect anything?
Thanks I really appreciate the help on this :)

Post Reply