-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Ruby 2.1.1 build fails on OS X (LDFLAGS error) #590
Comments
This issue belongs to ruby-build, where the |
It's pretty bizarre that you had this failure, when the LDFLAGS issue was supposed to be fixed in 50bf60f. I'm going to presume that this sorted itself out in the meantime and close this. If anyone has more information and failures with latest ruby-build, please report to ruby-build project. Thanks! |
I have this same problem |
I'm also having this same problem - building fine on >= ruby-2.1.2 but failing on 2.1.1. This is on a brand new machine (7 days old) with a fresh Xcode, homebrew, etc). OSX 10.10.3. Here's the output from the build log.
|
@dafstone It's probably a build bug with Ruby 2.1.1. Please upgrade to latest Ruby 2.1.x to fix it, as you already discovered. There should be nothing that prevents you from upgrading a project from Ruby 2.1.1 to latest patch version. There should be no functional changes. |
Having the same problem with OS X 10.10.4 using ruby-build 20150719-13-g86919c8 installing any ruby version. |
Try to create directory pointed by LDFLAGS, in example: mkdir -p /Users/stone/.rbenv/versions/2.1.1/lib For me - it worked! |
@janusznowakowski That's what's confusing about this failure. Ruby-build automatically creates the directories referenced by LDFLAGS since rbenv/ruby-build@50bf60f years ago. I'm glad that you found a workaround, but it's puzzling to me why it's failing in the first place. |
@mislav Yes, workaround by @janusznowakowski worked for me. Thanks. |
Hi,
I have also tried the suggested work around but I am still experiencing this. Reporting also logs:
|
Ok, I have updated to Macosx 10.11 and it seems to work now... |
@hiromipaw That's strange, but I'm glad you worked around your problem! |
This error just surfaced for me as well. Strange as I'd only just set up a brand new rbenv install on since upgrading to OSX 10.11 It worked about 2 weeks ago but this was the first time since then I needed to install a new ruby. I've not updated Can confirm that |
I'm having problems installing any versions of ruby with ruby-build latest and current master of rbenv. This is pretty bad. See rbenv/ruby-build#859 |
Colleague ran into the same problem with 2.1.0 on El Capitan. Manual mkdir also fixed it. |
@mla 2.1.0 had a problem, but has been fixed in recent versions of ruby-build. Make sure your colleague updates! |
Mine wasn't working because there was no |
(comment added for wider google-ability for problems other than this issue) For the record, the same fix helped
Setting |
Can confirm. Whatever directory LDFLAGS referenced inside it, didn't exist. Creating it allowed for install to run fine. |
Last 10 log lines: I get above error. It is because my user folder name us PAC\xecckq4. As a result \xe is converted as ? and it fails. Any solution? please |
this worked for me: rbenv/ruby-build#798 |
TL;DR for people needing a quick fix:
|
Doesn't work anymore :( |
This fixed it for me |
I'm having Ruby 2.1.1 build failures on rbenv 0.4.0-97-gfe0b243 with OS X 10.9.3. Excerpt:
Shell output in this Gist or:
Log output in this Gist.
The text was updated successfully, but these errors were encountered: