Bundle update fails on ffi

后端 未结 11 1816
闹比i
闹比i 2020-12-05 14:11

I\'m attempting to do a bundle update on my rails application but I get the following error:

Installing ffi (1.0.11) with native extensions Unfo         


        
相关标签:
11条回答
  • 2020-12-05 14:33

    Once installed gcc-4.2 from brew, you need to create symlink of it:

    ln -s /usr/bin/gcc /usr/bin/gcc-4.2
    
    0 讨论(0)
  • 2020-12-05 14:33

    Ubuntu Trusty LTS 14.04

    Needed to switch from ruby 2.2.1 to 2.3.0 to support newer gem versions in Rails app.

    Solution:

    1. rvm get stable
    2. rvm remove 2.3.0
    3. rvm install 2.3.0
    4. bundle install
    0 讨论(0)
  • 2020-12-05 14:34

    I had to accept the Xcode User licence:

    Running sudo xcrun cc should bring up the cli version of the Xcode license agreement. Another option is to open Xcode.app and agree in the GUI.

    Possibly caused by updating OSX.

    http://blog.tomhennigan.co.uk/post/62238548037/agreeing-to-the-xcode-license-from-the-command

    0 讨论(0)
  • 2020-12-05 14:36

    Also method:

    export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
    bundle update
    

    ffi.h is to be found in ${SDKROOT}/usr/include/ffi/ffi.h.

    0 讨论(0)
  • 2020-12-05 14:37

    Installing "Command Line Tools" via Xcode did the trick.

    If you have Xcode 4.5 open Preferences > Downloads > Select Components tab and click Install next to Command Line Tools.

    Although I installed from Xcode, you can also download the package without it from Apple's Developer Downloads and searching for "Command Line Tools".

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