I have installed ruby 1.9.3p327 & rails 3.2.8 using rvm on centos 6.3. But while doing bundle install for a particular project folder, the process fails in between when it t
I resolved the issue by installing libstdc++-devel using yum install gcc-c++ libstdc++-devel
This error comes when you don't have supporting libraries to compile the gem try to install the following packages
sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison
then do a bundle install
Thanks Suman. But I resolved the issue by installing libstdc++-devel using yum install gcc-g++ libstdc++-devel.
On Ubuntu I only needed to do
sudo apt-get install build-essential
to fix this.
(for the record I'm on a freshly-built Ubuntu 12.10 Server X64)