From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20445 invoked by alias); 17 Apr 2019 00:20:05 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 20432 invoked by uid 89); 17 Apr 2019 00:20:04 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=005, HX-Languages-Length:1822, rescue, 0.05 X-HELO: mail-ot1-f54.google.com Received: from mail-ot1-f54.google.com (HELO mail-ot1-f54.google.com) (209.85.210.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 17 Apr 2019 00:20:03 +0000 Received: by mail-ot1-f54.google.com with SMTP id k21so19241588otf.1 for ; Tue, 16 Apr 2019 17:20:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:references:subject:to:user-agent; bh=p0rsds76ebCRN8dW2hkpIIWR8ECOBY7qc2tc4aKCjIo=; b=PNAg7+YsIouHml5vy/yjIgqL4amLMuSXBRkitfV9xOgH2uybJejkHMhbdxrdtB1jsA BYRlyLUGskzjfpuLj0LHqOTI4cCAUMoPSpuwuC9WtKYFV4mZmLQnAtFAXdLzUhFXZJWm 0h4EobN04aHVgv9Pc+gwqGt+/di8AnAQSys0Q6a2M3FGU6mzdrbF2SUbo8jSKO0kac+p i3oQfl52Rtu98j3KhfzpAYFlMbbtVrR827YdYfdbpZsi9JyodE0ciiSiLHeIRaUOqyZb 9mhzSjc+cQint5zqxTyJCUu1YVeKVzbcoX1+EBk581663JI23vSO6lU2fegroqXMmDb0 4iRw== Return-Path: Received: from 07N ([2605:6000:9fc0:56:f5e9:d698:78ec:17bb]) by smtp.gmail.com with ESMTPSA id q82sm22385269oif.28.2019.04.16.17.19.59 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Apr 2019 17:20:00 -0700 (PDT) Message-ID: <5cb67130.1c69fb81.6d86f.6716@mx.google.com> Date: Wed, 17 Apr 2019 00:20:00 -0000 From: Steven Penny References: Subject: Re: Cygwin Ruby and $LOAD_PATH To: cygwin@cygwin.com Content-Type: text/plain; charset=utf8; format=flowed User-Agent: Tryst/2.8.0 (cup.github.io/suede/tryst) X-SW-Source: 2019-04/txt/msg00118.txt.bz2 On Tue, 16 Apr 2019 09:35:48, Yaakov Selkowitz wrote: >> $ org-ruby -d alpha.org >> Exception `LoadError' at >> /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:54 - > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > That doesn't look like it's from Cygwin's rubygems package. Correct. Not sure how that happened but Ive since deleted the files and reinstalled. However the error persists: $ org-ruby -d alpha.org Exception `LoadError' at /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55 - cannot load such file -- coderay I found a fix like this: diff --git a/lib/org-ruby/html_output_buffer.rb b/lib/org-ruby/html_output_buffer.rb index 9d6a061..c0d5f2e 100644 --- a/lib/org-ruby/html_output_buffer.rb +++ b/lib/org-ruby/html_output_buffer.rb @@ -44,6 +44,7 @@ module Orgmode rescue LoadError # Pygments is not supported so we try instead with CodeRay begin + gem 'coderay' require 'coderay' rescue LoadError # No code syntax highlighting However it turns out that was a red herring. The problem isnt $LOAD_PATH, the problem is my source file: $ cat alpha.org #+BEGIN_SRC rust fn main() { println!("alpha beta"); } #+END_SRC Coderay does not support Rust currently: https://github.com/rubychan/coderay/issues/208 If I try again with Ruby code it works fine, even without any patches: $ cat beta.org #+BEGIN_SRC ruby puts 'hello world' #+END_SRC $ org-ruby -d beta.org Exception `LoadError' at /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55 - cannot load such file -- coderay
puts 
'hello world
'

Thanks for the response - sorry for the noise. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple