LoginSignup
2
3

More than 5 years have passed since last update.

xbuildでrubyをインストールしてsudoで使えるように

Posted at
yum install -y openssl-devel readline-devel zlib-devel
git clone https://github.com/tagomoris/xbuild.git
./xbuild/ruby-install 2.1.1 /opt/ruby-2.1
echo 'export PATH=/opt/ruby-2.1/bin:$PATH' > /etc/profile.d/ruby.sh

visudo

-Defaults    secure_path = /sbin:/bin:/usr/sbin:/usr/bin
+Defaults    secure_path = /sbin:/bin:/usr/sbin:/usr/bin:/opt/ruby-2.1/bin
2
3
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
3