MySQL Forums
Forum List  »  Connector/C++

Facing issues using mysql-connector-c++ on macOS 10.14
Posted by: Sagun Khosla
Date: January 15, 2019 04:43AM

Hello,

Ive just installed the new mysql connector c++ v8 and it is problematic.

The library is not loading and it is asking for libmysqlcppconn.7.dylib, which i symlinked in /usr/local/lib, the same for some others but now there's a boost library error.

```
dyld: Library not loaded: /usr/local/opt/mysql-connector-c++/lib/libmysqlcppconn.7.dylib
Referenced from: /Users/sagunkho/CLionProjects/Horizon/build/./../bin/char
Reason: image not found
Abort trap: 6
fun:build sagunkho$ ./../bin/char
dyld: Library not loaded: libssl.1.0.0.dylib
Referenced from: /usr/local/lib/libmysqlcppconn.7.dylib
Reason: image not found
Abort trap: 6
fun:build sagunkho$ ./../bin/char
dyld: Library not loaded: libssl.1.0.0.dylib
Referenced from: /usr/local/lib/libmysqlcppconn.7.dylib
Reason: image not found
Abort trap: 6
fun:build sagunkho$ ./../bin/char
dyld: Library not loaded: libcrypto.1.0.0.dylib
Referenced from: /usr/local/lib/libmysqlcppconn.7.dylib
Reason: image not found
Abort trap: 6
fun:build sagunkho$ ./../bin/char
dyld: lazy symbol binding failed: Symbol not found: __ZN5boost6system15system_categoryEv
Referenced from: /Users/sagunkho/CLionProjects/Horizon/build/./../bin/char
Expected in: /usr/local/opt/boost/lib/libboost_system-mt.dylib

dyld: Symbol not found: __ZN5boost6system15system_categoryEv
Referenced from: /Users/sagunkho/CLionProjects/Horizon/build/./../bin/char
Expected in: /usr/local/opt/boost/lib/libboost_system-mt.dylib

Abort trap: 6
fun:build sagunkho$

```

When compiling on xcode it asks for libmysqlcppconn8.1.dylib which is not loaded and the image isn't found.

I'm using macos 10.14 and have installed the package from the download section.

Any help will be appreciated, thanks.

Options: ReplyQuote


Subject
Views
Written By
Posted
Facing issues using mysql-connector-c++ on macOS 10.14
2375
January 15, 2019 04:43AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.