X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AD620385840E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1682627869; bh=cFhXhY/7KEYwsHXiUCmsgjl5c+qOyrlOrCwSaJnVuIU=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=OPXwMIDojwtp7iv8+z8ODS3Tlof6H8bhbrpga82gvulyhDUv1jU1M2SoM7XOpStBb IKEhfJVRGjQke+IaF/MsJmYsto9DeE0e4HHTwWdCx2on2NUuiYh0u8asnQSQd7Mh/n C+DsQqY4/CrWGukdk5R9uooe2ytQqN0uLCR3pz/k= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C4E143858D37 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682627854; x=1685219854; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gK9JbM+so6u5+04RTsMumJFdhW3EUa4MewJUCXReYEo=; b=RT3UFkGPpwggQxH88rb5V2/KKfHGkGeAV892YCO//0+Bs1/kHEQ8t0p58ntHZt93/l dc03f9fLxa/SPBXuzCnTxUzH1Apqe9K7fN5ShZKtKjV6Vq7mfwgQnEgpGmUgXrid0qtd 7kz8Uy+Sq1Gm/OVtXQJ/AAGNOy2AmQ8aO8AOyZRlxwDfywpJ1mURrAjkAUY5lUdG85Vg Y/AZ3g4deMI0HpvZpfpQuQDKCGUKnU+UFb5QgPiUYl8kiAJKwXxMPWZRDJnEx/BlL15p ob9EecM1nLI1S557LP8wJSgSbYppUxk/98dhx089hjyHvMzno9TQvjh0o175PXhlrZ6C CKeQ== X-Gm-Message-State: AC+VfDxNobqb+LrPhOtUUY/ykEgMq9rVPUas67KsmXeRMrCsNcu9Tu04 qu52q2SUPIHn9azfwC3Ht/0Xwm3kX4QHv1vaz+Up3YyO8K3flg== X-Google-Smtp-Source: ACHHUZ4mwoqEZpvDPhbA1uH9b0F9OPGItd5+pFQwF9ySng79BQ5+GaltFIie4hpUOju+6bp1wtdaSVgXBYIl/WhC3EU= X-Received: by 2002:a67:f50d:0:b0:42f:ee5c:4997 with SMTP id u13-20020a67f50d000000b0042fee5c4997mr1889490vsn.34.1682627853709; Thu, 27 Apr 2023 13:37:33 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 28 Apr 2023 05:36:57 +0900 Message-ID: Subject: Re: Problems with asciidoctor gem after ruby update To: cygwin AT cygwin DOT com X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Daisuke Fujimura via Cygwin Reply-To: Daisuke Fujimura Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 33RKcDYf009290 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 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 -- 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