I\'m currently working on a project using:
I tried to run bundle install
but keep getting the follow
Works fine with macOS Sierra (10.12.2) after running the following command:
xcode-select --install
Before i had:
An error occurred while installing nio4r (1.2.1), and Bundler cannot continue.
If you are working on Mac OSX above version 10.11.x
, the following approach worked for me:
gem install nio4r -v '1.1.0' -- with-cflags="-std=c99"
Setting the bundle config didn't work for me...
If you've recently updated Xcode, make sure to actually run the application and accept the terms of service.
In my bundle error, I was getting You have to install development tools first.
bundle config build.nio4r --with-cflags="-std=c99"
bundle install
works for me
I solved it with:
sudo apt-get install libmysqlclient-dev
sudo apt-get install libpq-dev
sudo apt-get install libsqlite3-dev
sudo apt-get install libev-dev
rvm use 2.0.0
Reboot pc
If I run rails -v
shows me:
And now I can make Bundle install
I think the rails version was in conflict. I don't know why, maybe anyone can explain me.
Update to version 1.0.4 if you're using Ruby 2.2.1