Skip to content

Instantly share code, notes, and snippets.

@lunaisnotaboy
Created October 4, 2023 23:41
Show Gist options
  • Save lunaisnotaboy/07769c15bd766e48b4e1743b69743130 to your computer and use it in GitHub Desktop.
Save lunaisnotaboy/07769c15bd766e48b4e1743b69743130 to your computer and use it in GitHub Desktop.
install_gem() {
RBENV_VERSION="$VERSION_NAME" rbenv-exec gem install "$@"
}
install_bundler() {
install_gem bundler -v "< 2"
}
# Clang errors on warnings. Tell it to ignore this one.
export RUBY_CFLAGS="-Wno-error=implicit-function-declaration"
# package_option ruby configure --with-openssl-dir="/usr/local/openssl1.0"
require_gcc
install_git "ruby-1.8.7-p374" "https://github.com/lunaisnotaboy/ruby-1.8.7.git" "develop" auto_tcltk standard
install_package "rubygems-1.8.23" "https://rubygems.org/rubygems/rubygems-1.8.23.tgz#e4a1c6bbaac411eaab94deae78228b7584033a1f10a022f52bffa9613aa29061" ruby
install_bundler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment