Fully experience the spirit of Linux's mind and decided to manually configure, but also one of the reasons is said to manually compile the ruby version than apt efficient down a lot. It took four hours, and finally a run.
Install ruby:
Download source:
Configuration after extracting tar-xf ruby-1.8.7-p72.tar.gz
Decompression into the directory, set the configuration. / Configure
/ / Here robbin big cow path is proposed to separate away,. / Configure-prefix = / usr / local / ruby
/ / But set the PATH him a description of the estimated error, in the / etc / profile environment variables set up in the results only for the current user as effective in the sudo invalid.
So should be in / etc / bash.bashrc, add export PATH = "$ PATH: / usr / local / ruby".
Finally is running make:
make
sudo make install
end of installing ruby
Install rubygem:
Download source:
Sudo ruby setup.rb install unzip
Installation of rails and mongrel:
sudo gem install rails
sudo gem install mongrel
Ruby mysql database adapter is installed, the default will be used, but the efficiency of efficiency.嘿嘿.
After extracting the directory, run
ruby extconf.rb - with-mysql-config
/ / Need to install mysql_config
make
The success of Speed
ruby. / test.rb - [hostname
[User
[Passwd
[Dbname
[Port
[Socket
[Flag
]]]]]]]
Finally sudo make install
OK
Finally the beginning of testing, new projects, running a server, error:
`require_frameworks': no such file to load - openssl (RuntimeError)
Solution:
Ubuntu comes with synaptic package manager search and openssl-related things, hook install
(I recall when I installed openssl libssl-dev, etc.)
And to find the ruby before extracting the source code folder, cd ext / openssl
ruby extconf.rb (If the error continues to add and openssl documents - -)
make & & make install
Finally re-run OK.







