Created
October 7, 2011 23:37
-
-
Save baburdick/1271615 to your computer and use it in GitHub Desktop.
Mac OS X Lion, MacPorts, and rvm installs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export rvm_path="$HOME/.rvm" | |
# Make this work with OS X Lion... for now... | |
if [[ `uname -v` =~ "Darwin Kernel Version 11" ]] ; then | |
export CC=/usr/bin/gcc-4.2 | |
#export CC=/usr/bin/i686-apple-darwin11-gcc-4.2.1 | |
fi | |
# Export compile flags for MacPorts: | |
if [ -d /opt/local/bin ] ; then | |
export CFLAGS="-O2 -arch x86_64" | |
# Per http://beginrescueend.com/integration/macports/ | |
# BUT: prefix with rvm's paths to allow installation of rbx to pick up rvm's | |
# openssl, readline, etc.: | |
#export LDFLAGS="-L/opt/local/lib" | |
#export CPPFLAGS="-I/opt/local/include" | |
export LDFLAGS="-L$HOME/.rvm/usr/lib -L/opt/local/lib" | |
export CPPFLAGS="-I$HOME/.rvm/usr/include -I/opt/local/include" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment