Rails: json 1.7.5 bundle install issue
On debian, if ruby installed with apt-get try to install ruby-dev package also
#apt-get install ruby-dev
it helped in my case.
Try install depedencies:
sudo apt-get install build-essential libssl-dev libreadline5 libreadline5-dev zlib1g zlib1g-dev
Then the usual process
mkdir ~/src && cd ~/src
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p0.tar.gz
tar -xvf ruby-1.9.1-p0.tar.gz
cd ruby-1.9.1-p0
./configure
make
make test
sudo make install
And to get rails working properly
sudo gem update --system
sudo gem install rails
and to get sqlite3 working properly
sudo apt-get install sqlite3 libsqlite3-dev
sudo gem install sqlite3-ruby
The issue was with colons in the makefile...Escaping colons in filenames in a Makefile
Doing this resolved it...https://stackoverflow.com/a/9952952/1026266