[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: wrapper script issue





Then I probably am not following what you're doing.  You don't show the
shebang lines in this message, but I thought you wanted your application
to use a custom wrapper script, and not run the packaged ruby1.8 directly.
On my system /usr/bin/ruby1.8 is a binary, and not a shell script as I
thought you were showing.


I replaced the ruby1.8 binary, in /usr/bin, with a wrapper script that sets an environment variable and then invokes the binary, which I moved to /etc/alternatives ( perhaps not exactly the way alternatives is meant to be used, but I'm kind of a noob )

Here's the wrapper script:

#!/bin/sh
export RUBYOPT=rubygems
exec /etc/alternatives/ruby1.8 "$@"


This script is at /usr/bin/ruby1.8 

Let me know if I'm doing something bizarre.  It's actually my effort at doing things the *right* way, so any advice would be accepted and welcomed. 

Reply to: