-
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
2.0.0-rc2 build failed #290
Comments
Check if in your environment the variable $ echo $CONFIGURE_OPTS
$ openssl version
$ opennsl version 2
$ which openssl |
Here is the output:
As you can see in the complete logfile, the compilation of openssl finishes successfully. The logfile seems to indicate that it is picked up by the ruby compilation process, even though ruby configure says it doesn't recognize |
Ok, $ rbenv --debug install 2.0.0-rc2 2>&1 | tee install.log After executing that, paste the content of |
You can find the Thanks for your help! |
Mmmmh, well... @sstephenson, what do you thing about the lack of @fschwahn, i am out of ideas... time to sleep :) |
Well thanks for your help so far, and have a good night! |
The updated I also installed it with the latest
So there seems to be a problem with the packaged openssl installation in some cases. |
I am getting the same install errors on 1.9.3-p374 and p385. If it helps, I'm setting up a new machine for the first time. Output:
In my bootstrap scripts, I avoided the following line: Does that have anything to do with it you think? Or is it openssl? |
Nope. Tried it. Rehashed. Nothing. Installed openssl too from Homebrew. This is the first problem I've had with RBenv/Ruby-Build of this kind. |
Should mention: OSX Mountain Lion 10.8.2, XCode 4.6.
|
@kevinSuttle I believe your issue is a different one, see for example #287 for a solution. |
@fschwahn Running @sstephenson Could you post a quick something about exactly what needs to be installed prior as far as XCode/Command Line Tools/Homebrew? There's varying info spread around Github and SO. Thanks. |
There are 2 issues. What is cc?On latest Xcode 4.x environment:
On bit old Xcode 4.x environment:
More old Xcode 4.x environment:
On Xcode 3.2.6,
(@shinh pointed that Xcode 3.2.6'cc and gcc are gcc-4.2, thanks) So if you support Xcode 3.x and 4.2,
clang's warning improvement and side effectApple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn) You can avoid this by setting -Wno-error=shorten-64-to-32 to CFLAGS. (Ruby itself also will apply patch https://bugs.ruby-lang.org/issues/7946#change-36951) |
I feel like you're making a point, but, being a newb, I don't know what it is. :) |
Here's the output for 2.0.0-p-0
It's odd. It "installs" the OpenSSL lib, even though I installed it with Homebrew already, then complains that it is missing, when technically it should have been installed at least twice by now. |
@kevinSuttle I got the exact same output on my Mac. I've had no luck. This was my 3rd install attempt. Did anybody find a workaround? |
@codeblooded @kevinSuttle for the error with
|
FYI, I documented how to install |
I solved my issue by downloading openssl via homebrew and then linking to it as such: Update: It decided that it didn't like the nested |
@joneslee85 @codeblooded Are these commands that you need to run before each install? |
@kevinSuttle yes |
@joneslee85 Would it be better to run a check in rbenv-install? I know it's not everyday you install a new Ruby, but it would be convenient not to have to do that. |
@kevinSuttle I've never had problems with installing ruby before. These commands are new to me, and I have installed multiple versions of ruby with ruby-build. For some reason my setup did not want to compile the OpenSSL portion; therefore, I needed to install via Homebrew and pointed to the homebrew installed directory. I agree that ruby-build should have some type of checking system (to avoid these issues before installation), and I would definitely be willing to contribute to such a project. |
@codeblooded I've never had any issues either until now. This is a brand new OS install, and I thought I had it set up the same way. I never had to do any of these acrobatics on my previous machine. |
Wonder if Homebrew is fighting with my system. See: https://gist.github.com/joneslee85/5025729/#comment-781485 |
@kevinSuttle I didn't install Readline with my installation and it worked. Also, somebody in another issue said to use
I just ran into a "parse issue" with the nested
And after all of that, I had a successful install. Talk about acrobatics 😓 |
I get the same output as @kevinSuttle posted above (#290 (comment)). This is on OS X 10.8.2, with Xcode 4.6 installed. No Homebrew. |
This is getting far off track from the original issue.
This is normal. The Ruby config doesn't know that option, but the openssl extension does. Could you gist the contents of |
@kevinSuttle would you install autoconf and automake? if not installed:
btw openssl and readline: recommend after the installation
Then it becomes a simple install.
|
@d6rkaiz et al: I have all of those.
Last post. :) |
@kevinSuttle I'm sorry about that. |
@d6rkaiz No sweat! |
I use |
@jeremy I should have been more specific when I named the issue. Here is the logfile you asked for: https://gist.github.com/fschwahn/4943050/raw/00e018eb3a74e6784426b9c1bf051d299d274fc8/mkmf.log |
Thanks @fschwahn! |
Fixed @ fee1e49 |
Hi,
I saw the other issue regarding 2.0.0-rc2, and this could be also be an unsupported compiler issue. The build fails at another point:
I'm on Snow Leopard, with Xcode 3.2.6. My
gcc -v
output:I'm using the latest versions of
rbenv
andruby-build
(I updated from Github yesterday evening). The complete log file is here: https://gist.github.com/fschwahn/4943050#file-ruby-build-20130212195909-32592-logOne more point which made me curious is that the ruby configure script emits this:
Thanks!
The text was updated successfully, but these errors were encountered: