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

swift build报错 #5

Open
jj89757hhb opened this issue Jan 7, 2018 · 1 comment
Open

swift build报错 #5

jj89757hhb opened this issue Jan 7, 2018 · 1 comment

Comments

@jj89757hhb
Copy link

/Users/xuetianhhb/Downloads/BBS-Server-master/.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/xuetianhhb/Downloads/BBS-Server-master/.build/checkouts/Perfect-MySQL.git-4976130768219902098/Sources/PerfectMySQL.swift:25: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/xuetianhhb/Downloads/BBS-Server-master/.build/debug.yaml main
xuetianhhbdeMac-mini:BBS-Server-master xuetianhhb$

@zedxpp
Copy link
Owner

zedxpp commented Jan 8, 2018

不太清楚你的mysql是如何安装的. 如果你是mac环境, 请尝试卸载原来的mysql, 并且按照此文章的方法进行安装mysql.
mac文章地址

如果你是ubuntu, 请按此文章进行安装
ubuntu文章地址

Repository owner deleted a comment Feb 2, 2024
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