无法在软件包执行器上安装机车CMS [英] Failing to install Locomotive CMS at bundle exec

查看:105
本文介绍了无法在软件包执行器上安装机车CMS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装LocomotiveCMS,并且正在尝试遵循此指南: http://doc.locomotivecms.com/guides/get-started/install-engine .我进入必须输入的部分:

I'm trying to install LocomotiveCMS and I'm trying to follow this guide: http://doc.locomotivecms.com/guides/get-started/install-engine. I get up to the part where I have to enter in:

bundle exec rails g locomotive:install

然后仅输出rails用法命令:

Which then just outputs the rails usage command:

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

....

我不确定我做错了什么.我遵循了这封信的指南...

I'm not sure what I did wrong. I followed the guide to the letter...

任何帮助将不胜感激.谢谢!

Any help would be much appreciated. Thank you!

编辑:捆绑安装"似乎运行良好.

The "bundle install" seemed to have worked fine.

Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.

我的rails版本是:

My rails version is:

Rails 3.2.13

我的红宝石版本是:

ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-darwin12.3.0]

这是我当前的Gemfile(尽管我确实尝试过一些更改以进行测试):

This is my current Gemfile (though I did try to change this around a bit for testing):

source 'https://rubygems.org'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '3.2.13'

gem 'locomotive_cms', '~> 2.0.1', :require => 'locomotive/engine'
gem 'unicorn', :group => 'development'
gem 'compass-rails',  '~> 1.0.3', :group => 'assets'

# Use SCSS for stylesheets
gem 'sass-rails', '~> 3.2.6', :group => 'assets'

# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 2.1.1', :group => 'assets'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 3.2.2', :group => 'assets'

# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby

# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 1.0.1', :group => 'assets'

group :doc do
  # bundle exec rake doc:rails generates the API under doc/api.
  gem 'sdoc', require: false
end

# Use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'

# Use unicorn as the app server
# gem 'unicorn'

# Use Capistrano for deployment
# gem 'capistrano', group: :development

# Use debugger
# gem 'debugger', group: [:development, :test]

推荐答案

上移一个目录(在rails应用目录上方一层)并运行:

Move up one directory (one level above your rails app directory) and run:

rails -v

您可能会看到3.2.13以外的版本.如果这样做,请尝试使用以下方法创建项目:

You'll likely see a version other than 3.2.13. If you do, try creating your project using this:

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

这篇关于无法在软件包执行器上安装机车CMS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