-
-
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
Can't install on Ubuntu 15.10 — recipe for target 'ossl_ssl.o' failed #3548
Comments
@faelsoto I was just about to report this. Can you confirm for me if you are compiling with --static? It only fails for me with --static. I checked and a regular static build by hand with flags |
@Kagetsuki I'm not compiling with |
@faelsoto You certainly would get it with those flags - that's the issue we're seeing. A normal install runs fine for us though. What package are you using to provide SSL? Is libssl-dev installed? Did you happen to roll your own SSL? |
I'm sorry, I'm really not sure about what package I'm using. I just tried to install it as I have done for several years, but this time something's wrong. I tried a few times yesterday, and somewhere I got to install openssl via RVM. libssl-dev is installed and the latest version, and no, I'm not rolling my own SSL. Thanks. |
@faelsoto I think our problems are somewhat different then - but they would appear to be related. Let's hope a core RVM maintainer jumps in here. |
I think i have same issue
on |
Workaround for now:
|
@jhass Above patch does not work for static ruby (checked on two machines, Ubuntu 15.10 x86_64 and Debian x86_64). Error was the same on both targets:
I'm wondering if this has to do with static linking against libruby (libruby-static.a) - as the exact same R_X86_64_32 error is occurring with rice and we were unable to fix it without having a dynamic Ruby. If anyone has more detailed information maybe we should post an issue to Ruby core? Note: -fPIC did not fix the issue. |
@Kagetsuki This isn't about compiling with static though, it's to remedy https://bugs.ruby-lang.org/issues/11376, which is necessary because SSLv3 support got disabled in Debian's latest OpenSSL package, which apparently landed in Ubuntu 15.10. Your issue is something completely else. |
@jhass Roger that - though I think they are somewhat related. Should I put up a separate issue? |
I can assure you they're not related. |
SSl error is patched, apply it for the moment.... |
@julesGoullee It Works,Thank you very much! |
After Arch's latest update on openssl package yesterday (6 Mar), this also affects 2.2.3 compilation there (but not 2.3.0). I can confirm also that the provided patch works there as well. |
2.2.4 install fine, 2.2.3 is no big problem, easily replaceable. what about 2.0.0 ? |
woohoo, same patch works for 2.0.0 curl https://github.com/ruby/ruby/commit/801e1fe46d83c856844ba18ae4751478c59af0d1.diff > openssl.patch
rvm install --patch ./openssl.patch 2.0.0 2.2.4 install fine without patches, no need for 2.2.3 confirmed: 1.9.3 and 2.0.0 successfully installed with this method |
Thanks! What about 1.9.3? I really need it... |
did you try out the same patch ? if it does not work, I'm afraid it will be complicated |
Alas, app is not "mine" =-( |
works with 1.9.3 |
The patch also works on 2.1.7 |
And for 2.1.5 works too. Thank you! |
the official fix is in 2.2.4 and 2.1.8, if it works with 2.2.3, 2.1.7 and 1.9.3, no need to precise any other versions in between.... now for the annoying part that I just discovered, you will need to reinstalled any patched ruby after an openssl software update. it does not happen so often on a mac, but on linux, we do regular updates. so this is an annoyance. usually servers are kept stable, but this is something to keep in mind anyway. should you upgrade openssl, you need to recompile your old ruby. on ArchLinux, I've added openssl to the ignore list
hope this helps someone |
thanks to havenwood on IRC #rvm for the advice to firstly update to the very latest RVM: |
Patch by @julesGoullee also working on Arch x64 for 2.1.5 (: Thanks bro! |
This patch worked for me for 1.9.3-p484. https://gist.github.com/waseem/0e8607e443bcd0b3e60cfad56cd9999b This is the source of the patch: https://bbs.archlinux.org/viewtopic.php?id=209970 cc: @ought |
@julesGoullee's patch builds for 1.9.3-p551, although the final replacement in test/openssl/test_ssl.rb fails, which looks for a match near line 912. My test_ssl.rb is only 499 lines. I may not have followed instructions, so apologies if this is in error. |
I do have the same problem on arch, ruby-2.1.1 does not compile.
still getting errors. Any ideas? |
Hello, I'm trying to install rvm in a brand new Ubuntu installation, but I keep getting this error:
(Full log)
I've searched everywhere, I have two other rvm installations with the same version number, I've tried installing different ruby versions, but nothing is working.
The text was updated successfully, but these errors were encountered: