Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Fri Nov 16, 2018 4:17 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: can't find plugin method OracleDatabase.__init
PostPosted: Mon Sep 12, 2011 2:03 am 
Offline

Joined: Mon Dec 27, 2010 5:43 am
Posts: 55
Location: Switzerland
I'm testing an Oracle DB application on Ubuntu 32Bit 10.04...

Installed instantclient-basic/sdk/sqlplus and verified with SQL plus connection works...

As soon I start my built Oracle application it throws this error:

can't find plugin method OracleDatabase.__init


So does this mean it doesn't find the "libOraclePlugin.so" or the instantclient libs?

_________________
Real Studio 2011 R4.3 Enterprise, iMac 27 3.4GHz i7, 16GB, OCZ Vertex-3


Top
 Profile  
Reply with quote  
 Post subject: Re: can't find plugin method OracleDatabase.__init
PostPosted: Mon Sep 12, 2011 5:01 am 
Offline
User avatar

Joined: Wed May 10, 2006 2:42 pm
Posts: 2985
Location: Germany
The plugin can't be loaded due to a missing library.

So maybe you install oracle client libraries on the machine (32bit!)

Greetings
Christian

_________________
See you in Orlando, Florida for Real World 2013
More details and registration here:
http://www.realsoftware.com/community/realworld.php


Top
 Profile  
Reply with quote  
 Post subject: Re: can't find plugin method OracleDatabase.__init
PostPosted: Mon Sep 12, 2011 5:08 am 
Offline

Joined: Mon Dec 27, 2010 5:43 am
Posts: 55
Location: Switzerland
instantclient libs are installed...and the App is working when launched form a Terminal...because I have set:

DYLD_LIBRARY_PATH=/usr/local/oracle/instantclient_10_2


in .bash_profile

But it won't pick them up even if I copy all lib files over to /usr/lib where the default location for libraries is as otool sates:


imac27:MacOS klingler$ otool -L IPAM
IPAM:
@executable_path/rbframework.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 227.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.4)
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 949.46.0)
/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 136.0.0)


Can I somehow incorporate "DYLD_LIBRARY_PATH" into the application?

Or even better package the instantclient libs to the application itself with the project editor?

_________________
Real Studio 2011 R4.3 Enterprise, iMac 27 3.4GHz i7, 16GB, OCZ Vertex-3


Top
 Profile  
Reply with quote  
 Post subject: Re: can't find plugin method OracleDatabase.__init
PostPosted: Mon Sep 12, 2011 5:17 am 
Offline

Joined: Mon Dec 27, 2010 5:43 am
Posts: 55
Location: Switzerland
Typo.....bash_profile contains of course:

export ORACLE_HOME=/usr/local/oracle/instantclient_10_2
export LD_LIBRARY_PATH=$ORACLE_HOME
export DYLD_LIBRARY_PATH=$ORACLE_HOME

_________________
Real Studio 2011 R4.3 Enterprise, iMac 27 3.4GHz i7, 16GB, OCZ Vertex-3


Top
 Profile  
Reply with quote  
 Post subject: Re: can't find plugin method OracleDatabase.__init
PostPosted: Mon Sep 12, 2011 5:37 am 
Offline
User avatar

Joined: Wed May 10, 2006 2:42 pm
Posts: 2985
Location: Germany
libobjc.A.dylib, that is a Mac library.

Are you use you run the Linux app on Linux?

Greetings
Christian

_________________
See you in Orlando, Florida for Real World 2013
More details and registration here:
http://www.realsoftware.com/community/realworld.php


Top
 Profile  
Reply with quote  
 Post subject: Re: can't find plugin method OracleDatabase.__init
PostPosted: Mon Sep 12, 2011 9:34 am 
Offline

Joined: Mon Dec 27, 2010 5:43 am
Posts: 55
Location: Switzerland
Yeah sorry...was mixing up OSX/Linux testing (o;

Checked with "ldd" against "libOraclePlugin.so" and saw that it was referring to older instantclient libraries (10.1 instead of 11.1)


Now happy with my Oracle application working under OSX/Linux/Windows :-)

_________________
Real Studio 2011 R4.3 Enterprise, iMac 27 3.4GHz i7, 16GB, OCZ Vertex-3


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group