需要下载mysql的源码,然后复制include文件夹到mamp目录,然后这样
gem install mysql2 -- --with-mysql-config=/Applications/MAMP/Library/bin/mysql_config --with-mysql-include=/Applications/MAMP/Library/include --with-mysql-lib=/Applications/MAMP/Library/lib
时间: 2024-10-11 11:57:37