"libociei.dylib" cannot be loadedby the dlopen() function in Mac OS X
Original Reporter info from Mantis: bork
-
Reporter name: Boris Matkov
Original Reporter info from Mantis: bork
- Reporter name: Boris Matkov
Description:
"libociei.dylib" cannot be loaded by the dlopen() function in Mac OS X
Steps to reproduce:
Steps to reproduce:
- Install the instant Oracle client (I installed to /Users/boris/Applications/oracle/instantclient_10_2/)
- Check if "libociei.dylib" exist (Yes, the file exists)
- Try to load library. Library cannot be loaded - Bug!
Code:
var
hOraLib: pointer;
begin
if FileExists('/Users/boris/Applications/oracle/instantclient_10_2/libociei.dylib') then
ShowMessage('exist');
hOraLib := dlopen(PChar(AnsiString('/Users/boris/Applications/oracle/instantclient_10_2/libociei.dylib')), RTLD_LAZY);
if hOraLib = nil then
ShowMessage('not loaded')
else
ShowMessage('loaded');
end;
The same code in Delphi XE2 load the "libociei.dylib" library successfully!
Mantis conversion info:
- Mantis ID: 20703
- OS: Snow Leopard
- OS Build: 10.6.8
- Build: Release
- Platform: MAC OS X
- Version: 2.4.4