Giter VIP home page Giter VIP logo

"./configure --with-mysql=/usr/include/mysql/" fails with "configure: error: Invalid MySQL directory - unable to find mysql.h under /usr/include/mysql/" although "/usr/include/mysql/mysql.h" is present about dataparksearch HOT 6 CLOSED

krichter722 avatar krichter722 commented on June 23, 2024
"./configure --with-mysql=/usr/include/mysql/" fails with "configure: error: Invalid MySQL directory - unable to find mysql.h under /usr/include/mysql/" although "/usr/include/mysql/mysql.h" is present

from dataparksearch.

Comments (6)

ericfranzee avatar ericfranzee commented on June 23, 2024 2

You need to install the MySQL development files.

#sudo apt-get install mysql-devel
or
#sudo yum install mysql-devel

from dataparksearch.

itJunky avatar itJunky commented on June 23, 2024 1

What if i want to use Percona or MariaDB?

from dataparksearch.

sburn avatar sburn commented on June 23, 2024 1

What if i want to use Percona or MariaDB?

Will work. Just make sure to client libs are in place.

from dataparksearch.

itJunky avatar itJunky commented on June 23, 2024 1

configure: error: Invalid MySQL directory - unable to find mysql.h under /usr/include/mariadb/mysql.h

ls -l /usr/include/mariadb/mysql.h

-rw-r--r-- 1 root root 41230 ноя 5 22:40 /usr/include/mariadb/mysql.h

from dataparksearch.

Maxime2 avatar Maxime2 commented on June 23, 2024

If it is standard MySQL location as it looks like it should work with
./configure --with-mysql

otherwise you need to point to top of the location:
./configure --with-mysql=/usr

from dataparksearch.

krichter722 avatar krichter722 commented on June 23, 2024

Now I get it. May I suggest to change

  --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
                          install directory, default is to search through
                          a number of common places for the MySQL files.

to

  --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL installation prefix (e.g. `/usr`),
                          omitting DIR triggers a search through
                          a number of common places for the MySQL files.

because "base install directory" is hard to get, especially with the error message referring to mysql.h when configure wants include/mysql/mysql.h. Definitely useful to add an example no matter how DIR is called.

from dataparksearch.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.