Apple Silicon Support
See original GitHub issueAs of v6.27.3.24603, rocksdb nuget package does not include osx-arm64 native binaries. I was able to install apple silicon binaries of RocksDB (and it’s dependenies) via homebrew. However, homebrew installs apple silicon libraries into /opt/homebrew/lib (instead of /usr/local/lib) which is not on the library load path. I was able to work around for now by creating a symlink from /usr/local/lib/librocksdb.dylib to /opt/homebrew/lib/librocksdb.dylib. However, I would appreciate a more automatic solution.
I’m not a mac dev, so I’m not sure what it would take to build rocksdb for apple silicon and include it in the rocksdb package. That seems like it would be the best solution, but I’m not sure if this requires a single “universal” native binary that works with intel + apple silicon or if it requires separate native binaries for each. Again, not a mac dev.
Another alternative would be to add /opt/homebrew/lib
to the basePaths
collection in PosixImporter.Import<T>
. That was a trivial change that worked when I tested it locally. but I wasn’t sure if that approach fits with the project goals, so I didn’t open a PR with that solution.
Issue Analytics
- State:
- Created 2 years ago
- Comments:22 (13 by maintainers)
Top GitHub Comments
Hi @devhawk - this is definitely in my pipeline - I recently got an M1 for work to be able to figure out what’s the best way to target our app to it (and with this also rocksdb). But I can’t promise any dates yet.
Nevertheless, we can easily add the /opt/homebrew/lib path to the list. I’ll do it now and you should have a new build soon!
@rubo that is a great find, I’ll investigate a bit here then!