热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

rails安装bootstrappers成功运行时报错

vagrant@vagrant-ubuntu-trusty-64:~$ruby-vruby2.1.2p95(2014-05-08revision45877)[x86_64-

vagrant@vagrant-ubuntu-trusty-64:~$ ruby -v
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]
vagrant@vagrant-ubuntu-trusty-64:~$ rails -v
Rails 4.1.2



vagrant@vagrant-ubuntu-trusty-64:~$ bootstrappers blog
create
create README.md
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/assets/Javascripts/application.js
create app/assets/stylesheets/application.css
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create app/views/layouts/application.html.erb
create app/assets/images/.keep
create app/mailers/.keep
create app/models/.keep
create app/controllers/concerns/.keep
create app/models/concerns/.keep
create bin
create bin/bundle
create bin/rails
create bin/rake
create config
create config/routes.rb
create config/application.rb
create config/environment.rb
create config/secrets.yml
create config/environments
create config/environments/development.rb
create config/environments/production.rb
create config/environments/test.rb
create config/initializers
create config/initializers/assets.rb
create config/initializers/backtrace_silencers.rb
create config/initializers/COOKIEs_serializer.rb
create config/initializers/filter_parameter_logging.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/session_store.rb
create config/initializers/wrap_parameters.rb
create config/locales
create config/locales/en.yml
create config/boot.rb
create config/database.yml
create db
create db/seeds.rb
create lib
create lib/tasks
create lib/tasks/.keep
create lib/assets
create lib/assets/.keep
create log
create log/.keep
create public
create public/404.html
create public/422.html
create public/500.html
create public/favicon.ico
create public/robots.txt
create test/fixtures
create test/fixtures/.keep
create test/controllers
create test/controllers/.keep
create test/mailers
create test/mailers/.keep
create test/models
create test/models/.keep
create test/helpers
create test/helpers/.keep
create test/integration
create test/integration/.keep
create test/test_helper.rb
create tmp/cache
create tmp/cache/assets
create vendor/assets/Javascripts
create vendor/assets/Javascripts/.keep
create vendor/assets/stylesheets
create vendor/assets/stylesheets/.keep
remove public/index.html
remove app/assets/images/rails.png
Setting up the development environment
Creating bootstrappers views
create app/views/application
create app/views/pages
create app/views/common
force app/views/layouts/application.html.erb
Pulling in some common partials
exist app/views/common
create app/views/common/_bootstrap_modal.html.erb
create app/views/common/_facebook_js.erb
create app/views/common/_footer.html.erb
create app/views/common/_google_analytics.html.erb
create app/views/common/_menu.html.erb
create app/views/common/_not_logined.js.erb
create app/views/common/_search_form.html.erb
create app/views/common/_user_nav.html.erb
Pulling in some common Javascripts
remove app/assets/Javascripts/application.js
exist app/assets/Javascripts
create app/assets/Javascripts/application.js
Pulling in some common stylesheets
remove app/assets/stylesheets/application.css
exist app/assets/stylesheets
create app/assets/stylesheets/application.css.scss
create app/assets/stylesheets/bootstrap- override.css.scss
create app/assets/stylesheets/bootstrap-setting.css.scss
create app/assets/stylesheets/common.css.scss
Add coomon Javascripts to the standard application.js
Add common rake tasks
exist lib/tasks
create lib/tasks/dev.rake
insert Gemfile
insert Gemfile
create .rvmrc
create .powrc
run bundle install
Fetching gem metadata from https://rubygems.org/.............
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies............
Bundler could not find compatible versions for gem "sass":
In Gemfile:
anjlab-bootstrap-rails (= 2.3.1.2) ruby depends on
sass (>= 3.2) ruby

1
2
3
4
5
6
sass-rails (~> 4.0.3) ruby depends on

  sass (~> 3.2.2) ruby



compass-rails (~> 1.1.2) ruby depends on

  compass (>= 0.12.2) ruby depends on

    sass (<3.5, >= 3.3.13) ruby

