bundle install > 'mkdir': Invalid argument - C:/? (Errno::EINVAL)

599 views
Skip to first unread message

Jason N

unread,
Sep 8, 2010, 5:32:10 PM9/8/10
to ruby-bundler

I receive the following error when attempting to run "bundle install":

At line:207 in bundler.rb the (path) variable is "?" rather than a
genuine path. How has this happened?

Fetching source index for http://rubygems.org/
C:/Ruby192/lib/ruby/1.9.1/fileutils.rb:243:in `mkdir': Invalid
argument - C:/? (Errno::EINVAL)
from C:/Ruby192/lib/ruby/1.9.1/fileutils.rb:243:in `fu_mkdir'
from C:/Ruby192/lib/ruby/1.9.1/fileutils.rb:217:in `block (2
levels) in mkdir_p'
from C:/Ruby192/lib/ruby/1.9.1/fileutils.rb:215:in
`reverse_each'
from C:/Ruby192/lib/ruby/1.9.1/fileutils.rb:215:in `block in
mkdir_p'
from C:/Ruby192/lib/ruby/1.9.1/fileutils.rb:201:in `each'
from C:/Ruby192/lib/ruby/1.9.1/fileutils.rb:201:in `mkdir_p'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.0/lib/
bundler.rb:207:in `mkdir_p'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.0/lib/
bundler/installer.rb:39:in `run'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.0/lib/
bundler/installer.rb:8:in `install'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.0/lib/
bundler/cli.rb:217:in `install'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.0/lib/
bundler/vendor/thor/task.rb:22:in `run'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.0/lib/
bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.0/lib/
bundler/vendor/thor.rb:246:in `dispatch'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.0/lib/
bundler/vendor/thor/base.rb:389:in `start'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.0/bin/
bundle:13:in `<top (required)>'
from C:/ruby192/bin/bundle:19:in `load'
from C:/ruby192/bin/bundle:19:in `<main>'

Windows environment.

(Ceaveat, I'm behind a firewall, so I'm running it using rubysspi via
the following command: ruby -rspa 'C:\ruby192\bin\bundle' install...
this works fine for installing gems, so I suspect this should be
working fine for this)


J

Andre Arko

unread,
Sep 8, 2010, 6:39:05 PM9/8/10
to ruby-b...@googlegroups.com
On Sep 8, 2010, at 2:32 PM, Jason N wrote:
> At line:207 in bundler.rb the (path) variable is "?" rather than a
> genuine path. How has this happened?

You've got me there, I have no idea. Please refer to http://github.com/carlhuda/bundler/blob/master/ISSUES.md for instructions on submitting bug reports to the tracker. Thanks!

— Andre

Jason N

unread,
Sep 8, 2010, 7:23:04 PM9/8/10
to ruby-bundler
Actually, I'm just digging through the stack trace and source code...

Line:39 of installer.rb has:

Bundler.mkdir_p(Bundler.bundle_path) unless File.exist?
(Bundler.bundle_path)

And Bundler.bundle_path appears to be:

irb(main):005:0* Bundler.bundle_path
=> #<Pathname:C:/?/ruby/1.9.1>

more tk

Reply all
Reply to author
Forward
0 new messages