【问题标题】:installation of rails in ubuntu在ubuntu中安装rails
【发布时间】:2012-02-28 09:23:36
【问题描述】:

编辑:

rails -v 不工作。当我运行~$ rails new 时,db 文件夹中没有任何文件。 ~$ rails g scaffold project;一切都创建了,但没有创建迁移文件夹。

请帮我解决这个问题。即使它在 `gem install bundle 中显示错误:

错误:执行 gem 时 ... (Gem::RemoteSourceException) HTTP 响应 302 获取 gems.rubyforge.org/yaml

~$ rails -v
getopt: invalid option -- 'v'
Terminating...
~$RAILS(1)                                                              RAILS(1)

NAME
       rails - Ruby on Rails deployment script

SYNOPSIS
       rails [options] destination(s)...

OPTIONS
       -d, --no-docs
              Deploys rails without any documentation.

       -C, --copy
              Deploys rails by copying instead of linking vendor libraries.

       -F, --force-overwrite
              Overwrites all previously deployed files, if any.

       -D, --database
              Specify  the  database  to  be used. Supported values are mysql,
              oracle, postgresql, sqlite3, frontbase and ibm_db

       -I, --internal
 Manual page rails(1) line 1/42 57%

【问题讨论】:

  • 当我运行时~$ rails new db 文件夹中没有任何文件~$ rails g scaffold 项目所有内容都已创建但未创建迁移文件夹请帮我解决问题跨度>
  • 即使它在 gem install bundle 中显示错误 ERROR: While execution gem ... (Gem::RemoteSourceException) HTTP Response 302 fetching gems.rubyforge.org/yaml
  • 您有时应该尝试使用 Google。这是一个非常棒的网站,可让您在互联网上搜索东西。
  • 即使这也不能解决我的问题

标签: ruby-on-rails installation


【解决方案1】:
  1. 转到http://rubygems.org
  2. 下载 RubyGems .zip 或 .tar.gz 文件
  3. 解压或解压您刚刚下载的文件
  4. 将目录更改为通过解压缩或解压缩创建的目录
  5. 运行“ruby setup.rb”

【讨论】:

    【解决方案2】:

    您需要更新 RubyGems,以下是说明:http://rubygems.org/pages/download#formats

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-06-01
      • 2011-08-11
      • 2014-08-03
      • 1970-01-01
      • 1970-01-01
      • 2010-10-20
      相关资源
      最近更新 更多