Error while installing ruby-1.8.7 on Fedora 15

非 Y 不嫁゛ 提交于 2019-12-02 17:09:06
Pedro Carriço

This also happens when installing ruby-1.8.7 with rvm in Fedora 15.

Reinier Balt's answer also works, in my case I had to install system wide ruby using yum.

Here's what I did:

cd ~/.rvm/src/ruby-1.8.7-p334/ext/dl
ruby mkcallback.rb > callback.func
ruby mkcbtable.rb > cbtable.func

I saw this too

I went into the src/ext/dl directory and manually generated callback.func and cbtable.func which are both incomplete. I had to do

rm callback.func
touch callback.func
ruby mkcallback.rb >> callback.func

(repeat for cbtable)

Somehow the simple ruby mkcallback.rb > callback.func did not work

then rerun rvm install 1.8.7 which will not overwrite your changes.

csabahenk

https://bugs.ruby-lang.org/issues/5108

[[tl;dr: see patch at bottom]]

I don't know why this happens, but it appears that the redirection to the file doesn't completely redirect the output. As a temporary hack/fix, that does get it working, you can pipe it through tee. It gets the job done, but is certainly not the proper solution.

Patch: https://gist.github.com/1083163

This patch when applied like so: rvm install --patch /path/to/Fedora-15-ruby-1.8.7-p352.patch%0 ruby-1.8.7 will work. I will test it with ree as well and update.

EDIT: This same patch also works with ree.

rvm install --patch /path/to/Fedora-15-ruby-1.8.76-p352.patch%0 ree successfully installed a working ree for me.

patch from user865548 is now available in RVM (will be 1.9.1 or just rvm get head)

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!