Mac OSX 10.7 Lion and Ruby 1.9.2 +
It seems a few people out there are complaining of a ‘make’ error being raised while trying to install/compile Ruby 1.9.2 and above on the developer preview of 10.7 Lion.
The solution is below:
- First, make sure you’ve installed XCode 4.1 DP 2 (you can download it through Apple if you are enrolled in their developer program)
- Next, add the following to your ~/.bash_profile with your favorite editor:
export CC=/Developer/usr/bin/clang export CFLAGS=-Qunused-arguments export CPPFLAGS=-Qunused-arguments export PATH=/Developer/usr/bin:$PATH
- Finally, run:
$ rvm install 1.9.2 --reconfigure --debug -C --enable-pthread