ruby-2.3.1をインストールしようとしています。rbenv install 2.3.1
を使用しています。 上記のコマンドのエラートレースが失敗しました。rbenvを使用して新しいルビーバージョンをインストールすると、readlineエラーが発生する
BUILD FAILED (Amazon Linux AMI 2016.09 using ruby-build 20160602)
Inspect or clean up the working tree at /tmp/ruby-build.20161024151611.24040
Results logged to /tmp/ruby-build.20161024151611.24040.log
Last 10 log lines:
# define rl_username_completion_function username_completion_function
^
readline.c:1780:37: note: in expansion of macro 'rl_username_completion_function'
rl_username_completion_function);
^
make[2]: *** [readline.o] Error 1
make[2]: Leaving directory /tmp/ruby-build.20161024151611.24040/ruby-2.3.1/ext/readline'
make[1]: *** [ext/readline/all] Error 2
make[1]: Leaving directory/tmp/ruby-build.20161024151611.24040/ruby-2.3.1'
sudo yum install readline-devel
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main/latest | 2.1 kB 00:00
amzn-updates/latest | 2.3 kB 00:00
Package readline-devel-6.2-9.14.amzn1.x86_64 already installed and latest version
Nothing to do
で次のコマンドを実行します。https://gist.github.com/juno/1330165 – Nikhil