-
Notifications
You must be signed in to change notification settings - Fork 779
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
Freebsd 10 impossible to compile Ruby from ruby-Build #496
Comments
How do you install packages on FreeBSD (I forgot)? Install the "openssl" package and try again. When successful, let us know what you did so we can add these instructions to the wiki. |
I think this issue is similar to https://bugs.ruby-lang.org/issues/9301 @jeezs What's version number of openssl on FreeBSD 10? |
I install first with git using this command : git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build using the Freebsd build in version of openSSL (1.0.1e) |
@caleb Do you have positive experiences building Ruby on FreeBSD? What were the steps involved? |
I have some experience, and I just upgraded to FreeBSD 10, so I'll do some investigation. |
I never have such problem with Freebsd 9.It install without any problem |
My 2 cents on this, I upgraded my FreeBSD O/S from 9.2 to 10.0 and installed Ruby 2.0.0-p247. The installation went through fine but all of gem commands are giving the following error
Installing 2.1.0 gives the same error about missing OpenSSL that @jeezs is experiencing. |
I noticed this issue to ruby core team: https://twitter.com/hsbt/status/428439636713553920 (available only japanese infomation) summary:
|
With ruby-build, the value of the -Wl,-soname option, is empty, and thus openssl.so is not linked with libssl.so correctly.
With -Wl,-soname,openssl.so, openssl.so is linked with libssl.so correctly.
I don't know why the value of the -Wl,-soname option is not set with ruby-build. |
Ah, I see. It's because gmake is used instead of make by ruby-build. |
I guess the following steps can be used as a workaround. $ export MAKE="make" |
this issue fixed by ruby/ruby@3511a17 |
We default to gmake on FreeBSD because it was reported to us that |
I backported the changeset to ruby_2_0_0 at pachlevel 391. Thanks. |
I just try to install Ruby 2.0.0-dev from ruby-buld but no way it doesn't work, though I didn't find 2.0.0 patch level 391 so I dunno if it a new version or still the same. anyway here is the error message: Last 10 log lines: |
@jeezs For 2.0.0-dev, you'll need |
I was able to build plain old Fascinating, since BSD make was always a problem in the past! FreeBSD 10 updated their OpenSSL to a version that ruby should be able to use, and they did change their make program (to |
@mislav You need not change the default because this is a problem of Ruby. |
I just install autoconf for freebsd but it still don't compile 2.0.0-dev. Inspect or clean up the working tree at /tmp/ruby-build.20140128224256.92463 Last 10 log lines: |
@jeezs I'm confused why didn't you get this error before, if you really don't have
|
I have install gmake but still no luck: Inspect or clean up the working tree at /tmp/ruby-build.20140128225524.26557 Last 10 log lines: |
People in this thread are reporting that compiling with Any suggestions how to avoid the issue within ruby-build are welcome. Change |
@jeezs You need ruby to build 2.0.0-dev.
|
@mislav
I guess installation of any version by gmake fails on FreeBSD 10, without ruby/ruby@3511a17. I'm not sure whether installation by BSD make on older versions of FreeBSD succeeds or not, so how about to use BSD make only on FreeBSD 10 or later?
|
if finally succeed to install rubies using autoconf, gmake and, pkg instal ruby as root. |
Do you think it's safe and that |
@mislav I haven't seen build errors with BSD make on my FreeBSD 10 box, and my site works well on ruby-trunk built by BSD make. |
Naruse-san, the release manager of 2.1.0, said there's no problem with BSD make. |
for me as long as autoconf, gmake and native ruby are installed, rbenv install is safe. |
export MAKE=make works fine with 2.1.0 for me as well (fresh 10.0 install). |
export MAKE=make works fine with 1.9.3 on a fresh 10.0 install, gmake resulted in psych.so linking errors when running. |
I've successfully used ruby-build on FreeBSD 9.2 but have hit the same snag with 10.0 as geoffgarside in #issuecomment-37649080 above regarding gmake. I pkg-installed gmake and that lets ruby build, but gem didn't work. I removed gmake and instead successfully used make:
|
Ruby-Build failed to install ruby 2.0.0-p247 or any other ruby 2.
the error message is : The Ruby openssl extension was not compiled. Missing the OpenSSL lib?
Is there any way to install Ruby using Ruby-Build on freebsd 10.
Thanks
The text was updated successfully, but these errors were encountered: