Simples, follow steps as below -
- Edit the file /usr/local/mysql/bin/mysql_config (user is root, so sudo it), and replace the lines 119-120 (defining cflags and cxxflags) as below -
- Install the mysql2 gem
$ gem install mysql2
- Link the required mysql.h library
$ sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib
- No more steps. Thank you God and http://www.randomactsofsentience.com/2013/05/gem-install-mysql2-missing-mysqlh-on-os.html
Update - If the above tip doesn't work, look into mkmf.log file generated while building the native gem.
I am really happy to say it’s an interesting post to read. I learn new information from your article, you are doing a great job, Keep it up.
ReplyDeletemobile phone repair in Novi
iphone repair in Novi
cell phone repair in Novi
phone repair in Novi
tablet repair in Novi
ipad repair in Novi
mobile phone repair Novi
iphone repair Novi
cell phone repair Novi
phone repair Novi