Giter Club home page Giter Club logo

Comments (7)

rbock avatar rbock commented on July 21, 2024

Hi,

sounds like you do not have libmysqlclient installed. Depending on your system it would be a package like 'libmysqlclient-dev`.

Hope that helps pointing you in the right direction.

General remark: You might want to give more details about the OS and compiler you are using when reporting errors. It makes things easier for those who you are asking for help :-)

Best,

Roland

from sqlpp11-connector-mysql.

juandent avatar juandent commented on July 21, 2024

Hi and thanks...
I am using OS X (10.11.3) and I do have libmysqlclient installed (actually there are several libraries in the following path:

/usr/local/mysql-connector-c-6.1.6-osx10.8-x86_64/lib

The files there are:

libmysqlclient_r.18.dylib
libmysqlclient_r.a
libmysqlclient_r.dylib
libmysqlclient.18.dylib
libmysqlclient.a
libmysqlclient.dylib

the include path is at

/usr/local/mysql-connector-c-6.1.6-osx10.8-x86_64/include

but that include directory has a subdirectory called mysql but NO mysql.h inside that subdirectory, so I don't see how it could find a <mysql/mysql.h>

Also, do I need to set environment include variables?

the compiler used is Xcode 7.2 clang

Please one last push, maybe I a m close now... Did I install the C connector libraries in the wrong dir?

Thanks
Juan

from sqlpp11-connector-mysql.

juandent avatar juandent commented on July 21, 2024

One last thing to point out: in the include folder for the C connector for MySql or the include folder for the MySql server installation, there is NO mysql.h file inside a mysql folder ANYWHERE... Thus how can it find <mysql/mysql.h>? It does not exist....

from sqlpp11-connector-mysql.

juandent avatar juandent commented on July 21, 2024

The only mysql/mysql.h I can find is in:

/Users/juandent/Programs/C++/sqlpp11-connector-mysql-master/include/sqlpp11/mysql/mysql.h

but none in the client connectivity in /usr/local/.......

from sqlpp11-connector-mysql.

rbock avatar rbock commented on July 21, 2024

I am not an expert for OSX installation, but a bit of googling tells me that you need to install mysql with some option to install the header files as well.

from sqlpp11-connector-mysql.

juandent avatar juandent commented on July 21, 2024

I apologise for taking some of your time .. but in installing the client libraries via the C connector from MySQL, I have the include folder with what seems all the .h files for connecting to a C program. So it would seem that I have the header files...

from sqlpp11-connector-mysql.

rbock avatar rbock commented on July 21, 2024

No problem. Glad you found it.

BTW: There might be a problem with running the tests. A colleague of mine pointed out that MySQL 5.7 and beyond are not happy with the create table commands. Those should be simple to fix, I just haven't gotten around to do that.

Closing this issue now.

from sqlpp11-connector-mysql.

Related Issues (20)

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.