ERROR: Error installing ffi: ERROR: Failed to build gem native extension

后端 未结 15 1563
春和景丽
春和景丽 2020-12-03 14:12

Got the DevKit installed and re-ran the ffi install….got this as an output:

C:\\Documents and Settings\\******>gem install ffi
Temporarily enhancing PATH          


        
相关标签:
15条回答
  • 2020-12-03 14:36

    Installing the 'osx-gcc-installer' worked for me: (osx 10.8)

    https://github.com/kennethreitz/osx-gcc-installer/downloads

    0 讨论(0)
  • 2020-12-03 14:38

    Helped me:

    sudo apt install build-essential
    

    Debian 9

    Ruby 2.3.3

    0 讨论(0)
  • 2020-12-03 14:42

    when the above steps are followed, it might results the following message.

    $ bundle install
    Fetching source index for https://rubygems.org/
    You have requested:
    ffi = 1.0.9
    
    The bundle currently has ffi locked at 1.0.11.
    Try running `bundle update ffi`
    

    In that case, you can run the 'bundle update ffi' command and the error will be solved.

    0 讨论(0)
  • 2020-12-03 14:42

    Put DevKit in front of your PATH, and install again from Windows command prompt.

    0 讨论(0)
  • 2020-12-03 14:43

    On MacOS (Catalina), running brew install libtool first solved the problem for me.

    0 讨论(0)
  • 2020-12-03 14:44

    I had to install automake to get it working. Worked on both mac OSX as well as Ubuntu (CI machine).

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