From: Jia Hu Date: 2012-11-18T16:11:33+09:00 Subject: adding load_path --f46d04088d11c9995f04cebfb528 Content-Type: text/plain; charset=ISO-8859-1 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_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' " 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 --f46d04088d11c9995f04cebfb528 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi all:

In Ubuntu, I have to install a program into my h= ome directory because I do not have the=A0privilege=A0to install=A0in the u= sr/local/bin and usr/local/lib directory.

~/OT/usr= /local/lib/site_ruby/*.so =A0# many so files
~/OT/usr/local/lib/site_ruby/1.8/
~/OT/usr/local/lib/site_ru= by/1.8/x86_64-linux/*.so =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0# =A0includes m= any .so files
~/OT/usr/local/lib/site_ruby/1.8/OT.rb =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0# load a= number of =A0 =A0*.so files located in "x86_64-linux/"
~/OT/usr/local/lib/site_ruby/1.8/OT/RT/RT.rb =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0# RT.rb =A0has =A0" =A0require '= ;OT' =A0 =A0"

There are load errors in RT= .rb =A0and 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 s= earch path=A0~/OT/usr/local/lib/site_ruby/1.8/ and=A0~/OT/usr/local/lib/sit= e_ruby/1.8/x86_64-linux/ but it still does not work.

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

Thanks,

JH
--f46d04088d11c9995f04cebfb528--