Try to install ruby via rvm
\r
Source:
craiccomputing.blogspot.com\r
Currently, ruby is more convenient to put through
rvm\r
\r
Installing RVM
\r
\r
$ sudo apt-get install git-core curl $ sudo bash < <( curl -L http://bit.ly/rvm-install-system-wide ) $ sudo usermod -aG rvm ubuntu
relogin
\r
In .bashrc don't forget to add
[[ -s '/usr/local/lib/rvm' ]] && source '/usr/local/lib/rvm' \r
\r
Installing ruby
First, put the rvm version of
iconv(native in Ubuntu does not work :(. In the code of your program you can remove the "require iconv")
\r
NB: the same thing is possible in the case of
readline,
autoconf,
Zlib,
openssl\r
\r
$ rvm package install iconv $ rvm install 1.9.2 --with-iconv-dir=$rvm_path/usr
\r
\r
\r
\r
http://railstutorial.org/\r
\r
$ rvm gemset create 1.9.2@you_gemset (1.9.2 ruby -- version) $ rvm gemset use you_gemset $ rvm gem install rails $ rvm gem list
\r
\r
web-server (nginx)
\r
\r
www.modrails.com/install.html\r
\r
$ rvm gem install passenger $ passenger-install-nginx-module