dbalatero/typhoeus — Issue #140: Cannot install typhoeus on EC2 x86_64 Linux instance
Author: dhruvg
Created: 2012-02-06 06:45:40+00:00
State: open

I am getting the following error:

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/home/ec2-user/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
checking for curl/curl.h in /opt/local/include,/opt/local/include/curl,/home/ec2-user/.rvm/rubies/ruby-1.9.2-p290/include/curl,/home/ec2-user/.rvm/rubies/ruby-1.9.2-p290/include,/usr/include/curl,/usr/local/include/curl... no
need libcurl

It cannot find curl/curl.h.

I am sure I have curl installed.

ec2-user@ipXYZ ~]$ sudo yum install curl
Loaded plugins: fastestmirror, priorities, security, update-motd
Loading mirror speeds from cached hostfile
* amzn-main: packages.us-east-1.amazonaws.com
* amzn-updates: packages.us-east-1.amazonaws.com
amzn-main | 2.1 kB 00:00
amzn-updates | 2.3 kB 00:00
Setting up Install Process
Package curl-7.19.7-26.21.amzn1.x86_64 already installed and latest version
Nothing to do
[ec2-user@ipXYZ ~]$ sudo yum install libcurl
Loaded plugins: fastestmirror, priorities, security, update-motd
Loading mirror speeds from cached hostfile
* amzn-main: packages.us-east-1.amazonaws.com
* amzn-updates: packages.us-east-1.amazonaws.com
Setting up Install Process
Package libcurl-7.19.7-26.21.amzn1.x86_64 already installed and latest version
Nothing to do

I have spent about 2 hrs trying to get around this, anyone face similar issues? Any suggested workarounds?

Thanks.