-
Notifications
You must be signed in to change notification settings - Fork 785
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.9.3-p0 build failed on OS X Lion 10.7.2 #82
Comments
Hi @cjbottaro -- check /var/folders/98/83mjk36d4ts49lpbjvbz48f80000gn/T/ruby-build.20111030161956.28281.log to see the full build log and track down the error that occurred. The last ten lines look like warnings only. |
To build on 10.7.2, I had to set |
I got it to compile by using the readline installed by brew:
|
For the benefit of anyone else running into this issue, just wanted to mention that building Ruby 1.9.3 with clang as described above works for me. However, certain gems may not be updated to support or work with clang. In my case, I ran into an issue with the memcached-1.3.5 gem. This gem would not build with clang. In the end, it was just easier to build Ruby 1.9.3 and all gems with gcc 4.2. I ended up uninstalling the XCode dev tools (/Developer/Library/uninstall-devtools) and then installed gcc 4.2 from https://github.com/kennethreitz/osx-gcc-installer. After restarting the console to ensure all environment variables were updated, I re-built Ruby 1.9.3 without any extra options needed. All my gems also built with gcc 4.2. |
GCC is required now, so builds won't get as far as hitting errors like this. We can revisit when Ruby supports clang. |
Will today announcement (Command Line Tools for Xcode) change things? |
Yes it will! |
Just an update, had a similar problem with openssl and Mac OS X 10.8.2, XCode 4.5.2 with command-line tools installed. Did: rbenv install 1.9.3-p327 Saw: Last 10 log lines: The solution was using brew's readline, like above: export CPPFLAGS="-I/usr/local/Cellar/readline/6.2.4/include" Adding CONFIGURE_OPTS alone wasn't sufficient. |
I thought this was not necessary, but a number of people had problems when linking to OS X's "readline" (actually Editline wrapper): - Some components of Pry wouldn't work - Writing literal Unicode characters was not possible #379 - The compilation would downright fail in some cases #82 #461 Fixes #461
I did a brew installation of both rbenv and ruby-build about 15 mins ago, so I should be all up to date.
The text was updated successfully, but these errors were encountered: