`
easy8848
  • 浏览: 1098 次
最近访客 更多访客>>
社区版块
存档分类
最新评论

在FreeBSD上安装RoR

    博客分类:
  • ruby
阅读更多
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

分享到:
评论
1 楼 easy8848 2007-03-22  
cd /usr/ports/www/fcgi 

make install 

ruby install.rb config -- --with-fcgi-include=/usr/local/include --with-fcgi-lib=/usr/local/lib 
$cd /usr/port/www/ruby-fcgi 
#make install 
在/usr/port/distfiles/ruby得到ruby-fcgi-0.8.6.tar.gz 
可以解压缩安装 
#tar zxvf ruby-fcgi-0.8.6.tar.gz 
$ ruby install.rb setup 
# ruby install.rb install

相关推荐

Global site tag (gtag.js) - Google Analytics