Article title: configure the Ruby environment in UbuntuLinux7.04. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
In fact, this environment configuration should be easily achieved through apt-get, but this is not the case, especially when the installation is successful, but a problem occurs when mongrel is installed, the system always prompts no mkmf. rb then carried a lot of errors. In fact, the problem was not apt-get ruby1.8-dev. this was a long time... So here we will summarize the installation methods.
Preparation:
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. install ruby
Sudo apt-get install ruby
Sudo apt-get install libzlib-ruby rdoc ri irb ruby1.8-dev
2 install 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