X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:references:subject:to :content-type; q=dns; s=default; b=Usk2DRgOTGvdZS7JkSVJ3ZoiQYCpa nPxUDL63eLLsM++NTmJ30EE7IW3nXDseiZ/u+xb8wdtKZup7PczzwKjna1OyJ4uu mthTFtY/VywKEj5wh81xz9g+kpzz3/bFBPqXv3hde3YcPsBUhdK97+khqc5Sc4FU aBC1Uy0pINYimQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:references:subject:to :content-type; s=default; bh=5vAHsX04s2e0VwS76rBf32QcdOQ=; b=RN7 t7CvK8Y30v+7YUvLzAnr8gSNcSQ6QxnLPttRo92Huy7L8xx8VyobzAlmxHC8kefB puFmK4E0se6XGkHxS7QYmdfLjExr4vAMVYvM4Qwnq+sRdmPlbWFe4scsXesMFuOv OlTZwhWfaickKPP1BGW8OUA89MVFhUS7ATmbUJVM= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 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== Message-ID: <5cb67130.1c69fb81.6d86f.6716@mx.google.com> Date: Tue, 16 Apr 2019 17:20:00 -0700 (PDT) From: Steven Penny References: Subject: Re: Cygwin Ruby and $LOAD_PATH To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=utf8; format=flowed User-Agent: Tryst/2.8.0 (cup.github.io/suede/tryst) 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