Error while installing ruby-1.8.7 on Fedora 15

前端 未结 5 825
执念已碎
执念已碎 2020-12-24 07:15

Using RVM, I tried to install ree-1.8.7-2011.03 after installing Fedora 15 and I get the following error. Using rvm install ree-1.8.7-2011.03 on Ubuntu 11.04 wo

相关标签:
5条回答
  • 2020-12-24 07:23

    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
    
    0 讨论(0)
  • 2020-12-24 07:33

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

    0 讨论(0)
  • 2020-12-24 07:41

    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.

    0 讨论(0)
  • 2020-12-24 07:46

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

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

    0 讨论(0)
  • 2020-12-24 07:47

    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.

    0 讨论(0)
提交回复
热议问题