[MonoDevelop] [SPAM] Re: [SPAM] How to set the Project References in Monodevelope IDE (System.DllNotFoundException: libclntsh.so )?

Eberhard Beilharz eb1 at sil.org
Tue May 6 15:20:52 UTC 2014


Do you have /libclntsh.so  /or only /libclntsh.so.11.1/?//You might have
to install the -dev version of the package (or manually create a
symbolic link from /opt/instantclient_11_2/libclntsh.so.11.1 to
/opt/instantclient_11_2/libclntsh.so).


Hari wrote on 2014-05-06 at 16:38 +0200:
> Hi Eberhard.
>  
> Thanks for your valuable comments.  I have set the libclntsh.so.11.1
> path as follows. But still I am getting the same error as mentioned
> previoulsy.
>  
> guest at orcllinux <mailto:guest at orcllinux> ~]$ ldconfig -p | grep libclntsh
>  libclntsh.so.11.1 (libc6,x86-64) =>
> /opt/instantclient_11_2/libclntsh.so.11.1
>  
>  
> I also tried setting the libclntsh.so.11.1 path in /etc/profile.d. I
> verified the LD_LIBRARY_PATH and it displayed the file path correctly.
>  
> Thanks
>
>
>  
> On Tue, May 6, 2014 at 2:34 AM, Eberhard Beilharz <eb1 at sil.org
> <mailto:eb1 at sil.org>> wrote:
>
>
>     You don't add a reference to unamanged dlls. Instead you need to
>     create (or copy) a *.dll.config file that maps the dll name to the
>     shared library (see
>     http://www.mono-project.com/Interop_with_Native_Libraries).
>
>     However, in your case it looks more like it can't find
>     /libclntsh.so/. Do you have that file on your system, and is it in
>     your PATH?
>
>     Hari wrote on 2014-05-05 at 17:22 +0200:
>>     I am using the MonoDevelop IDE  4.2.3 and trying to run a C#
>>     application in RedHat Linux 6.5. While running the application,
>>     the Oracle(11g) Database "open" call is throwing the below
>>     exception. I am wondering how can I add the reference
>>     libclntsh.so  in to the Project/Solution using the IDE or how can
>>     I resolve the below issue?
>>      
>>
>>     {System.DllNotFoundException: libclntsh.so   at (wrapper
>>     managed-to-native)
>>     System.Data.OracleClient.Oci.OciCalls/OciNativeCalls:OCIEnvCreate
>>     (intptr&,System.Data.OracleClient.Oci.OciEnvironmentMode,intptr,intptr,intptr,intptr,int,intptr)
>>       at System.Data.OracleClient.Oci.OciCalls.OCIEnvCreate
>>     (System.IntPtr& envhpp, OciEnvironmentMode mode, IntPtr ctxp,
>>     IntPtr malocfp, IntPtr ralocfp, IntPtr mfreep, Int32 xtramem_sz,
>>     IntPtr usrmempp) [0x00000] in
>>     /home/abuild/rpmbuild/BUILD/mono-3.4.0/mcs/class/System.Data.OracleClient/System.Data.OracleClient.Oci/OciCalls.cs:778
>>        at System.Data.OracleClient.Oci.OciEnvironmentHandle..ctor
>>     (OciEnvironmentMode mode) [0x00013] in
>>     /home/abuild/rpmbuild/BUILD/mono-3.4.0/mcs/class/System.Data.OracleClient/System.Data.OracleClient.Oci/OciEnvironmentHandle.cs:35
>>        at System.Data.OracleClient.Oci.OciGlue.CreateConnection
>>     (OracleConnectionInfo conInfo) [0x00000] in
>>     /home/abuild/rpmbuild/BUILD/mono-3.4.0/mcs/class/System.Data.OracleClient/System.Data.OracleClient/OciGlue.cs:88
>>        at
>>     System.Data.OracleClient.OracleConnectionPoolManager.CreateConnection
>>     (OracleConnectionInfo info) [0x00006] in
>>     /home/abuild/rpmbuild/BUILD/mono-3.4.0/mcs/class/System.Data.OracleClient/System.Data.OracleClient/OracleConnectionPoolManager.cs:57
>>        at
>>     System.Data.OracleClient.OracleConnectionPool.CreateConnection ()
>>     [0x0000e] in
>>     /home/abuild/rpmbuild/BUILD/mono-3.4.0/mcs/class/System.Data.OracleClient/System.Data.OracleClient/OracleConnectionPool.cs:97
>>        at System.Data.OracleClient.OracleConnectionPool.GetConnection
>>     () [0x000ba] in
>>     /home/abuild/rpmbuild/BUILD/mono-3.4.0/mcs/class/System.Data.OracleClient/System.Data.OracleClient/OracleConnectionPool.cs:74
>>        at System.Data.OracleClient.OracleConnection.Open () [0x00071]
>>     in
>>     /home/abuild/rpmbuild/BUILD/mono-3.4.0/mcs/class/System.Data.OracleClient/System.Data.OracleClient/OracleConnection.cs:420
>>        at TRQAClient.Program.ConnectAndQuery () [0x00017] in
>>     /home/guest/source/Client/Client/Program.cs:31 }
>>     System.DllNotFoundException
>>
>>     Thanks for your help
>>
>>
>>     _______________________________________________
>>     Monodevelop-list mailing list
>>     Monodevelop-list at lists.ximian.com <mailto:Monodevelop-list at lists.ximian.com>
>>     http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
>
>     _______________________________________________
>     Monodevelop-list mailing list
>     Monodevelop-list at lists.ximian.com
>     <mailto:Monodevelop-list at lists.ximian.com>
>     http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodevelop-list/attachments/20140506/20415af6/attachment.html>


More information about the Monodevelop-list mailing list