2. Install XAMPP Devel-package
3.
phucmac:portal phucquang$ sudo gem install mysql -- \
--with-mysql-dir=/Applications/XAMPP/xamppfiles/ \
--with-mysql-lib=/Applications/XAMPP/xamppfiles/lib \
--with-mysql-include=/Applications/XAMPP/xamppfiles/include/ \
--with-mysql-config=/Applications/XAMPP/xamppfiles/bin/mysql_config
For ruby 1.8.7 and up, use:
sudo env ARCHFLAGS="-arch i386" gem install mysql -- \
--with-mysql-dir=/Applications/XAMPP/xamppfiles \
--with-mysql-lib=/Applications/XAMPP/xamppfiles/lib \
--with-mysql-include=/Applications/XAMPP/xamppfiles/include
With rvm:
sudo env rvm_archflags="-arch i386" gem install mysql2 --version=0.2.6 -- \
--with-mysql-dir=/Applications/XAMPP/xamppfiles/ \
--with-mysql-lib=/Applications/XAMPP/xamppfiles/lib \
--with-mysql-include=/Applications/XAMPP/xamppfiles/include/mysql/
No comments:
Post a Comment