-
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
Can't install on Fedora #443
Comments
Thanks for reporting. Turns out this is a known problem with this Ruby version, and needs this patch on Fedora in order to compile: https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/41808/diff |
@caarlos0 It seems ruby-core's issue. Please report our issue tracker http://bugs.ruby-lang.org/ . |
@mislav how can I compile with rbenv + ruby-build using that patch? |
@caarlos0 ruby-build unfortunately doesn't offer out-of-the-box way to apply patches. However you can easily hack it. Create this #!/bin/sh
patch -p0 -i /path/to/patch.diff
exec ./configure "$@" Then, when building ruby: RUBY_CONFIGURE=/full/path/to/fedora-configure rbenv install ... |
@caarlos0 Alternative way to the RUBY_CONFIGURE hack: Create this definition file. It doesn't need to be executable: before_install_package() {
case "$1" in
ruby-* )
patch -p0 -i /path/to/patch.diff
;;
esac
}
install_package "ruby-2.0.0-p247" "http://cache.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz#c351450a0bed670e0f5ca07da3458a5b" standard verify_openssl Then instruct
|
@mislav, thanks, I just did my script a little different, since I don't have the #!/bin/sh
patch -p0 -i /tmp/patch.diff
exec ./configure "$@" And it worked as expected! |
Oh, do'h! Sorry, I mean't |
No problem, thanks, take this 🍺 |
Also, Thanks! |
@caarlos0 Then use the 2nd method I described, only make sure you use |
Ohh boy, I tried it but used |
Please let us know of any issues you manage to sort out. Maybe we can fix some of that, or add to the wiki. Update to latest ruby-build I released last night |
Well, I just created an issue rubinius/rubinius#2750 Looks like a weird problem in rubinius... or maybe it's my env.. Thanks! |
…448 on Fedora 19 This packages patches ruby sources with https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/41808/diff before compiling. See rbenv#443
In fact, the only thing that is installable in Fedora right now are the 2.1.0 series. |
What is the cotent of patch.diff? |
@ysyfff, see #443 (comment) |
@ashumkin ,Yes, I've saw it. But what should I do? Copy all of the code into patch.diff? I really do not know how to do next. |
Yep! |
@ashumkin Oh, God! Thanks very much. You give me a big favor! |
@ryanschwartz Thanks Fixed for me ! |
If `-p|--patch` flag was set while invoking `ruby-build` or `rbenv install`, ruby-build will use `patch -p0 -i -` to apply a patch from stdin to Ruby, Rubinius, or JRuby source code before running the rest of `build_package_*` commands. References #443
Hi everyone, I just shipped a version of ruby-build that supports the curl -fsSL https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/41808/diff.diff | \
rbenv install --patch 2.0.0-p247 |
Nice one, thanks! |
FYI the patch is gone (404). |
Fixed with:
Note the filterdiff there. Not sure what changed, changelog was busted. |
Thank you for all people in this thread, this saved my frustration time installing Ruby-2.0.0-p247 by telling out about the patches 😋 |
For
Thanks @ivanelian, @lzap etc. |
@supervacuo thanks!! |
@supervacuo Thanks! That worked great. For anyone else who comes along, this patch also works for 1.8.7-p352:
For the record, this install worked on CentOS. |
Haha...nice guy @supervacuo that is what I wanted. thanks~ |
fix rbenv#443: add package "1.9.3-p448-fc19" to install Ruby v1.9.3-p448 o…
Apply rbenv#443 patch to build Ruby 2.0.0-p247-amz
Tried to install ruby 2.0.0-p427 and 1.9.3-p448 on a Fedora Linux, got issues in both and just can't made it work. I also can't install rubinius because it dependes on a ruby 2.0.0 installed.
The error is basically the same:
My PATH:
/usr/local/heroku/bin:./bin:/home/carlos/.rbenv/shims:/usr/local/bin:/usr/local/sbin:/home/carlos/.sfs:/home/carlos/.dotfiles/bin:/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/home/carlos/bin:/usr/local/sbin:/usr/sbin:/usr/java/latest/bin:/usr/java/latest/bin:/home/carlos/.rbenv/bin:/opt/node/bin:/opt/node/deps/npm/bin
Not sure what's happening. I believe I have all needed libs installed.
The text was updated successfully, but these errors were encountered: