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
Once installed gcc-4.2 from brew, you need to create symlink of it:
ln -s /usr/bin/gcc /usr/bin/gcc-4.2
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:
rvm get stable
rvm remove 2.3.0
rvm install 2.3.0
bundle install
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
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
.
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".