zedxpp / BBS

Swift编写的iOS端和服务器端, 服务器端基于Perfect框架
MIT License
123 stars 24 forks source link

swift build报错 #5

Open jj89757hhb opened 6 years ago

jj89757hhb commented 6 years ago

/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 commented 6 years ago

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

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