Permission denied when creating embedded Firebird database in OSX

Firstly, I am not 100% sure that I am using the built-in Firebird client in OSX. The installation file, downloaded from firebirdsql.org, states that it contains classic, superclassic, and built-in. Unlike the Windows version, the package does not contain a dedicated built-in library file. I suggested that libfbclient.dylib(renamed libgds.dylibfor my use) can be used as inline. If I am wrong, I think the problem. Can someone tell me where I get the dylib embedded file?

If libfbclient.dylib is used for native use, then my question remains. When I try to create a database file for the first time, it fails with "Permission denied". I am trying to create this file in the user docs folder. I am using Interbase Express components in Delphi to connect. This has served me for many years in the Windows environment.

Full error message ... Exception class EIBInterBaseError with message 'I/O error during "open O_CREAT" operation for file '/Users/martin/Documents/LightFactoryShows/default.fdb" Error while trying to create file Permission denied'

+5
source share
1 answer

Solved! After reading this document several times, I finally got it: http://www.ibphoenix.com/resources/documents/how_to/doc_103

OSX , exe windows. /Library/Framworks/Firebird.framework , "Firebird". , , - " Firebird libfbembed.dylib". Windows , Windows .exe DLL. , , .

, , .

1) "Firebird" {executable} /usr/local/lib/libgds.dylib

ln -s /Library/Frameworks/Firebird.framework/Firebird /usr/local/lib/libgds.dylib

2) firebird.msg , /usr/local/lib

ln -s /Library/Frameworks/Firebird.framework/Versions/A/Resources/English.lproj/var/firebird.msg /usr/local/lib/firebird.msg

3) security2.fdb /usr/local/lib , . , .

cp /Library/Frameworks/Firebird.framework/Versions/A/Resources/English.lproj/var/security2.fdb /usr/local/lib
chmod 777 /usr/local/lib/security2.fdb.
+2

All Articles