Skip to content

Instantly share code, notes, and snippets.

@nullstyle
Created December 12, 2011 21:46
Show Gist options
  • Save nullstyle/1469255 to your computer and use it in GitHub Desktop.
Save nullstyle/1469255 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'typhoeus'
Typhoeus::Request.get("http://msn.com") #succeeds
Typhoeus::Request.post("http://msn.com") #segfault
wget http://curl.haxx.se/download/curl-7.23.1.tar.gz
tar -xzvf curl-7.23.1.tar.gz
cd curl-7.23.1
./configure
make && sudo make install
sudo /sbin/ldconfig
sudo yum remove -y curl-devel
sudo gem install typhoeus --no-rdoc --no-ri -- —-with-curl=/usr/local
bundle config build.typhoeus —-with-curl=/usr/local
cd ..
wget http://www.sqlite.org/sqlite-autoconf-3070900.tar.gz
tar -xzvf sqlite-autoconf-3070900.tar.gz
cd sqlite-autoconf-3070900
./configure
make && sudo make install
sudo /sbin/ldconfig
sudo gem install sqlite3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment