PerfectlySoft / PerfectlySoft/Perfect-MySQL

"mysqlclient.pc" not found

Open
#40 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
126
Forks
58
Avg merge
25m
Merged PRs (30d)
1

Description

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:
    

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing swift build and inspect .build/checkouts/Perfect-mysqlclient.git-5333716826204139417/module.modulemap alongside Sources/PerfectMySQL/MySQL.swift. Check how the MySQL client headers and mysqlclient.pc are located; done means the package builds without the missing-header or Objective-C module errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
mysql, swift
Domain
build-system, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.