rails / rails-dev-box

A virtual machine for Ruby on Rails core development
MIT License
2.05k stars 580 forks source link

Add Libffi-dev installation to the bootstrapping script #180

Open peterb opened 3 years ago

peterb commented 3 years ago

Currently when you run ./railties/exe/rails new cool_app --dev inside the Vagrant container, you get a message: along the lines of Error installing ffi: Failed to build gem native extension

If libffi-dev is installed, the libffi gem native extensions can compile, which are required when generating a Rails application inside the Vagrant container. See my post on the rails-core mailing list for some background on the motivation, this is one approach. Happy to modify/add to this this based on feedback!