Skip to content

Instantly share code, notes, and snippets.

@jjb
Last active May 8, 2020 05:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jjb/2315629 to your computer and use it in GitHub Desktop.
Save jjb/2315629 to your computer and use it in GitHub Desktop.
How to install ruby 1.9.3 on OS X with macports
# If you are using macports and install ruby 1.9.3, you might experience
# segfaults when accessing https URLs, because the build somehow ends up
# referencing two different openssl librareis (I think?).
#
# Here is the solution.
# I can't remember which is necessary, do both for good measure
export CONFIGURE_OPTS="--with-openssl-dir=/opt/local"
CONFIGURE_OPTS="--with-openssl-dir=/opt/local"
# now you can install your ruby like normal
rbenv install 1.9.3
# OR the tweaked-out patched version:
# https://gist.github.com/3885178
curl https://raw.github.com/gist/3885178/rbenv.sh | sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment