Unable to load dynamic library cubrid.so - libcascci.so.8
CUBRID Official Forum » Programming Languages » CUBRID-PHP » Unable to load dynamic library cubrid.so - libcascci.so.8
|
author
|
message
|
|
|
Post subject: Unable to load dynamic library cubrid.so - libcascci.so.8 Post date: 2010.12.08 |
|
registered: 05/31/2011 아이피: *.39.9.251 views: 91 |
Hello,
I installed Cubrid 2.2 on my server, which has PHP 5.2. I copied the cubrid.so into my extension directory (/usr/lib/php5/2006...), but when I restart my Apache, I get the following error message : Someone... I guess it's because the Cubrid extensions (including libcascci.so.8) are not in the same directory as my PHP extensions. So how can I get Cubrid to work properly ? Sorry for my approximative english, and thank you for your answers. Ramy |
| Quote | |
|
|
# Post subject:Re: Unable to load dynamic library cubrid.so - libcascci.so.8 Post date: 2010.10.12 |
|
registered: 05/31/2011 아이피: *.91.137.50 |
Hi ramy, libcascci.so does not need to be in the PHP extensions directory since the $CUBRID variable points to the CUBRID's lib\ directory. Just make sure you have $CUBRID path set in your system. Type echo $CUBRID in your terminal to see if it is true. Another thing I would suggest you is to use PHP PECL installer when installing any PHP extension on Linux. See http://www.cubrid.org/php_api_for_cubri ... -with-pecl for instructions. This is my preferable way instead of manually copying files all around. If you still have difficulties, let me know. |
| Quote | |
|
|
# Post subject:Re: Unable to load dynamic library cubrid.so - libcascci.so.8 Post date: 2010.10.12 |
|
registered: 05/31/2011 아이피: *.39.9.251 |
Hi, Thanks for your answer. When I type echo $CUBRID in my terminal, I get /usr/bin/cubrid/CUBRID, which is the path to my Cubrid installation. By the way, I can't install Cubrid with the PECL installer, because I get an error. I can retry to show you the error. |
| Quote | |
|
|
# Post subject:Re: Unable to load dynamic library cubrid.so - libcascci.so.8 Post date: 2010.13.12 |
|
registered: 05/31/2011 아이피: *.91.137.50 |
OK, ramy. Could you please post your environment (OS, architecture, CUBRID version, Apache version, PHP version)? There is one thing I would like to suggest you. Whenever possible use the latest version of any software if that's not critical for your production server. The latest stable version of CUBRID is 3.0. It has lot's of new features you will like. Besides, PHP API has been greatly enhanced for CUBRID 3.0. And I also believe if you install CUBRID 3.0, all your installations will go smoothly. Give it a try, and let me know the results. |
| Quote | |
|
|
# Post subject:Re: Unable to load dynamic library cubrid.so - libcascci.so.8 Post date: 2010.13.12 |
|
registered: 05/31/2011 아이피: *.39.9.251 |
My environnement is the following : - OS : ubuntu 9.04 - Cubrid : 2.2 - PHP : 5.2 - Apache : 2.2 If you need more precise informations, could you tell me how to get these informations please ? And for you idea to install Cubrid 3.0, I can't, because Cubrid 3.0 is only compatible with PHP 5.3, and PHP 5.3 is not compatible with Ubuntu 9.04 (well, it is, but it's not in the default packages, so it looks more difficult to install...). The solution would be to upgrade my server, but I can't do it now... |
| Quote | |
|
|
# Post subject:Re: Unable to load dynamic library cubrid.so - libcascci.so.8 Post date: 2010.13.12 |
|
registered: 05/31/2011 아이피: *.39.9.251 |
By the way, when I try to install Cubrid with PECL, I get the following error (at the end of the output) :running: make |
| Quote | |
|
|
# Post subject:Re: Unable to load dynamic library cubrid.so - libcascci.so.8 Post date: 2010.14.12 |
|
registered: 05/31/2011 아이피: *.91.137.50 |
Hi ramy, I guess I found your problem. I have installed Ubuntu 10.4, CUBRID 2.2, PHP 5.2, and Apache 2.2, and I noticed that cubrid.so cannot find the libcascci.so.8 library even if it exists in the /lib directory inside the directory where you installed CUBRID. In fact, libcascci.so.8 is a symbolic link to the actual libcascci.so.8.2.2 library. When you install CUBRID, it adds the Environment variable called LD_LIBRARY_PATH which points to /home/cubriduser/CUBRID/lib (considering that user is cubriduser and you have installed CUBRID to /home/cubriduser/CUBRID. The problem is Apache runs under a different user (perhaps root) thus does not see the environment variable of your user. So, we have to create the link file in /usr/lib directory under the root. 1) In your terminal rewrite the env. variable (remember to change the last path to the actual /lib directory where you have installed CUBRID). export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/cubriduser/CUBRID/lib2) Create a link: sudo ln -s /home/cubriduser/CUBRID/lib/libcascci.so /usr/lib/libcascci.so.8If you run under Ubuntu 64-bit, change the destination path to sudo ln -s /home/cubriduser/CUBRID/lib/libcascci.so /usr/lib64/libcascci.so.83) Add the CUBRID /lib to the path: sudo gedit /etc/ld.so.confThen in the Editor add your CUBRID /lib path at the end of the file like (remember not to replace, but just add to the last line): /home/cubriduser/CUBRID/lib4) Tell system to refresh its temporary cash file. Note that the ldconfig starts with L not I. sudo ldconfigThis will create a temporary cache file named ld.so.cache. 5) Now reboot your system. sudo rebootThis should solve your problem. |
| Quote | |
|
|
# Post subject:Re: Unable to load dynamic library cubrid.so - libcascci.so.8 Post date: 2010.14.12 |
|
registered: 05/31/2011 아이피: *.39.9.251 |
Woohoo, it works perfectly ! Thank you for your time, and for your useful answers ! Bye ! |
| Quote | |