open-quantum-safe / liboqs-go

Go bindings for liboqs
https://openquantumsafe.org/
MIT License
69 stars 24 forks source link

no LC_RPATH's found #33

Closed ShubhamTatvamasi closed 9 months ago

ShubhamTatvamasi commented 9 months ago

Getting error at the time of running example on macOS M2

➜  liboqs-go git:(main) ✗ go run examples/kem/kem.go
dyld[42155]: Library not loaded: @rpath/liboqs.5.dylib
  Referenced from: <DBF89507-DB7A-3F7C-9615-5772DFC7161B> /private/var/folders/rk/z7t2cqnn6xx5qrzcm2pfqkxh0000gn/T/go-build1068723308/b001/exe/kem
  Reason: no LC_RPATH's found
signal: abort trap
vsoftco commented 9 months ago

@ShubhamTatvamasi having some issues with macOS on M2 as well. Try export DYLD_LIBRARY_PATH=/path/to/liboqs then clear go's build cache go clean -cache, then run the example.

ShubhamTatvamasi commented 9 months ago

It's fixed now, Thanks @vsoftco