打印

请教:为什么在linux里找不到active_record

请教:为什么在linux里找不到active_record

在windows下编了一个ruby程序,用到了active_record这个头文件,在程序开始处写了
require 'active_record'
一切正常,但是把程序放在linux里运行,却报错:
./test.rb:1:in `require': no such file to load -- active_record (LoadError)

不知道为什么,请各位帮忙看一下

TOP

最近房价会降

提示: 作者被禁止或删除 内容自动屏蔽

TOP

gem install active_record

TOP

ok了,原来是需要加上require 'rubygems'

TOP

2008-11-22 19:04 Crawled by CCBot/1.0 (+http://www.commoncrawl.org/bot.html) @38.103.63.61