I am doing some practice with clsql
. I want to connect my oracle server hence my connection function is;
(connect '("192.168.2.3" "xe" "username" "password") :database-type :oracle)
when i hit the return, the following error message shows up.
Couldn't load foreign libraries "libclntsh", "oci". (searched *FOREIGN-LIBRARY-SEARCH-PATHS*)
[Condition of type SIMPLE-ERROR]
I have already installed oracle-instantclient11.2-basic-11.2.0.1.0-1.i386.rpm
and define export LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client/lib
So, what else should I do to connect the server?
I was playing with oracle lately and found out that all you need is to put path to
libclntsh
into/etc/ld.conf.d/oracle.conf
My setup was following( redhat,centos - as root): downloaded from oracle
Create file
/etc/ld.so.conf.d/oracle.conf
:/usr/lib/oracle/12.1/client64/lib
then execute
ldconfig
Now as
clsql-oracle
is not inquicklisp
, I downloaded and extractedclsql-6.6.2
, thenand voila, it works