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

后端 未结 15 1564
春和景丽
春和景丽 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:57

    For me, this usually works

    gem install ffi -- --disable-system-libffi
    
    0 讨论(0)
  • 2020-12-03 14:58

    I got the same problem. In my case, I have not install the DevKit, which can be found: http://rubyinstaller.org/downloads/. After installing DevKit, just follow the instruction https://github.com/oneclick/rubyinstaller/wiki/development-kit and finally it's up and running.

    0 讨论(0)
  • 2020-12-03 15:03

    Note that installing version 1.0.9 isn't going to be enough if your bundler keeps trying to go out and grab the latest version. In your gemfile you'll also want to put:

    gem 'ffi', '1.0.9'
    

    This should satisfy the dependency for whatever gem is asking for it and let you get up and running.

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