joey@joey-laptop:~/work $ sudo gem install mysql
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb install mysql
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
..........
以前每一回安装的时候都会出来上述问题,后来搜索了一下
这样的话就没问题了
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb install mysql
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
..........
以前每一回安装的时候都会出来上述问题,后来搜索了一下
sudo apt-get install libmysqlclient15-dev
sudo gem install mysql
sudo gem install mysql
这样的话就没问题了
转载于:https://blog.51cto.com/andyss/141787