LoginSignup
0
0

More than 5 years have passed since last update.

Macでrbenv使ってRuby2.0入れるときのメモ

Last updated at Posted at 2014-02-19

brew install openssl readline

wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz
tar xvfz libiconv-1.13.1.tar.gz
cd libiconv-1.13.1
./configure --prefix=/usr/local/Cellar/libiconv/1.13.1
make
sudo make install

CONFIGURE_OPTS="--with-readline-dir=`brew --prefix readline` --with-openssl-dir=`brew --prefix openssl` --with-iconv-dir=/usr/local/Cellar/libiconv/1.13.1" rbenv install 2.1.1

Installing nokogiri

CC=/usr/bin/gcc NOKOGIRI_USE_SYSTEM_LIBRARIES=1 gem install nokogiri 
0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0