Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

Unable to load dynamic library cubrid.so. Reason: no suitable image found.

CUBRID Official Forum » Programming Languages » PHP, PDO API » Unable to load dynamic library cubrid.so. Reason: no suitable image found.

author
message
[Level:8]CUBRID

Post subject: Unable to load dynamic library cubrid.so. Reason: no suitable image found.

registered: 03/29/2010

IP: *.91.139.67

views: 0

In case someone is getting the following error or a similar one when trying to load CUBRID PHP API on Mac OS X:

PHP Warning:  PHP Startup: Unable to load dynamic library '/Applications/XAMPP/xamppfiles/lib/php/php-5.3.0/extensions/no-debug-non-zts-20090626/cubrid.so' - dlopen(/Applications/XAMPP/xamppfiles/lib/php/php-5.3.0/extensions/no-debug-non-zts-20090626/cubrid.so, 9): Library not loaded: /usr/local/cubrid/lib/libcascci.8.dylib
  Referenced from: /Applications/XAMPP/xamppfiles/lib/php/php-5.3.0/extensions/no-debug-non-zts-20090626/cubrid.so
  Reason: no suitable image found.  Did find:
	/usr/local/cubrid/lib/libcascci.8.dylib: unknown required load command 0x80000022 in Unknown on line 0

... make sure the CCI library is executable by everyone.

sudo chmod +x /usr/local/cubrid/lib/libcascci.8.dylib

It's likely that PHP engine simply cannot access CUBRID CCI library. Setting the correct access permissions should solve such issues.

Quote




You are either using a very old browser or a browser that is not supported.
In order to browse cubrid.org you need to have one of the following browsers:



Internet Explorer: Mozilla Firefox: Google Chrome: