librelist archives

« back to archive

Build failure on GNU/Linux.

Build failure on GNU/Linux.

From:
Abhijit Hoskeri
Date:
2010-08-20 @ 05:39
abhijit@refactor:~/play/projects/shoes$ rake1.9.1 
(in /home/abhijit/play/projects/shoes)
rake aborted!
undefined method `path' for Gem:Module
/usr/lib/ruby/1.9.1/rubygems/source_index.rb:68:in `installed_spec_directories'
/usr/lib/ruby/1.9.1/rubygems/source_index.rb:58:in `from_installed_gems'
/usr/lib/ruby/1.9.1/rubygems.rb:883:in `source_index'
/usr/lib/ruby/1.9.1/rubygems/gem_path_searcher.rb:81:in `init_gemspecs'
/usr/lib/ruby/1.9.1/rubygems/gem_path_searcher.rb:13:in `initialize'
/usr/lib/ruby/1.9.1/rubygems.rb:841:in `new'
/usr/lib/ruby/1.9.1/rubygems.rb:841:in `block in searcher'
<internal:prelude>:10:in `synchronize'
/usr/lib/ruby/1.9.1/rubygems.rb:840:in `searcher'
/usr/lib/ruby/1.9.1/rubygems.rb:479:in `find_files'
/usr/lib/ruby/1.9.1/rubygems.rb:983:in `load_plugins'
/usr/lib/ruby/1.9.1/rubygems.rb:1139:in `<top (required)>'
<internal:lib/rubygems/custom_require>:29:in `require'
<internal:lib/rubygems/custom_require>:29:in `require'
/home/abhijit/play/projects/shoes/Rakefile:1:in `<top (required)>'
/usr/lib/ruby/1.9.1/rake.rb:2373:in `load'
/usr/lib/ruby/1.9.1/rake.rb:2373:in `raw_load_rakefile'
/usr/lib/ruby/1.9.1/rake.rb:2007:in `block in load_rakefile'
/usr/lib/ruby/1.9.1/rake.rb:2058:in `standard_exception_handling'
/usr/lib/ruby/1.9.1/rake.rb:2006:in `load_rakefile'
/usr/lib/ruby/1.9.1/rake.rb:1991:in `run'
/usr/bin/rake1.9.1:31:in `<main>'

But Gem.path is defined.

abhijit@refactor:~/play/projects/shoes$ irb1.9.1 
>> Gem.path
=> ["/home/abhijit/.gem/ruby/1.9.1", "/usr/lib/ruby/gems/1.9.1"]
>> 

I am running Debian Unstable and have the following ruby packages installed.

ii  libruby1.9.1              1.9.2~svn28788-1
ii  libwirble-ruby1.9.1       0.1.3-2         
ii  ri1.9.1                   1.9.2~svn28788-1
ii  ruby1.9.1                 1.9.2~svn28788-1
ii  ruby1.9.1-dev             1.9.2~svn28788-1
ii  rubygems1.9.1             1.3.7-1         

-Abhijit

Re: [shoes] Build failure on GNU/Linux.

From:
Cecil Coupe
Date:
2010-08-20 @ 06:05
On Fri, 2010-08-20 at 11:09 +0530, Abhijit Hoskeri wrote:
Do you have 1.9.2 pretending to be 1.9.1 ?

> ii  libruby1.9.1              1.9.2~svn28788-1
> ii  libwirble-ruby1.9.1       0.1.3-2         
> ii  ri1.9.1                   1.9.2~svn28788-1
> ii  ruby1.9.1                 1.9.2~svn28788-1
> ii  ruby1.9.1-dev             1.9.2~svn28788-1
> ii  rubygems1.9.1             1.3.7-1         
> 
> -Abhijit

Re: [shoes] Build failure on GNU/Linux.

From:
Devyn Cairns
Date:
2010-08-20 @ 08:32
Yeah, I noticed that too. I don't think Shoes builds with 1.9.2; please
downgrade to 1.9.1

On Thu, Aug 19, 2010 at 11:05 PM, Cecil Coupe <ccoupe@cableone.net> wrote:

> On Fri, 2010-08-20 at 11:09 +0530, Abhijit Hoskeri wrote:
> Do you have 1.9.2 pretending to be 1.9.1 ?
>
> > ii  libruby1.9.1              1.9.2~svn28788-1
> > ii  libwirble-ruby1.9.1       0.1.3-2
> > ii  ri1.9.1                   1.9.2~svn28788-1
> > ii  ruby1.9.1                 1.9.2~svn28788-1
> > ii  ruby1.9.1-dev             1.9.2~svn28788-1
> > ii  rubygems1.9.1             1.3.7-1
> >
> > -Abhijit
>
>
>


-- 
    ~devyn

Re: [shoes] Build failure on GNU/Linux.

From:
Abhijit Hoskeri
Date:
2010-08-20 @ 13:14
I got it working with 1.9.2.

The problem was caused by the fact that the default ruby on my box was
not 1.9.2.
This commit makes it do the right thing when that is the case.

http://github.com/hoskeri/shoes/commit/b9fdf97f27a5053ac11296643fa1d5b141127ac8

The above, combined with Devyn Cairns patch to change the load path
makes the build succeed for me.

-Abhijit

Re: [shoes] Build failure on GNU/Linux.

From:
Devyn Cairns
Date:
2010-08-21 @ 00:54
On Fri, Aug 20, 2010 at 6:14 AM, Abhijit Hoskeri
<abhijithoskeri@gmail.com>wrote:

> I got it working with 1.9.2.
>
> The problem was caused by the fact that the default ruby on my box was
> not 1.9.2.
> This commit makes it do the right thing when that is the case.
>
>
> http://github.com/hoskeri/shoes/commit/b9fdf97f27a5053ac11296643fa1d5b141127ac8
>
> The above, combined with Devyn Cairns patch to change the load path
> makes the build succeed for me.
>

Just wanted to correct you and give credit to Steveā€”I didn't write that
patch, Steve did, but the mailing list wasn't working for him so he asked me
to send the message.


>
> -Abhijit
>



-- 
    ~devyn

Re: [shoes] Build failure on GNU/Linux.

From:
Steve Klabnik
Date:
2010-08-20 @ 13:48
We can't be sure that things such as the changes to threading don't
cause larger problems, though. We made a group decision a while back
to stick with 1.9.1 for now:

http://librelist.com/browser//shoes/2010/6/27/1-8-or-1-9/#f7ddbaad925416cfd8fd5c65d246251f

I don't mind getting the bump to 1.9.2 within the next few versions,
though. Have you tested all of the examples when running under 1.9.2?

On Fri, Aug 20, 2010 at 9:14 AM, Abhijit Hoskeri
<abhijithoskeri@gmail.com> wrote:
> I got it working with 1.9.2.
>
> The problem was caused by the fact that the default ruby on my box was
> not 1.9.2.
> This commit makes it do the right thing when that is the case.
>
> http://github.com/hoskeri/shoes/commit/b9fdf97f27a5053ac11296643fa1d5b141127ac8
>
> The above, combined with Devyn Cairns patch to change the load path
> makes the build succeed for me.
>
> -Abhijit
>

Re: [shoes] Build failure on GNU/Linux.

From:
Abhijit Hoskeri
Date:
2010-08-20 @ 13:53
All the 'advanced' examples that I have run so far seem to have worked.
I guess we will find out as more and more people start hacking Shoes again!

But we will never know for 'sure' unless shoes has a test suite of some kind.

-Abhijit

Re: [shoes] Build failure on GNU/Linux.

From:
Steve Klabnik
Date:
2010-08-20 @ 14:00
Absolutely. I'm going to make another thread to discuss this again.

On Fri, Aug 20, 2010 at 9:53 AM, Abhijit Hoskeri
<abhijithoskeri@gmail.com> wrote:
> All the 'advanced' examples that I have run so far seem to have worked.
> I guess we will find out as more and more people start hacking Shoes again!
>
> But we will never know for 'sure' unless shoes has a test suite of some kind.
>
> -Abhijit
>

Re: [shoes] Build failure on GNU/Linux.

From:
ashbb
Date:
2010-08-20 @ 14:55
Hi Abhijit,

Did you succeed building Shoes for Linux with Ruby 1.9.2?

Awesome! Thank you for the great information.

But for Windows, there are more tough problems to solve. :(

> I guess we will find out as more and more people start hacking Shoes
again!
Yes!!
Let's go on hacking Shoes. Please help us. ;-)

Cheers,
ashbb

Re: [shoes] Build failure on GNU/Linux.

From:
Cecil Coupe
Date:
2010-08-20 @ 06:01
Hi,

  In my experience, the rakefile doesn't know how to detect that it was
invoked by $ rake1.9.1 and modify its behavior to call gem1.9.1 
  If possible setup soft links to ruby, rake and gem that point to the
1.9.1 version.  If you don't have multiple versions of ruby, then 'rake'
should work. If you have multiple versions of ruby and gems you'll need
something like RVM.

--Cecil

On Fri, 2010-08-20 at 11:09 +0530, Abhijit Hoskeri wrote:
> abhijit@refactor:~/play/projects/shoes$ rake1.9.1 
> (in /home/abhijit/play/projects/shoes)
> rake aborted!
> undefined method `path' for Gem:Module
> /usr/lib/ruby/1.9.1/rubygems/source_index.rb:68:in `installed_spec_directories'
> /usr/lib/ruby/1.9.1/rubygems/source_index.rb:58:in `from_installed_gems'
> /usr/lib/ruby/1.9.1/rubygems.rb:883:in `source_index'
> /usr/lib/ruby/1.9.1/rubygems/gem_path_searcher.rb:81:in `init_gemspecs'
> /usr/lib/ruby/1.9.1/rubygems/gem_path_searcher.rb:13:in `initialize'
> /usr/lib/ruby/1.9.1/rubygems.rb:841:in `new'
> /usr/lib/ruby/1.9.1/rubygems.rb:841:in `block in searcher'
> <internal:prelude>:10:in `synchronize'
> /usr/lib/ruby/1.9.1/rubygems.rb:840:in `searcher'
> /usr/lib/ruby/1.9.1/rubygems.rb:479:in `find_files'
> /usr/lib/ruby/1.9.1/rubygems.rb:983:in `load_plugins'
> /usr/lib/ruby/1.9.1/rubygems.rb:1139:in `<top (required)>'
> <internal:lib/rubygems/custom_require>:29:in `require'
> <internal:lib/rubygems/custom_require>:29:in `require'
> /home/abhijit/play/projects/shoes/Rakefile:1:in `<top (required)>'
> /usr/lib/ruby/1.9.1/rake.rb:2373:in `load'
> /usr/lib/ruby/1.9.1/rake.rb:2373:in `raw_load_rakefile'
> /usr/lib/ruby/1.9.1/rake.rb:2007:in `block in load_rakefile'
> /usr/lib/ruby/1.9.1/rake.rb:2058:in `standard_exception_handling'
> /usr/lib/ruby/1.9.1/rake.rb:2006:in `load_rakefile'
> /usr/lib/ruby/1.9.1/rake.rb:1991:in `run'
> /usr/bin/rake1.9.1:31:in `<main>'
> 
> But Gem.path is defined.
> 
> abhijit@refactor:~/play/projects/shoes$ irb1.9.1 
> >> Gem.path
> => ["/home/abhijit/.gem/ruby/1.9.1", "/usr/lib/ruby/gems/1.9.1"]
> >> 
> 
> I am running Debian Unstable and have the following ruby packages installed.
> 
> ii  libruby1.9.1              1.9.2~svn28788-1
> ii  libwirble-ruby1.9.1       0.1.3-2         
> ii  ri1.9.1                   1.9.2~svn28788-1
> ii  ruby1.9.1                 1.9.2~svn28788-1
> ii  ruby1.9.1-dev             1.9.2~svn28788-1
> ii  rubygems1.9.1             1.3.7-1         
> 
> -Abhijit