Can't Install ffi -v '1.9.18' on macos Catalina
To get past that error, install ffi using:
gem install ffi -v '1.9.18' -- --with-cflags="-Wno-error=implicit-function-declaration"
Can't install `ffi -v 1.12.2` on mac OS Monterey
I have the same issue on M1 with ffi 1.15.5
and it works if I do:
gem install ffi -v '1.15.5' -- --with-cflags=-Wno-implicit-function-declaration
Same thing goes for ffi 1.12.2
.
As far as I understand it (don't know C and googled this) - When C doesn’t find a function, it assumes it is implicitly declared and errors out. --with-cflags=-Wno-implicit-function-declaration
tells the compiler to ignore any functions that are implicitly declared.
Related Topics
Why Must I Explicitly Call Self on Accessor When Using the Array Union Operator |= in Ruby
Ruby Devise, Sessionscontroller.Create, JSON - Getting Nameerror: Undefined 'Build_Resource'
Selenium Webdriver & Chrome Driver - Not Able to Run Chrome Driver
Vps Apache Config - Invalid Command 'Passengerdefaultruby' After Adding Latest Passenger Gem
Watir Won't Download PDF, Only Opens in Viewer
Adding a String in Front of a Parameter for a Form
Slicing of Arrays in Ruby Returns Different Result - Nil VS. Empty Array
How to Put a Raw SQL Query in Sequel
Jruby on Rails VS. Ruby on Rails, What's Difference
Why Would We Put a Module Inside a Class in Ruby
Rails 4 Use Application Helpers Inside Initializers
Check If String Is Repetition of an Unknown Substring
Error Occurs When Trying to Install Homebrew on a MAC for Ruby on Rails
Save Google Cloud Speech API Operation(Job) Object to Retrieve Results Later
Rexml::Document.New How to Give Encode Parameters on This Line
Ruby Roo Loaderror: Cannot Load Such File -- Spreadsheet/Note