On 12/2/05, Richard Lyman <[EMAIL PROTECTED]> wrote: > I guess I should also ask - can I? > > I wanting to get the ncurses ruby library available on my CS account...
Simple answer is yes. It won't be completely transparent however. What you can do is have your own ruby lib directory (e.g. ~/lib/ruby/) then add that to the ruby load path. To make that work, there's two options. One, set the appropriate environment variable, and the library will be immediately available to all your scripts via a simple require. Unfortunately, I don't know off the top of my head which environment variable that is. But I know it's there. The second option is the prepend to the $LOAD_PATH array in your script itself. Ala: $LOAD_PATH.unshift( '~/lib/ruby/' ) require 'my_local_lib' This is the technique rails uses to localize how it finds all your classes, etc. > ... speaking of which... are we allowed to occasionally run > applications that listen for connections from the localhost on ports > above 1028? For that one, I have no idea. You'll probably have to ask a CS admin. Jacob Fugal -------------------- BYU Unix Users Group http://uug.byu.edu/ The opinions expressed in this message are the responsibility of their author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
