delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/04/16/00:02:06

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:to:subject:content-type;
q=dns; s=default; b=cgy8+rp2Ew4p3rcS74TIfVWX1AFgfn2TNdDc8ulBrRN
WzL9vPapb8l73Ranr2vgeO95HQJA0MHATgfPW+bc8TfaYWN7lW+yWI4f+ujVjdDZ
ORdJ79Y3yHod6cfHqJk7fF99XN4ozaeJVDcoYuWzXMKl+u0Gw+gr+ZqTMPtKIWpo
=
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:to:subject:content-type;
s=default; bh=U/mbljhfNephPQuWy4QgFlfJ4oU=; b=pQSxHtrvCxRnT9K3q
Uq0Kj7xldPziAUpG5fdOBa+/J1BPYcn3gxvDxiCRQhX4oBM1soLRQinKg/vkibBH
0XgCj8eo4eQAeknUyVtY/2YbfIyYPzWVUOCoHdPA+prmpDDd8SZ8XaSi10/kzZYv
px3rSbL0fkpn/6/1609EN3nbbk=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=-0.5 required=5.0 tests=BAYES_05,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:845, gem, H*MI:1c69fb81, Gems
X-HELO: mail-oi1-f173.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:to:subject:user-agent; bh=iTSP7ig0SVb6STu4nr3+ryK0Z2/VakfncruWXhFvPfw=; b=sxdFthz6CxF9C5HIShZjllaEfa6HMTqjd35zvg1z4OK/LVlzpg13wxoUgh/bMCM949 k7rmAXeo/CXF8WzMHgfJzu45chOX2xEl9MYaIYjp1GAK/rhV7ifb+QtyYT2Ubk5p2Sgk OZIloqzvudfx7lNrZVPf2Tjok11Lmr3Y2VFr44JbuvruedI18yEIGlFwkcylmUKq288H e9S7vjYku9DNgo65wTi03O2pQpGVUSRECSZAkWrAKtJduYJQGK3sYgj78cMTRnfy5c0Y sKz/n1i6Eib+nkTsgp2SK5fL2Mfxsq7ESKDx3QAr/TXgHjw9zdEYnL70AD3amtZ0jFuT omlA==
Message-ID: <5cb553ac.1c69fb81.54a46.50c7@mx.google.com>
Date: Mon, 15 Apr 2019 21:01:48 -0700 (PDT)
From: Steven Penny <svnpenn AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Cygwin Ruby and $LOAD_PATH
User-Agent: Tryst/2.8.0 (cup.github.io/suede/tryst)

Cygwin Ruby $LOAD_PATH is under "/usr":

    $ ruby -e 'puts $LOAD_PATH' | sort
    /usr/lib/ruby/2.3.0
    /usr/lib/ruby/vendor_ruby/2.3.0
    /usr/local/lib/ruby/site_ruby/2.3.0
    /usr/local/share/ruby/site_ruby
    /usr/share/gems/gems/did_you_mean-1.0.2/lib
    /usr/share/ruby/2.3.0
    /usr/share/ruby/vendor_ruby
    /usr/share/rubygems

but Gems get installed to "/home":

    $ gem install org-ruby coderay
    $ gem which org-ruby coderay
    /home/Steven/.gem/ruby/2.3.0/gems/org-ruby-0.9.12/lib/org-ruby.rb
    /home/Steven/.gem/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay.rb

This causes the Gems to not be found:

    $ cat alpha.org
    #+BEGIN_SRC rust
    fn main() {
      println!("alpha beta");
    }
    #+END_SRC

    $ org-ruby -d alpha.org
    Exception `LoadError' at
    /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:54 -
    cannot load such file -- coderay


--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019