Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I make bundler recognize installed curb gem?

I've successfully installed the curb gem on Mac OS X using sudo env ARCHFLAGS="-arch x86_64" gem install curb but when trying to run bundle install I still get this error:

Installing curb (0.7.16) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

I've done some digging and it looks like feedzirra is requiring the gem (it's not listed in the Gemfile). I've tried adding the gem to the Gemfile and pointing it to vendor/gems but that didn't help.

Any help would be greatly appreciated. Also, sorry if there's more clarification needed. This is my first question and I'm fairly new to Ruby on Rails. I'll be glad to provide more details if necessary.

like image 279
Christopher Cortez Avatar asked Oct 18 '25 13:10

Christopher Cortez


1 Answers

Apparently it needs SSL support for curl, as I had the same error and fixed it with:

sudo apt-get install libcurl4-openssl-dev

You might want to try a standard "gem install curb" to see if that works before "bundle install".

like image 122
mahemoff Avatar answered Oct 21 '25 03:10

mahemoff



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!