Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 32 lines (26 sloc) 961 Bytes
#!/bin/sh
set -eu
version=2.3.7
case $(uname -m) in
x86_64) tag=x86_64_linux;;
armv[67]*) tag=armv6_linux;;
*) echo "Error: Your CPU $(uname -m) is not supported." >&2; exit 1 ;;
esac
if test -w /home/linuxbrew || sudo -v; then
prefix=/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor
test -d /home/linuxbrew || sudo mkdir -p /home/linuxbrew
test -w /home/linuxbrew || sudo chown $USER: /home/linuxbrew
else
prefix=~/.linuxbrew/Homebrew/Library/Homebrew/vendor
fi
echo >&2 "==> Installing Ruby to $prefix"
mkdir -p $prefix
curl -L https://homebrew.bintray.com/bottles-portable-ruby/portable-ruby-$version.$tag.bottle.tar.gz \
| tar -xz -C $prefix
ln -sf $version $prefix/portable-ruby/current
echo >&2 '==> Installing successful'
export "PATH=$prefix/portable-ruby/current/bin:$PATH"
echo >&2 "==> `which ruby`"
ruby --version 1>&2
echo >&2 "==> Add Ruby to your PATH by running:"
echo "PATH=$prefix/portable-ruby/current/bin"':$PATH'
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.