* [gentoo-user] Ruby problems
@ 2021-04-20 14:40 Peter Humphrey
2021-04-20 14:56 ` tastytea
0 siblings, 1 reply; 3+ messages in thread
From: Peter Humphrey @ 2021-04-20 14:40 UTC (permalink / raw
To: gentoo-user
Hello list,
Has anyone here succeeded in building a new system since the recent Ruby
language upgrade? I keep being thwarted by failure such as this typical one:
>>> Install dev-ruby/rake-13.0.3-r1 into /var/tmp/portage/dev-ruby/
rake-13.0.3-r1/image
* Running install phase for ruby26 ...
* Running install phase for ruby27 ...
Traceback (most recent call last):
3: from <internal:gem_prelude>:1:in `<internal:gem_prelude>'
2: from <internal:gem_prelude>:1:in `require'
1: from /usr/lib64/ruby/2.7.0/rubygems.rb:16:in `<top (required)>'
/usr/lib64/ruby/2.7.0/rubygems.rb:16:in `require': cannot load such file --
rubygems/compatibility (LoadError)
* ERROR: dev-ruby/rake-13.0.3-r1::gentoo failed (install phase):
* Unable to generate gemspec file.
Similar failures occur whatever profile I use (of the suitable ones), and no
matter whether I set amd64 or ~amd64 in make.conf.
It's possible that I had some unhelpful USE flags set, I suppose, but I did try
to minimise them.
In the end I went back to a month-old backup and updated that instead.
--
Regards,
Peter.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] Ruby problems
2021-04-20 14:40 [gentoo-user] Ruby problems Peter Humphrey
@ 2021-04-20 14:56 ` tastytea
2021-04-20 15:09 ` Peter Humphrey
0 siblings, 1 reply; 3+ messages in thread
From: tastytea @ 2021-04-20 14:56 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1589 bytes --]
On 2021-04-20 15:40+0100 Peter Humphrey <peter@prh.myzen.co.uk> wrote:
> Hello list,
>
> Has anyone here succeeded in building a new system since the recent
> Ruby language upgrade? I keep being thwarted by failure such as this
> typical one:
>
> >>> Install dev-ruby/rake-13.0.3-r1 into /var/tmp/portage/dev-ruby/
> rake-13.0.3-r1/image
> * Running install phase for ruby26 ...
> * Running install phase for ruby27 ...
> Traceback (most recent call last):
> 3: from <internal:gem_prelude>:1:in `<internal:gem_prelude>'
> 2: from <internal:gem_prelude>:1:in `require'
> 1: from /usr/lib64/ruby/2.7.0/rubygems.rb:16:in `<top
> (required)>' /usr/lib64/ruby/2.7.0/rubygems.rb:16:in `require':
> cannot load such file -- rubygems/compatibility (LoadError)
> * ERROR: dev-ruby/rake-13.0.3-r1::gentoo failed (install phase):
> * Unable to generate gemspec file.
>
> Similar failures occur whatever profile I use (of the suitable ones),
> and no matter whether I set amd64 or ~amd64 in make.conf.
>
> It's possible that I had some unhelpful USE flags set, I suppose, but
> I did try to minimise them.
>
> In the end I went back to a month-old backup and updated that instead.
>
That looks like you need to select the new ruby version with eselect.
It doesn't figure out the right version automatically, like python.
See also:
<https://archives.gentoo.org/gentoo-user/message/e7203a5fe084ab6f35351a814de3f6db>.
--
Get my PGP key with `gpg --locate-keys tastytea@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.
[-- Attachment #2: Digitale Signatur von OpenPGP --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] Ruby problems
2021-04-20 14:56 ` tastytea
@ 2021-04-20 15:09 ` Peter Humphrey
0 siblings, 0 replies; 3+ messages in thread
From: Peter Humphrey @ 2021-04-20 15:09 UTC (permalink / raw
To: gentoo-user
On Tuesday, 20 April 2021 15:56:29 BST tastytea wrote:
> That looks like you need to select the new ruby version with eselect.
> It doesn't figure out the right version automatically, like python.
I tried setting ruby_targets_ruby30 in package.use (and ruby26 and 27 at
different times). I also tried with no ruby targets specified. Shouldn't that
have been enough?
> See also:
> <https://archives.gentoo.org/gentoo-user/message/e7203a5fe084ab6f35351a814de
> 3f6db>.
Thanks. It's a pity that such important advice is hidden so effectively.
--
Regards,
Peter.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-04-20 15:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-20 14:40 [gentoo-user] Ruby problems Peter Humphrey
2021-04-20 14:56 ` tastytea
2021-04-20 15:09 ` Peter Humphrey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox