一、准备工作:
下载rubygems-1.0.1.tgz
二、安装:
1.安装ruby
sudoapt-getinstallruby
2.安装gem
cdrubygems-1.0.1/
sudorubysetup.rb
默认安装时会没有gem命令,需要修改映射路径名:
sudolinkln-s/usr/bin/gem1.8/usr/bin/gem
3.安装rails
sudogeminstallrails--include-dependencies
三、其它
如果出现如下错误:
Nosuchfileordirectory-/tmp/mysql.sock
修改database.yml,将host:localhost修改成host:127.0.0.1即可。
ubuntu8.04下安装ruby on railsubuntu8.04下安装ruby on railsubuntu8.04下安装ruby on railsubuntu8.04下安装ruby on railsubuntu8.04下安装ruby on railsubuntu8.04下安装ruby on railsubuntu8.04下安装ruby on railsubuntu8.04下安装ruby on railsubuntu8.04下安装ruby on railsubuntu8.04下安装ruby on rails
阅读(209) | 评论(0) | 转发(0) |