Open Source RDBMS - Seamless, Scalable, Stable and Free

English | 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
문서 정보
viewed 1307 times
번역 en
작성자
posted 작년
Esen Sagynov
공헌자
마지막 수정시간 작년
변경 내역 보기
Share this article