构建失败(Ubuntu 16.04 使用 ruby​​-build 20170726-2-g254728e)

构建失败(Ubuntu 16.04 使用 ruby​​-build 20170726-2-g254728e)

我是 Ubuntu 新手。我想使用rbenv( rbenv install 2.2.1) 安装 ruby​​,但是出现错误:

BUILD FAILED (Ubuntu 16.04 using ruby-build 20170726-2-g254728e)

这是我运行的脚本:

sudo apt-get update
sudo apt-get upgrade

使用安装程序安装 rbenv

sudo apt-get install git-core curl zlib1g-dev build-essential \
                     libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 \
                     libxml2-dev libxslt1-dev libcurl4-openssl-dev \
                     python-software-properties libffi-dev

cd
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL

git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL
rbenv install 2.2.1

任何帮助将不胜感激

相关内容