From: Panagiotis Atmatzidis Date: 2012-11-18T19:39:57+09:00 Subject: Re: adding load_path --Apple-Mail=_85ACCC34-7909-4D33-B39F-72E78377CF33 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hello, Why don't you try RVM. It will save you from dealing with many = circumstances that need 'root privs' and deals with all the paths and = snags that you're trying to solve. https://rvm.io/ On 18 =CE=9D=CE=BF=CE=B5 2012, at 08:11 , Jia Hu = wrote: > Hi all: >=20 > In Ubuntu, I have to install a program into my home directory because = I do not have the privilege to install in the usr/local/bin and = usr/local/lib directory. >=20 > ~/OT/usr/local/lib/site_ruby/*.so # many so files > ~/OT/usr/local/lib/site_ruby/1.8/ > ~/OT/usr/local/lib/site_ruby/1.8/x86_64-linux/*.so # = includes many .so files > ~/OT/usr/local/lib/site_ruby/1.8/OT.rb = # load a number of *.so files located in "x86_64-linux/" > ~/OT/usr/local/lib/site_ruby/1.8/OT/RT/RT.rb = # RT.rb has " require 'OT' " >=20 > There are load errors in RT.rb and OT.rb >=20 > It works perfectly if I put in the /usr/local directory instead of = home but I do not have the permission. >=20 > I have add system search path ~/OT/usr/local/lib/site_ruby/1.8/ and = ~/OT/usr/local/lib/site_ruby/1.8/x86_64-linux/ but it still does not = work. >=20 > So my question is that how to configure to make the ruby or system = search the lib and .rb files? I use tcsh. >=20 > Thanks, >=20 > JH Panagiotis (atmosx) Atmatzidis email: atma@convalesco.org URL: http://www.convalesco.org GnuPG ID: 0xE736C6A0 gpg --keyserver x-hkp://pgp.mit.edu --recv-keys 0xE736C6A0 -- The wise man said: "Never argue with an idiot. They bring you down to = their level and beat you with experience." --Apple-Mail=_85ACCC34-7909-4D33-B39F-72E78377CF33 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 https://rvm.io/


=
On 18 =CE=9D=CE=BF=CE=B5 2012, at 08:11 , Jia Hu <hujia06@gmail.com> = wrote:

Hi all:

In Ubuntu, I have to install a = program into my home directory because I do not have = the privilege to install in the usr/local/bin and = usr/local/lib = directory.

~/OT/usr/local/lib/site_ruby/*.so =  # many so files
=
~/OT/usr/local/lib/site_ruby/1.8/
~/OT/usr/local/lib/site_r= uby/1.8/x86_64-linux/*.so             =      #  includes many .so = files
~/OT/usr/local/lib/site_ruby/1.8/OT.rb     =                     =                # load a number = of    *.so files located in "x86_64-linux/"
~/OT/usr/local/lib/site_ruby/1.8/OT/RT/RT.rb       =                     =    # RT.rb  has  "  require 'OT'   =  "

There are load errors in RT.rb =  and OT.rb

It works perfectly if I put in the /usr/local directory instead of home = but I do not have the permission.

I have add = system search path ~/OT/usr/local/lib/site_ruby/1.8/ = and ~/OT/usr/local/lib/site_ruby/1.8/x86_64-linux/ but it still = does not work.

So my question is that how to configure to make the = ruby or system search the lib and .rb files?  I use = tcsh.

Thanks,

JH


Panagiotis (atmosx) Atmatzidis

email: atma@convalesco.org
URL: = http://www.convalesco.org
GnuPG ID: 0xE736C6A0
gpg = --keyserver x-hkp://pgp.mit.edu --recv-keys 0xE736C6A0
--
The = wise man said: "Never argue with an idiot. They bring you = down to their level and beat you with experience."

= --Apple-Mail=_85ACCC34-7909-4D33-B39F-72E78377CF33--