目次

CentOS6でrbenvをsystem wideにインストール

インストール

Tips

インストール時にエラーになったら

# rbenv install 2.2.2
Downloading ruby-2.2.2.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/5ffc0f317e429e6b29d4a98ac521c3ce65481bfd22a8cf845fa02a7b113d9b44
Installing ruby-2.2.2...

BUILD FAILED (CentOS 6.6 using ruby-build 20150519)

Inspect or clean up the working tree at /tmp/ruby-build.20150528100419.2639
Results logged to /tmp/ruby-build.20150528100419.2639.log

Last 10 log lines:
                              rake 10.4.2
                              rdoc 4.2.0
skip installing bundle gems because of lacking zlib
installing rdoc:              /usr/local/rbenv/versions/2.2.2/share/ri/2.2.0/system
installing capi-docs:         /usr/local/rbenv/versions/2.2.2/share/doc/ruby
The Ruby openssl extension was not compiled. Missing the OpenSSL lib?
Configure options used:
  --prefix=/usr/local/rbenv/versions/2.2.2
  LDFLAGS=-L/usr/local/rbenv/versions/2.2.2/lib 
  CPPFLAGS=-I/usr/local/rbenv/versions/2.2.2/include 

openssl-develをインストールする

yum -y install openssl-devel