Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/53.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 未能在bundle exec上安装机车CMS_Ruby On Rails_Locomotivecms - Fatal编程技术网

Ruby on rails 未能在bundle exec上安装机车CMS

Ruby on rails 未能在bundle exec上安装机车CMS,ruby-on-rails,locomotivecms,Ruby On Rails,Locomotivecms,我正在尝试安装MotorveCms,并尝试遵循以下指南:。我进入了我必须进入的部分: bundle exec rails g locomotive:install 然后只输出rails usage命令: MacBook-Pro:myapp chris$ bundle exec rails g locomotive:install Usage: rails new APP_PATH [options] Options: -r, [--ruby=PATH] #

我正在尝试安装MotorveCms,并尝试遵循以下指南:。我进入了我必须进入的部分:

bundle exec rails g locomotive:install
然后只输出rails usage命令:

MacBook-Pro:myapp chris$ bundle exec rails g locomotive:install
Usage:
  rails new APP_PATH [options]

Options:
  -r, [--ruby=PATH]              # Path to the Ruby binary of your choice
                                 # Default: /Users/chris/.rvm/rubies/ruby-2.0.0-p195/bin/ruby
  -b, [--builder=BUILDER]        # Path to a application builder (can be a filesystem path or URL)
  -m, [--template=TEMPLATE]      # Path to an application template (can be a filesystem path or URL)
      [--skip-gemfile]           # Don't create a Gemfile
      [--skip-bundle]            # Don't run bundle install
  -G, [--skip-git]               # Skip Git ignores and keeps
  -O, [--skip-active-record]     # Skip Active Record files
  -S, [--skip-sprockets]         # Skip Sprockets files
  -d, [--database=DATABASE]      # Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc)
                                 # Default: sqlite3
  -j, [--javascript=JAVASCRIPT]  # Preconfigure for selected JavaScript library
                                 # Default: jquery
  -J, [--skip-javascript]        # Skip JavaScript files
      [--dev]                    # Setup the application with Gemfile pointing to your Rails checkout
      [--edge]                   # Setup the application with Gemfile pointing to Rails repository
  -T, [--skip-test-unit]         # Skip Test::Unit files

我不确定我做错了什么。我跟着导游去信

任何帮助都将不胜感激。谢谢大家!

编辑:捆绑安装似乎工作正常

Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
我的rails版本是:

Rails 3.2.13
ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-darwin12.3.0]
我的ruby版本是:

Rails 3.2.13
ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-darwin12.3.0]
这是我当前的Gemfile(尽管为了测试,我尝试对其进行了一些更改):

向上移动一个目录(rails应用程序目录上方一级)并运行:

您可能会看到3.2.13以外的版本。如果确实如此,请尝试使用以下方法创建项目:

rails _3.2.13_ new app_name --skip-active-record --skip-test-unit --skip-javascript --skip-bundle

我认为这是安装指南中的一个错误

只需将命令行更改为:

rails g locomotive:install

一切都会好起来的,我刚做完^^

bundle install
命令是否没有任何错误?如果在没有直接bundle context:rails generate-motor:install的情况下启动相同的命令会怎么样?是的,bundle-install命令确实有效。它说“你的捆绑包完成了!”我刚刚试着用“rails g Motor:install”省略捆绑包上下文,结果是相同的输出…你能不能显示
rails--version
输出?当然,输出是:“rails 3.2.13”。好吧,我现在已经成功地在rails 3.2.13和ruby-1.9.3-p194上安装了loco cms,没有任何问题。你能展示一下你的档案内容吗?这对我很有用,谢谢!似乎MotorveCMS网站上的文档是错误的。正确的方法是使用
捆绑包
。如果这样做有效,您的包配置可能有问题。谢谢!!这就是我一直在寻找的东西,正是它。我花了几个小时在这个问题上。因此,如果@kurisukun接受这个答案,那就好了+