Caffè Latte

日々を徒然に

Raspberry PiでRubyをインストールしようとしたら弾かれた

先に結論

Downloading ruby-2.3.4.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.4.t
ar.bz2
Installing ruby-2.3.4...

BUILD FAILED (Raspbian 8.0 using ruby-build 20170523-25-g476d09b)

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

Last 10 log lines:
installing capi-docs:         /home/pi/.rbenv/versions/2.3.4/share/doc/ruby
The Ruby openssl extension was not compiled.
The Ruby readline extension was not compiled.
ERROR: Ruby install aborted due to missing extensions
Try running `apt-get install -y libssl-dev libreadline-dev` to fetch missing dependencies.

Configure options used:
  --prefix=/home/pi/.rbenv/versions/2.3.4
  LDFLAGS=-L/home/pi/.rbenv/versions/2.3.4/lib
  CPPFLAGS=-I/home/pi/.rbenv/versions/2.3.4/include

言われたとおり

sudo apt-get install -y libssl-dev libreadline-dev

を実行、 そしたらうまく言った