tag:help.rubygems.org,2010-01-19:/discussions/problems/761-lib_dirs_glob-undefined-method-join-for-libstringRubyGems.org: Discussion 2012-09-07T03:13:07Ztag:help.rubygems.org,2010-01-19:Comment/108057262011-10-22T11:43:31Z2012-08-04T18:40:10Z`lib_dirs_glob': undefined method `join' for "lib":String<div><p>Hi,<br>
I'm getting this error from a fresh install of ruby 1.9.2 with
default rubygems & updated rubygems (and debian squeeze ruby
1.8.7 & default rubygems)</p>
<p>Here the complete log:<br>
ruby 1.9: <a href=
"http://pastie.org/2739968">http://pastie.org/2739968</a><br>
ruby 1.8: <a href=
"http://pastie.org/2739826">http://pastie.org/2739826</a></p>
<p>Everything worked good before a "bundle update"<br>
Searched 2hours this error without result</p>
<p>Thanks in advance</p></div>fooheytag:help.rubygems.org,2010-01-19:Comment/108057262012-08-04T18:47:23Z2012-08-04T18:47:23Z`lib_dirs_glob': undefined method `join' for "lib":String<div><p>Sorry, this comment was buried in our spam inbox.</p>
<p>Is this still happening?</p></div>Nick Quarantotag:help.rubygems.org,2010-01-19:Comment/108057262012-09-04T03:24:04Z2012-09-04T03:24:05Z`lib_dirs_glob': undefined method `join' for "lib":String<div><p>I'm having (what I think is) a similar problem, whenever I run
any <code>gem</code> commands. I'm working on writing my first gem,
and this started happening after I installed it.</p>
<p>Here's the output: <a href=
"http://pastie.org/4659979">http://pastie.org/4659979</a></p></div>Chris Van Pattentag:help.rubygems.org,2010-01-19:Comment/108057262012-09-04T03:49:08Z2012-09-04T03:49:08Z`lib_dirs_glob': undefined method `join' for "lib":String<div><p>Hey Chris.</p>
<p>Sounds like you've got a corrupted gem spec, probably from the
gem you're working on. My guess is that it's related to an old
version of RubyGems in the old version of Ruby you're using.
Whatever the gem name is, you should be able to cd into your gems
dir (somewhere in ~/.rvm), kill its specifications/ and cache/
folders, and start over.</p>
<p>The gem spec probably needs ["lib"] instead for some entry in
there…you could also just jump into the specifications/ dir
and manually edit it to fix it (and then rebuild your gem so this
doesn't happen anymore).</p>
<p>Overall this is a pretty gross bug…I'd try updating
RubyGems once you're done, hopefully this won't happen in later
versions.</p>
<p>-Nick</p></div>Nick Quarantotag:help.rubygems.org,2010-01-19:Comment/108057262012-09-04T03:57:16Z2012-09-04T03:57:17Z`lib_dirs_glob': undefined method `join' for "lib":String<div><p>Thanks Nick! Deleting the files in cache/ and specifications/
fixed it. I'll be more careful with my gemspecs going forward.</p></div>Chris Van Pattentag:help.rubygems.org,2010-01-19:Comment/108057262012-09-07T03:13:06Z2012-09-07T03:13:06Z`lib_dirs_glob': undefined method `join' for "lib":String<div><p>Woot!</p></div>Nick Quaranto