XCode+Mac+MySQL版
3. 项目配置 3.1 Header Search Paths 加 /usr/local/include /usr/local/mysql/include 3.2 Library Search Paths 加 /usr/local/lib /usr/local/mysql/lib 3.1 Other Linker Flags 加 -lmysqlcppconn -lm -lmysqlclient -lz 4. Build Phases加入lib 5. 运
3.项目配置
3.1 Header Search Paths加
/usr/local/include
/usr/local/mysql/include
3.2 Library Search Paths加
/usr/local/lib
/usr/local/mysql/lib
3.1 Other Linker Flags加
-lmysqlcppconn -lm -lmysqlclient -lz
4. Build Phases加入lib
5. 运行
So, what’s the cleanest solution? Specifically, one that avoids having to alter everything you ever write, just to get around a (hopefully soon fixed) bug in the MySQL installation?
Do this:
sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib
In other words, create a link from /usr/local/mysql/lib (actual location) to /usr/lib (the place MySQL goes looking).
上一篇: ORACLE网络管理
下一篇: PHP4之真OO_PHP教程
推荐阅读
-
苹果推送iOS 14.5公测版:iPhone能戴口罩解锁了
-
50个SQL语句(MySQL版) 建表 插入数据
-
洛谷-P1618 三连击(升级版)
-
2020年全国一卷文综高考试卷真题及答案解析(附Word版下载)
-
HTML5与CSS3基础教程第八版学习笔记16-21章 - 平凡世界平凡人
-
input 输入框获得/失去焦点时隐藏/显示文字(jquery版)_jquery
-
十二生肖查询网页版制作(php),生肖php
-
迪菲-赫尔曼密钥交换(Diffie–Hellman)算法原理和PHP实现版_php实例
-
javascript - pc版跳m版ok,但m版点pc版链接不能停在pc版
-
甲骨文发布β版11g数据库含182项新功能