From: Quintus Date: 2011-05-14T17:49:36+09:00 Subject: Re: Find Ruby /bin/ location -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 13.05.2011 23:37, schrieb David Jacobs: > I want to create an install script that moves my library into the Ruby bin > directory. One problem: how do I find that directory programmatically? On > Linux I'd shell out to `which`, but that doesn't appear to be an option in > XP. require "rbconfig" puts RbConfig::CONFIG["bindir"] RbConfig is in the stdlib, so you don't have to install something. Vale, Marvin -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJNzkISAAoJELh1XLHFkqhah7kH/iPcpT2mA5btyERAVskrRtep 7asO2ATkmU0JkkMdeQ6XuNe9O6aNQt5zOYkG2HGzS+0Mga78VnLP74sf7Pn629jH v7XfDXOXxK97hBPYuYu0be9Ne/hNIfU+MuszAG7/bKgdp2ArM7kg2xs0WSnWq2eW 03arRL4+I9AFOnuFEQiYjA5i2J9Vh7RJoz+q+517rmSo+SrJowAMWhAufZwj7SmW jumiMB98jvvInyBgVAkfb54QfXNLKUI+UMVWeTEDuW2y72hSMPz6F3si3NFVy6/7 cRFMDbJ7FzsVU6mgZtfbjASThH/NSA9YN0IfcbcXJ+j6lQ9VsJqbrJd8yi2cVr8= =eBcs -----END PGP SIGNATURE-----