Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Lars Olsson
Unable to find libsqlite3.so at runtime [ reply ]  
2005-11-10 09:40
Hi, I've custom-built both Ruby and SQLite on a shared Debian box but I'm having some problems getting sqlite3-ruby to work correctly. It seems to install OK, but the lib seems unable to find libsqlite3.so at runtime.

First some details on my setup:

"Normal" Ruby (setup by my ISP, I don't use it) lives in /usr (/usr/bin, /usr/lib etc.)

My custom-built Ruby lives in /home/username/custom (/home/username/custom/bin, /home/username/custom/lib etc.)

My custom-built SQLite lives in /home/username/custom (/home/username/custom/bin, /home/username/custom/lib etc.)

When I install sqlite3-ruby as a gem I have to specify the location of sqlite3.h:
gem install sqlite3-ruby --remote -- --with-sqlite-include=/home/username/custom/include

At runtime, sqlite3-ruby cannot find libsqlite3.so unless I explicitly set the LD_LIBRARY_PATH environment variable to point at /home/username/custom/lib.

Is it possible to let sqlite3-ruby know where to find libsqlite3.so without using LD_LIBRARY_PATH? Is it possible to set it
when compiling Ruby or installing the gem?


Kindly

/Lasso