public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Problems with asciidoctor gem after ruby update
@ 2023-04-27 11:12 Daniel Abrahamsson
  2023-04-27 20:36 ` Daisuke Fujimura
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Abrahamsson @ 2023-04-27 11:12 UTC (permalink / raw)
  To: cygwin

Hi,

I’m not sure if the issue is cygwin-specific or not, but I do not have a linux box with a sufficiently new version of ruby to test with. The errors started showing up after the recent updates of the ruby and rubygems packages.

When installing asciidoctor via `gem install asciidoctor`, a asciidoctor "binary" is placed in "$HOME/bin". However, when running `asciidoctor` I get:

```
$ asciidoctor
/home/daab/bin/asciidoctor: line 6: /home/daab/bin/ruby: No such file or directory
```

The asciidoctor binary is looking for ruby in the wrong place (it should be looking for the system ruby).

Version output:
```
$ asciidoctor -v
Asciidoctor 2.0.18 [https://asciidoctor.org]
Runtime Environment (ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-cygwin]) (lc:UTF-8 fs:UTF-8 in:UTF-8 ex:UTF-8)
$ ruby -v
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-cygwin]
$ gem -v
3.4.12
```

The asciidcoctor binary on the upgraded system starts with these lines:

```
#!/bin/sh
# -*- ruby -*-
_=_\
=begin
bindir="${0%/*}"
exec "$bindir/ruby" "-x" "$0" "$@"
=end
#!/usr/bin/ruby.exe
#
# This file was generated by RubyGems.
```

On a non-upgraded system, we instead have:

```
#!/usr/bin/ruby.exe
#
# This file was generated by RubyGems.
#
# The application 'asciidoctor' is installed as part of a gem, and
# this file is here to facilitate running it.
#
```
require 'rubygems'

// Daniel


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problems with asciidoctor gem after ruby update
  2023-04-27 11:12 Problems with asciidoctor gem after ruby update Daniel Abrahamsson
@ 2023-04-27 20:36 ` Daisuke Fujimura
  2023-04-28 13:10   ` Daisuke Fujimura
  0 siblings, 1 reply; 4+ messages in thread
From: Daisuke Fujimura @ 2023-04-27 20:36 UTC (permalink / raw)
  To: cygwin

I apologize for any inconvenience caused.
Please wait a moment while I investigate.

On Thu, Apr 27, 2023 at 8:13 PM Daniel Abrahamsson via Cygwin
<cygwin@cygwin.com> wrote:
>
> Hi,
>
> I’m not sure if the issue is cygwin-specific or not, but I do not have a linux box with a sufficiently new version of ruby to test with. The errors started showing up after the recent updates of the ruby and rubygems packages.
>
> When installing asciidoctor via `gem install asciidoctor`, a asciidoctor "binary" is placed in "$HOME/bin". However, when running `asciidoctor` I get:
>
> ```
> $ asciidoctor
> /home/daab/bin/asciidoctor: line 6: /home/daab/bin/ruby: No such file or directory
> ```
>
> The asciidoctor binary is looking for ruby in the wrong place (it should be looking for the system ruby).
>
> Version output:
> ```
> $ asciidoctor -v
> Asciidoctor 2.0.18 [https://asciidoctor.org]
> Runtime Environment (ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-cygwin]) (lc:UTF-8 fs:UTF-8 in:UTF-8 ex:UTF-8)
> $ ruby -v
> ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-cygwin]
> $ gem -v
> 3.4.12
> ```
>
> The asciidcoctor binary on the upgraded system starts with these lines:
>
> ```
> #!/bin/sh
> # -*- ruby -*-
> _=_\
> =begin
> bindir="${0%/*}"
> exec "$bindir/ruby" "-x" "$0" "$@"
> =end
> #!/usr/bin/ruby.exe
> #
> # This file was generated by RubyGems.
> ```
>
> On a non-upgraded system, we instead have:
>
> ```
> #!/usr/bin/ruby.exe
> #
> # This file was generated by RubyGems.
> #
> # The application 'asciidoctor' is installed as part of a gem, and
> # this file is here to facilitate running it.
> #
> ```
> require 'rubygems'
>
> // Daniel
>
>
> --
> Problem reports:      https://cygwin.com/problems.html
> FAQ:                  https://cygwin.com/faq/
> Documentation:        https://cygwin.com/docs.html
> Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problems with asciidoctor gem after ruby update
  2023-04-27 20:36 ` Daisuke Fujimura
