Perfect-MySQL icon indicating copy to clipboard operation
Perfect-MySQL copied to clipboard

"mysqlclient.pc" not found

Open wangzzcloud opened this issue 7 years ago • 2 comments

Path:/usr/local/lib/pkgconfig/mysqlclient.pc "mysqlclient.pc" not found

do "swift build",then this is log:

/Users/wangzz/Desktop/MyAwesomeProject/.build/checkouts/Perfect-mysqlclient.git-5333716826204139417/module.modulemap:2:12: error: header '/usr/local/include/mysql/mysql.h' not found
    header "/usr/local/include/mysql/mysql.h"
           ^
/Users/wangzz/Desktop/MyAwesomeProject/.build/checkouts/Perfect-MySQL.git-4976130768219902098/Sources/PerfectMySQL/MySQL.swift:13:8: error: could not build Objective-C module 'mysqlclient'
import mysqlclient
       ^
/Users/wangzz/Desktop/MyAwesomeProject/.build/checkouts/Perfect-mysqlclient.git-5333716826204139417/module.modulemap:2:12: error: header '/usr/local/include/mysql/mysql.h' not found
    header "/usr/local/include/mysql/mysql.h"
           ^
/Users/wangzz/Desktop/MyAwesomeProject/.build/checkouts/Perfect-MySQL.git-4976130768219902098/Sources/PerfectMySQL/MySQL.swift:13:8: error: could not build Objective-C module 'mysqlclient'
import mysqlclient
       ^
/Users/wangzz/Desktop/MyAwesomeProject/.build/checkouts/Perfect-mysqlclient.git-5333716826204139417/module.modulemap:2:12: error: header '/usr/local/include/mysql/mysql.h' not found
    header "/usr/local/include/mysql/mysql.h"
           ^
/Users/wangzz/Desktop/MyAwesomeProject/.build/checkouts/Perfect-MySQL.git-4976130768219902098/Sources/PerfectMySQL/MySQL.swift:13:8: error: could not build Objective-C module 'mysqlclient'
import mysqlclient
       ^
/Users/wangzz/Desktop/MyAwesomeProject/.build/checkouts/Perfect-mysqlclient.git-5333716826204139417/module.modulemap:2:12: error: header '/usr/local/include/mysql/mysql.h' not found
    header "/usr/local/include/mysql/mysql.h"
           ^
/Users/wangzz/Desktop/MyAwesomeProject/.build/checkouts/Perfect-MySQL.git-4976130768219902098/Sources/PerfectMySQL/MySQL.swift:13:8: error: could not build Objective-C module 'mysqlclient'
import mysqlclient
       ^
error: terminated(1): /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-build-tool -f /Users/wangzz/Desktop/MyAwesomeProject/.build/debug.yaml main output:
    

wangzzcloud avatar Oct 16 '18 06:10 wangzzcloud

How to solve it?

wangzzcloud avatar Oct 16 '18 06:10 wangzzcloud

Try to run: $ brew install [email protected] && brew link [email protected] --force And then: $ swift package generate-xcodeproj This worked for me!

timotheeduran avatar Apr 03 '19 09:04 timotheeduran