转自:http://edwardpro.javaeye.com/blog/96564
ubuntu 7.04 下配置 ruby环境
准备:
sudo apt-get install build-essential
sudo apt-get install gcc
sudo apt-get install g++
sudo apt-get install libssl0.9.8
sudo apt-get install libssl0.9.8-dbg
sudo apt-get install libssl-dev
sudo apt-get install build-essential
1 安装ruby
sudo apt-get install ruby
sudo apt-get install libzlib-ruby rdoc ri irb ruby1.8-dev
2 安装 gem
sudo apt-get install libzlib-ruby
sudo apt-get install gem
sudo gem update --system
3 install rails
sudo gem install rails
4 install mongrel
sudo gem install mongrel
sudo gem install mongrel_cluster --include-dependencies
5 install imagemagic
sudo apt-get install libopenssl-ruby
sudo apt-get install libgd-ruby1.8 libyaml-ruby libzlib-ruby
sudo apt-get install imagemagick
6 install rmmagic
sudo apt-get install libmagick9-dev ruby1.8-dev
sudo gem install RMagick
参考文献 http://www.javaeye.com/post/259577
最不要忘记升级整个ubuntu哦,哈哈,总算搞得差不多了!!!
ubuntu虽然安装东西很方便,但是它把东西拆得太散了,说实话如果ruby全手动安装是不会有这些问题的,但是回过头来表扬下ubuntu,因为它装imagemagic很容易,会自动安装一大堆的lib的这个很赞,当年在redhat上装这个花了一整天几乎,简直就是惨痛的经历,ubuntu再也不会的^^有好有坏