On Wed, Aug 19, 2009 at 7:24 AM, David Chelimsky<[email protected]> wrote:
> 2009/8/19 Maciej Bliziński <[email protected]>:
>> On Tue, Aug 18, 2009 at 6:54 PM, David Chelimsky<[email protected]> wrote:
>>> I really don't have any ideas. I did run into an unrelated problem
>>> (manifest was out of date) and just pushed the fix for that. I'm able
>>> to build the gem using Ruby 1.8.7 with no warnings or errors.
>>>
>>> Anybody else here familiar w/ Solaris/Ruby idiosyncrasies?
>>
>> I checked it under Ubuntu Hardy:
>>
>> $ rake --version
>> rake, version 0.8.1
>> $ gem --version
>> 1.1.1
>>
>> $ git clone git://github.com/dchelimsky/rspec.git
>> $ cd rspec
>> $ rake gem
>> (in /home/maciej/src/rspec)
>> rake aborted!
>> undefined method `gem' for main:Object
>> /home/maciej/src/rspec/Rakefile:2
>> (See full trace by running task with --trace)
>>
>> The same symptoms... it could due to gem version 1.1.1, though. Okay,
>> testing with a newer version, on a different Linux box:
>>
>> mac...@fennel ~/src $ git clone git://github.com/dchelimsky/rspec.git
>> Initialized empty Git repository in /home/maciej/src/rspec/.git/
>> remote: Counting objects: 56169, done.
>> remote: Compressing objects: 100% (12694/12694), done.
>> remote: Total 56169 (delta 41074), reused 55651 (delta 40664)
>> Receiving objects: 100% (56169/56169), 7.05 MiB | 1360 KiB/s, done.
>> Resolving deltas: 100% (41074/41074), done.
>> mac...@fennel ~/src $ cd rspec
>> mac...@fennel ~/src/rspec $ rake gem
>> (in /home/maciej/src/rspec)
>> rake aborted!
>> Could not find RubyGem hoe (>= 2.0.0)
>> /home/maciej/src/rspec/Rakefile:2
>> (See full trace by running task with --trace)
>> mac...@fennel ~/src/rspec $ rake --version
>> rake, version 0.8.7
>> mac...@fennel ~/src/rspec $ gem --version
>> 1.3.1
>>
>> So, the same symptoms, tested on Ubuntu Hardy, Gentoo and Solaris 10.
>
> Not really the same symptoms. "Could not find RubyGem hoe" is not the
> same issue as "undefined method `gem'" The gem problem is related to
> outdated versions of rubygems. The hoe problem is solved with "gem
> install hoe"

To clarify - try, on the last linux box you described:

$ gem install hoe
$ rake gem

You may need other gems at this point, but if you do you'll get error
messages like "Could not find RubyGem foo," in which case you would
then say:

$ gem install foo

You're very close. Let us know when you get it working.

Cheers,
David

>
> HTH,
> David
>
>> It's weird that you can't reproduce the issue. Perhaps try with a
>> fresh system? I install: ruby, rubygems, rake, git. Then the above
>> sequence.
>>
>> Maciej
>> _______________________________________________
>> rspec-users mailing list
>> [email protected]
>> http://rubyforge.org/mailman/listinfo/rspec-users
>>
>
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to