>  기사  >  데이터 베이스  >  XCode+Mac+MySQL版

XCode+Mac+MySQL版

WBOY
WBOY원래의
2016-06-07 15:52:361344검색

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

XCode+Mac+MySQL版


4. Build Phases加入lib

XCode+Mac+MySQL版

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).


성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.