LoginSignup
2
2

More than 5 years have passed since last update.

rbenv BUILD FAILEDの原因はreadlineかも

Last updated at Posted at 2014-06-11

$ rbenv install
Downloading ruby-2.0.0-p451.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/9227787a9636551f1749ee8394b5ffe5
Installing ruby-2.0.0-p451...

BUILD FAILED

Inspect or clean up the working tree at /var/folders/bb/cg4hs1y96td08skrjw5cj8rh0000gp/T/ruby-build.20140611125242.46745
Results logged to /var/folders/bb/cg4hs1y96td08skrjw5cj8rh0000gp/T/ruby-build.20140611125242.46745.log

Last 10 log lines:
compiling ossl_x509crl.c
compiling ossl_x509ext.c
compiling ossl_x509name.c
compiling ossl_x509req.c
compiling ossl_x509revoked.c
compiling ossl_x509store.c
installing default openssl libraries
linking shared-object openssl.bundle
ld: warning: directory not found for option '~/.rbenv/versions/2.0.0-p451/lib'
make: *** [build-ext] Error 2
rbenv: version `2.0.0-p451' is not installed

これに対して

$brew uninstall readline
$brew install https://raw.githubusercontent.com/Homebrew/homebrew/0181c8a1633353affefabe257c170edbd6d7c008/Library/Formula/readline.rb
$brew pin readline

で、rbenv install出来るようになる。

2
2
0

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
2
2