- Download the SDK from ESRI's website http://resources.arcgis.com/content/geodatabases/10.0/file-gdb-api
- Extract the SDK, and put the contents of the directory in a known location, I used
~/local/filegdb. Here's an example path to one of the files:~/local/filegdb/lib/libFileGDBAPI.dylib - I use
~/local/filegdbso it can stay isolated in it's own place. You can put it anywhere, but the next few steps might be different. - Go into the directory containing the FileGDB SDK, e.g.
~/local/filegdb - ESRI built these dylib's using
@rpath's, so to avoid needing to mess withDYLD_LIBRARY_PATH, I updated the@rpath's usinginstall_name_tool. There might be a more elegant way to handle this. If so, comments are welcome! - Here are the commands I used to patch the dylibs, this is not required if you want to use
DYLD_LIBRARY_PATHyourself: