Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"mysqlclient.pc" not found #40

Open
wangzzcloud opened this issue Oct 16, 2018 · 2 comments
Open

"mysqlclient.pc" not found #40

wangzzcloud opened this issue Oct 16, 2018 · 2 comments

Comments

@wangzzcloud
Copy link

wangzzcloud commented Oct 16, 2018

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
Copy link
Author

How to solve it?

@timotheeduran
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants