在FreeBSD上安装RoR

1、安装 Ruby
首先以 port (或package)方式安装 ruby
# cd /usr/ports/lang/ruby18
# make install clean
2、安装 rubygems
# cd /usr/ports/devel/ruby-gems
# make install clean
===========重新启动或者注销后登陆========
3、使用 rubygems 安装 rails
# gem install rails --include-dependencies
注销后登陆
$rails mybook
$ pwd
/usr/home/janux
$ ls
mybook
$ cd mybook
$ ls
README          components      doc             public          tmp
Rakefile        config          lib             script          vendor
app             db              log             test
$ script/server
=> Booting WEBrick...
=> Rails application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with --help for options

你可能感兴趣的:(c,Ruby,FreeBSD,Rails,rubygems)