error on 'bundle install'

Hi all!! I use ubuntu 10 maverick, and when I try to create a
application with rails, the process blocks in "run bundle install".

This is the output:

[code]

      create
      create README.rdoc
      create Rakefile
      create config.ru
      create .gitignore
      create Gemfile
      create app
      create app/assets/images/rails.png
      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/mailers
      create app/models
      create app/views/layouts/application.html.erb
      create app/mailers/.gitkeep
      create app/models/.gitkeep
      create config
      create config/routes.rb
      create config/application.rb
      create config/environment.rb
      create config/environments
      create config/environments/development.rb
      create config/environments/production.rb
      create config/environments/test.rb
      create config/initializers
      create config/initializers/backtrace_silencers.rb
      create config/initializers/inflections.rb
      create config/initializers/mime_types.rb
      create config/initializers/secret_token.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 doc
      create doc/README_FOR_APP
      create lib
      create lib/tasks
      create lib/tasks/.gitkeep
      create lib/assets
      create lib/assets/.gitkeep
      create log
      create log/.gitkeep
      create public
      create public/404.html
      create public/422.html
      create public/500.html
      create public/favicon.ico
      create public/index.html
      create public/robots.txt
      create script
      create script/rails
      create test/fixtures
      create test/fixtures/.gitkeep
      create test/functional
      create test/functional/.gitkeep
      create test/integration
      create test/integration/.gitkeep
      create test/unit
      create test/unit/.gitkeep
      create test/performance/browsing_test.rb
      create test/test_helper.rb
      create tmp/cache
      create tmp/cache/assets
      create vendor/assets/javascripts
      create vendor/assets/javascripts/.gitkeep
      create vendor/assets/stylesheets
      create vendor/assets/stylesheets/.gitkeep
      create vendor/plugins
      create vendor/plugins/.gitkeep
         run bundle install

[/code]

And when I type CTRL-C, the output is this:

[code]
$
/usr/lib/ruby/gems/1.8/gems/bundler-1.0.22/lib/bundler/vendor/thor/shell/basic.rb:63:in
`flush': Broken pipe (Errno::EPIPE)
  from
/usr/lib/ruby/gems/1.8/gems/bundler-1.0.22/lib/bundler/vendor/thor/shell/basic.rb:63:in
`say'
  from
/usr/lib/ruby/gems/1.8/gems/bundler-1.0.22/lib/bundler/ui.rb:46:in
`error'
  from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.22/bin/bundle:19

[/code]

What's the problem??

Thank you very much!!!

Hi all!! I use ubuntu 10 maverick, and when I try to create a

application with rails, the process blocks in “run bundle install”.

This is the output:


> 
> 
>       create
> 
>       create  README.rdoc
> 
>       create  Rakefile
> 
>       create  [config.ru](http://config.ru)
> 
>       create  .gitignore
> 
>       create  Gemfile
> 
>       create  app
> 
>       create  app/assets/images/rails.png
> 
>       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/mailers
> 
>       create  app/models
> 
>       create  app/views/layouts/application.html.erb
> 
>       create  app/mailers/.gitkeep
> 
>       create  app/models/.gitkeep
> 
>       create  config
> 
>       create  config/routes.rb
> 
>       create  config/application.rb
> 
>       create  config/environment.rb
> 
>       create  config/environments
> 
>       create  config/environments/development.rb
> 
>       create  config/environments/production.rb
> 
>       create  config/environments/test.rb
> 
>       create  config/initializers
> 
>       create  config/initializers/backtrace_silencers.rb
> 
>       create  config/initializers/inflections.rb
> 
>       create  config/initializers/mime_types.rb
> 
>       create  config/initializers/secret_token.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  doc
> 
>       create  doc/README_FOR_APP
> 
>       create  lib
> 
>       create  lib/tasks
> 
>       create  lib/tasks/.gitkeep
> 
>       create  lib/assets
> 
>       create  lib/assets/.gitkeep
> 
>       create  log
> 
>       create  log/.gitkeep
> 
>       create  public
> 
>       create  public/404.html
> 
>       create  public/422.html
> 
>       create  public/500.html
> 
>       create  public/favicon.ico
> 
>       create  public/index.html
> 
>       create  public/robots.txt
> 
>       create  script
> 
>       create  script/rails
> 
>       create  test/fixtures
> 
>       create  test/fixtures/.gitkeep
> 
>       create  test/functional
> 
>       create  test/functional/.gitkeep
> 
>       create  test/integration
> 
>       create  test/integration/.gitkeep
> 
>       create  test/unit
> 
>       create  test/unit/.gitkeep
> 
>       create  test/performance/browsing_test.rb
> 
>       create  test/test_helper.rb
> 
>       create  tmp/cache
> 
>       create  tmp/cache/assets
> 
>       create  vendor/assets/javascripts
> 
>       create  vendor/assets/javascripts/.gitkeep
> 
>       create  vendor/assets/stylesheets
> 
>       create  vendor/assets/stylesheets/.gitkeep
> 
>       create  vendor/plugins
> 
>       create  vendor/plugins/.gitkeep
> 
>          run  bundle install
> 
> 
> 
> 
> 

And when I type CTRL-C, the output is this:


> $
> 
> /usr/lib/ruby/gems/1.8/gems/bundler-1.0.22/lib/bundler/vendor/thor/shell/basic.rb:63:in
> 
> `flush': Broken pipe (Errno::EPIPE)
> 
>   from
> 
> /usr/lib/ruby/gems/1.8/gems/bundler-1.0.22/lib/bundler/vendor/thor/shell/basic.rb:63:in
> 
> `say'
> 
>   from
> 
> /usr/lib/ruby/gems/1.8/gems/bundler-1.0.22/lib/bundler/ui.rb:46:in
> 
> `error'
> 
>   from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.22/bin/bundle:19
> 
> 
> 

Maybe for debugging it could be useful if you split the rails new process
in 2 pieces and add more logging to the bundle install.

$ rails --version
$ rails new new_app --skip-bundle # this will skip bundle install and should pass

$ cd new_app
$ view Gemfile # check it (if newest rails, should be 3.2.x)
$ bundle --verbose install # this will give you more logging info

HTH,

Peter

What’s the problem??

Thank you very much!!!

Posted via http://www.ruby-forum.com/.

You received this message because you are subscribed to the Google Groups “Ruby on Rails: Talk” group.

To post to this group, send email to rubyonrails-talk@googlegroups.com.

To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

http://be.linkedin.com/in/petervandenabeele

https://github.com/petervandenabeele

https://twitter.com/peter_v
http://rails.vandenabeele.com

http://coderwall.com/peter_v

gsm: +32-478-27.40.69
e-mail: peter@vandenabeele.com
skype: peter_v_be

BTW, this trick can also help keep code better compartmentalized if
you're working on multiple projects, which might need different
versions of various gems. Follow it up with:

$ cd new_app
$ bundle install --path vendor

and all the gems will be installed in new_app/vendor. :slight_smile:

-Dave