Home >Database >Mysql Tutorial >How to Install libmysqlclient15-dev on macOS for Gem Compilation?
libmysqlclient15-dev for macOS
OSX users seeking to install libmysqlclient15-dev may encounter confusion due to its availability primarily on Linux systems. However, there's a straightforward solution for macOS users.
Solution:
Instead of searching for libmysqlclient15-dev, simply install MySQL via Homebrew using the following command:
brew install mysql
This command will install MySQL and provide the necessary MySQL development libraries, including those required by the gem you're trying to compile.
By executing the Homebrew command above, macOS users can easily resolve the issue of libmysqlclient15-dev unavailability and proceed with compiling their gems without any hindrances.
The above is the detailed content of How to Install libmysqlclient15-dev on macOS for Gem Compilation?. For more information, please follow other related articles on the PHP Chinese website!