Comments (7)
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.
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.
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.
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.
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.
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.
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)
- Data is truncated with MariaDB Connector/C 3.0.1+ HOT 11
- Selecting a datetime field always returns epoch HOT 2
- Microseconds ignored when selecting datetime column HOT 1
- Mac osX build HOT 8
- Crash of queries due to MYSQL_RES that is NULL HOT 7
- mysql replace into command HOT 5
- how to use unhex function ,could you give some info? HOT 1
- database name not used HOT 2
- sample code does not work on windows HOT 1
- Can't build DLL on windows HOT 2
- {char,bind}_result_t.size() is unimplemented HOT 5
- How to create mysql::connection without config HOT 2
- TLS/SSL connection is unsupported HOT 1
- Does sqlpp11 support a connection pool? What do I need to do? HOT 2
- How to return mysql auto incorrect when inserting a record in the table? HOT 2
- how can I set mysql options HOT 1
- Error reported while installing sqlpp11-mysql HOT 4
- Why is it necessary to pass database parameter when creating a connection? HOT 3
- Error when compiling HOT 5
- build failed on linux HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqlpp11-connector-mysql.