-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Unable to install 1.9.3-head on OS X Lion 10.7.2 #534
Comments
what is your Xcode version, do you have |
Xcode 4.2 AppStore Version so llvm and gcc is installed. The variable I'll check as soon as I am at home |
@mpapis @angrauel Its because 4.2 does not have the gcc-4.2 binary. We set CC to that. When no binary is found, it reports that it can not make executables. (That and when the bin is set to wrong permissions such as readonly). With 4.2 its all llvm-gcc. They removed the normal gcc entirely. Thats the problem. the llvm-gcc doesn't build items correctly and some of the rubies have issues. thats all I can say. I can't track it down to THIS EXACT ITEM level. We need the configure.log and make log at the least to be able to determine anything at all. This is not an overnight "we got the solution" issue. This is going to take some time to suss out. Back out Xcode 4.2 completely and install Xcode 4.1. The link is in rvm requirements output. |
Also, no offense but users need to start reading the docs locally, and on the site. The installation and "** Lion Users: DO NOT use Xcode Version 4.2.x for OS X Lion. It currently fails to build several rubies and gems, |
@angrauel you can try to experiment with Xcode 4.2 - but we can not guaranty any results, easiest way most likely will be to link llvm compile binary to |
Thank for your help, but as an iOS Developer I do need Xcode 4.2 and cannot go back to 4.1. Are you gonna fix it in an upcoming release? |
@angrauel as i wrote already you need to try by yourself to link one of C++ compilers available in Xcode 4.2 to |
"CC=/usr/bin/gcc rvm install 1.9.3-head" this one is working rvm list rvm rubies => ruby-1.9.2-head [ i386 ] |
ok there seems to be a problem with gem now.... when i change to ruby 1.9.2 everything is working. |
@angrauel could I also ask for |
MacBook-Air:BuyersGuide ag$ /usr/bin/gcc -v |
@angrauel maybe this is the issue which made requirement for older Xcode ? |
rvm install 1.9.3-p0 --with-gcc=clang works as of rvm 1.9.1 with XCode 4.2 |
as instructed here: http://svn.ruby-lang.org/repos/ruby/tags/v1_9_3_0/NEWS we should be able to use Xcode 4.2 using |
More info:
|
fixed as of 2c8d9cd is enough to just write:
|
as of 8adc780
no longer works with XCode 4.2 when gcc is not installed:
|
Running Lion 10.7.2, Xcode 4.2.1, building with command
Any suggestions? |
as discussed yesterday on #RVM it looks like ruby-head/compilation stack issue, please discuss with ruby(mri) team |
Running Lion 10.7.2, Xcode 4.2.1. and GCC installed from https://github.com/kennethreitz/osx-gcc-installer
Worked for me. |
@frodera i need to warn you that Xcode 4.2.1 and osx-gcc-installer not always play nice together - especially for native extension gems |
Thanks @mpapis for the warning. I do not really need Xcode, so I have uninstalled it and left osx-gcc-installer. Hombrew seems happy with that and gems are getting installed properly on rvm. |
@frodera Thank you so much for sharing this! They should probably update RVM with that. |
@Jaybuz nothing to update in rvm. We don't install, manage, control, or otherwise dictate the compiler. Thats all you, as the user. We have gone way out on limbs trying to find the correct combination of settings for RVM to help you get compilations right once you do have a compiler installed that is usable. The problem stems from Apple's changes to their Xcode package and their compiler. Has nothing to do with RVM. We just get to clean up the mess because the users don't understand that. And btw, we all do advocate the ox-gcc-installer. Its just that a lot of the users need the headers that are stripped out to make it smaller for such things as Node.js (Carbon headers) ect. And we can not stop supporting Xcode as thats the defacto compiler suite on OS X. (Which I run myself) |
@deryldoucette I'm using the ox-gcc-installer. No xcode here. |
@Jaybuz OK, but thats individualistic. We have to support Xcode and the osx-gcc-installer. The great majority of the OSX user base uses Xcode not osx-gcc-installer. More are moving over, but we have to support Xcode, itself, directly. RVM can not just support the stripped down and repackaged Xcode (which is what osx-gcc-installer actually is). Its a "the majority rules" thing. |
Well can't you just add a little comment about it? I spent hours looking for a fix. |
@Jaybuz have you read |
∴ rvm requirements Notes for Mac OS X 10.7.3, Xcode 4.1. For JRuby: Install the JDK. See http://developer.apple.com/java/download/ # Current Java version "1.6.0_26" You can use & download osx-gcc-installer: https://github.com/kennethreitz/osx-gcc-installer To use an RVM installed Ruby as default, instead of the system ruby:
And reopen your terminal windows. Xcode 4.2:
Please read the documentation next time. Thank you! On 2012-02-29, at 12:19 PM, Michal Papis wrote:
|
I'm on about setting the gcc version: --with-gcc=gcc-4.2 |
Dude, we had already done that. sheesh! This message contains confidential information and is intended for those listed in the "To:", "CC:", and/or "BCC:" fields of the message header.If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. On 2012-02-29, at 12:26 PM, Jason Busby wrote:
|
I have OS X Lion 10.7.2 and RVM 1.9.0 installed. I currently have 1.9.2-head installed and wanted to update to 1.9.3-head, but I get an Error.
rvm install 1.9.3-head
Installing Ruby from source to: /Users/ag/.rvm/rubies/ruby-1.9.3-head, this may take a while depending on your cpu(s)...
ruby-1.9.3-head - #fetching
HEAD is now at 4197f33 merges r32345 from trunk into ruby_1_9_2.
Checking out files: 100% (1694/1694), done.
Switched to branch 'ruby_1_9_3'
From git://github.com/ruby/ruby
Already up-to-date.
Copying from repo to src path...
Running autoreconf
Fetching yaml-0.1.4.tar.gz to /Users/ag/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/ag/.rvm/src
Configuring yaml in /Users/ag/.rvm/src/yaml-0.1.4.
Compiling yaml in /Users/ag/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/ag/.rvm/usr
ruby-1.9.3-head - #configuring
ERROR: Error running ' ./configure --prefix=/Users/ag/.rvm/rubies/ruby-1.9.3-head --enable-shared --disable-install-doc --with-libyaml-dir=/Users/ag/.rvm/usr ', please read /Users/ag/.rvm/log/ruby-1.9.3-head/configure.log
ERROR: There has been an error while running configure. Halting the installation.
cat /Users/ag/.rvm/log/ruby-1.9.3-head/configure.log
[2011-10-28 14:08:47] ./configure --prefix=/Users/ag/.rvm/rubies/ruby-1.9.3-head --enable-shared --disable-install-doc --with-libyaml-dir=/Users/ag/.rvm/usr
checking build system type... x86_64-apple-darwin11.2.0
checking host system type... x86_64-apple-darwin11.2.0
checking target system type... x86_64-apple-darwin11.2.0
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
I can install any other kind of ruby version but not any 1.9.3 version.
The text was updated successfully, but these errors were encountered: