Rubygems 1.3.7 setup error
I am setting up a server and decided to install the latest Ruby from source. I d开发者_开发百科ownloaded ruby-1.9.2-p0.tar.gz and installed that with no problems. Next up, was installing Rubygems. Using the 1.3.7 I downloaded from Rubyforge I ran setup.rb and got the error:
./setup.rb: 13: Syntax error: "(" unexpected (expecting "then")
This is all happening in a clean install of Ubuntu server 10.10. Line 13, for the curious, is this:
config = defined?(RbConfig) ? RbConfig : Config
Any thoughts on what this could be? Has someone else run into this?
It seems that I just needed to add:
sudo apt-get install zlib1g-dev
精彩评论