Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

[Solved] CUBRID Python: ImportError: libcascci.so.8: cannot open shared object file: No such file or directory


I have encountered this error "ImportError: libcascci.so.8: cannot open shared object file: No such file or directory" when running my sample Python program on Ubuntu 12.04.2 using the CUBRID Python driver.

Solution

The problem was quite trivial: the environment variables haven't been set after CUBRID and the Python driver have been installed.

So, what I did is simply export the necessary environment variables.

In my case, CUBRID is installed using Chef Cookbook to /opt/cubrid. Considering this path, I set the necessary CUBRID environment variables as follows:

export CUBRID=/opt/cubrid
export LD_LIBRARY_PATH=$CUBRID/lib:$LD_LIBRARY_PATH
export CUBRID_DATABASES=$CUBRID/databases
export CUBRID_LANG=en_US
export PATH=$CUBRID/bin:$PATH

Done! And the problem is gone!

In your case if CUBRID is installed in another location, simply change the first command and set your path. If you still have problems, leave your comment below.

comments powered by Disqus
Page info
viewed 1672 times
translations en
Author
posted last year by
Esen Sagynov
Contributors
updated last year by
View revisions
Share this article