@ 2023-04-28 13:10   ` Daisuke Fujimura
  2023-05-01  6:36     ` Daniel Abrahamsson
  0 siblings, 1 reply; 4+ messages in thread
From: Daisuke Fujimura @ 2023-04-28 13:10 UTC (permalink / raw)
  To: cygwin

A corrected package has been released. (ruby-3.2.2-2)

On Fri, Apr 28, 2023 at 5:36 AM Daisuke Fujimura <booleanlabel@gmail.com> wrote:
>
> I apologize for any inconvenience caused.
> Please wait a moment while I investigate.
>
> On Thu, Apr 27, 2023 at 8:13 PM Daniel Abrahamsson via Cygwin
> <cygwin@cygwin.com> wrote:
> >
> > Hi,
> >
> > I’m not sure if the issue is cygwin-specific or not, but I do not have a linux box with a sufficiently new version of ruby to test with. The errors started showing up after the recent updates of the ruby and rubygems packages.
> >
> > When installing asciidoctor via `gem install asciidoctor`, a asciidoctor "binary" is placed in "$HOME/bin". However, when running `asciidoctor` I get:
> >
> > ```
> > $ asciidoctor
> > /home/daab/bin/asciidoctor: line 6: /home/daab/bin/ruby: No such file or directory
> > ```
> >
> > The asciidoctor binary is looking for ruby in the wrong place (it should be looking for the system ruby).
> >
> > Version output:
> > ```
> > $ asciidoctor -v
> > Asciidoctor 2.0.18 [https://asciidoctor.org]
> > Runtime Environment (ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-cygwin]) (lc:UTF-8 fs:UTF-8 in:UTF-8 ex:UTF-8)
> > $ ruby -v
> > ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-cygwin]
> > $ gem -v
> > 3.4.12
> > ```
> >
> > The asciidcoctor binary on the upgraded system starts with these lines:
> >
> > ```
> > #!/bin/sh
> > # -*- ruby -*-
> > _=_\
> > =begin
> > bindir="${0%/*}"
> > exec "$bindir/ruby" "-x" "$0" "$@"
> > =end
> > #!/usr/bin/ruby.exe
> > #
> > # This file was generated by RubyGems.
> > ```
> >
> > On a non-upgraded system, we instead have:
> >
> > ```
> > #!/usr/bin/ruby.exe
> > #
> > # This file was generated by RubyGems.
> > #
> > # The application 'asciidoctor' is installed as part of a gem, and
> > # this file is here to facilitate running it.
> > #
> > ```
> > require 'rubygems'
> >
> > // Daniel
> >
> >
> > --
> > Problem reports:      https://cygwin.com/problems.html
> > FAQ:                  https://cygwin.com/faq/
> > Documentation:        https://cygwin.com/docs.html
> > Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Problems with asciidoctor gem after ruby update
  2023-04-28 13:10   ` Daisuke Fujimura
@ 2023-05-01  6:36     ` Daniel Abrahamsson
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel Abrahamsson @ 2023-05-01  6:36 UTC (permalink / raw)
  To: Daisuke Fujimura, cygwin

> A corrected package has been released. (ruby-3.2.2-2)

Thank you! I can confirm the new pakcage solves the problem.

// Daniel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-05-01  6:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-27 11:12 Problems with asciidoctor gem after ruby update Daniel Abrahamsson
2023-04-27 20:36 ` Daisuke Fujimura
2023-04-28 13:10   ` Daisuke Fujimura
2023-05-01  6:36     ` Daniel Abrahamsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).