Bundler could not find compatible versions for gem "rails":
In Gemfile:
auto-facebook (= 0.4) ruby depends on
rails (= 4.0.0) ruby



1
2
3
4
5
6
rails (= 4.1.2) ruby

  create  config/deploy.rb

  create  Capfile

  create  config/deploy

   exist  config/deploy

  create  config/deploy/assets.rb

Setting up capinstrano
Setting up database
create config/database.yml.example
run bundle exec rake db:create
/home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.10.2/lib/bundler/resolver.rb:345:in

1
2
block in verify_gemfile_dependencies_are_found!': Could not find gem 'sqlite3 (>= 0) ruby' in any of the gem sources listed in your Gemfile or available on this machine. (Bundler::GemNotFound)

    from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.10.2/lib/bundler/resolver.rb:323:in

each'
from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.10.2/lib/bundler/resolver.rb:323:in

1
2
verify_gemfile_dependencies_are_found!'

    from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.10.2/lib/bundler/resolver.rb:198:in

start'
from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.10.2/lib/bundler/resolver.rb:182:in

1
2
resolve'

    from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.10.2/lib/bundler/definition.rb:199:in

resolve'
from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.10.2/lib/bundler/definition.rb:139:in

1
2
specs'

    from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.10.2/lib/bundler/definition.rb:184:in

specs_for'
from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.10.2/lib/bundler/definition.rb:173:in

1
2
requested_specs'

    from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.10.2/lib/bundler/environment.rb:18:in

requested_specs'
from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.10.2/lib/bundler/runtime.rb:13:in

1
2
setup'

    from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.10.2/lib/bundler.rb:126:in

setup'
from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.10.2/lib/bundler/setup.rb:18:in

1
2
'

    from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in

require'
from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in

1
2
3
4
5
6
7
8
9
require'

Configuring app

      create  app/models/setting.rb

      create  config/config.yml

      create  config/config.yml.example

create_initializers

       exist  config/initializers

      create  config/initializers/seo_helper.rb

/home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bootstrappers-4.2.1.1/lib/bootstrappers/actions.rb:12:in

replace_in_file': /Application.routes.draw do.*end/m not found in config/routes.rb (RuntimeError)
from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bootstrappers-4.2.1.1/lib/bootstrappers/app_builder.rb:90:in

1
2
remove_routes_comment_lines'

    from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-4.1.2/lib/rails/generators/app_base.rb:133:in

build'
from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bootstrappers-4.2.1.1/lib/bootstrappers/generators/app_generator.rb:125:in

1
2
remove_routes_comment_lines'

    from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:27:in

run'
from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in

1
2
invoke_command'

    from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/group.rb:230:in

dispatch'
from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:115:in

1
2
invoke'

    from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bootstrappers-4.2.1.1/lib/bootstrappers/generators/app_generator.rb:28:in

bootstrappers_customization'
from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:27:in

1
2
run'

    from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in

invoke_command'
from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/group.rb:230:in

1
2
dispatch'

    from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:115:in

invoke'
from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bootstrappers-4.2.1.1/lib/bootstrappers/generators/app_generator.rb:10:in

1
2
finish_template'

    from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:27:in

run'
from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in

1
2
invoke_command'

    from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in

block in invoke_all'
from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in

1
2
each'

    from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in

map'
from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in

1
2
invoke_all'

    from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/group.rb:232:in

dispatch'
from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/base.rb:440:in

1
2
start'

    from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bootstrappers-4.2.1.1/bin/bootstrappers:12:in

'
from /home/vagrant/.rbenv/versions/2.1.2/bin/bootstrappers:23:in

1
2
load'

    from /home/vagrant/.rbenv/versions/2.1.2/bin/bootstrappers:23:in

'
vagrant@vagrant-ubuntu-trusty-64:~$


   



推荐阅读
author-avatar
旺仔牛奶糖2702938317
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有