Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

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

I have encountered this error "ImportError: 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.


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 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 3677 times
translations en
posted 4 years ago by
Esen Sagynov
updated 4 years ago by
View revisions
Share this article