Closed lalc closed 3 years ago
Try copying the libindy.dylib
into your output folder, usually bin/Debug/netcoreapp3.1
if you're running in Debug mode.
After I tried building the libindy sdk on my machine, and copying over the library file to
Also, it only works if we keep leave the library at
I have also the same issue.
dotnet info:
.NET Core SDK (reflecting any global.json): Version: 3.1.403 Commit: 9e895200cd
Runtime Environment: OS Name: Mac OS X OS Version: 10.15 OS Platform: Darwin RID: osx.10.15-x64 Base Path: /usr/local/share/dotnet/sdk/3.1.403/
Host (useful for support): Version: 3.1.9 Commit: 774fc3d6a9
.NET Core SDKs installed: 3.1.403 [/usr/local/share/dotnet/sdk]
.NET Core runtimes installed: Microsoft.AspNetCore.App 3.1.9 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.9 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
I have places the libindy.dylib file in Debug as well as netcoreapp3.1, but the error is the same.
what could be the possible solution?
@spsingh559 Did you download the library or built it yourself?
I downloaded the static library from https://github.com/hyperledger/indy-sdk#macos and even try to build from the source https://github.com/hyperledger/indy-sdk/blob/master/docs/build-guides/mac-build.md but nothing works out.
Finally, the issue has been fixed by adding environment variable targeting to indy sdk build.
export LIBRARY_PATH=$HOME/indy-sdk/libindy/target/debug export LD_LIBRARY_PATH=$LIBRARY_PATH export DYLD_LIBRARY_PATH=$LIBRARY_PATH export PATH=$PATH:$LIBRARY_PATH:$LD_LIBRARY_PATH:$DYLD_LIBRARY_PATH
Note: I have not placed libindy.dylib anywhere. Just followed the instruction to build from the source https://github.com/hyperledger/indy-sdk/blob/master/docs/build-guides/mac-build.md and then add the above environment variable as shown above in .zshrc file
Try removing wallet, to start mediator afresh. cd $HOME/.indy_client rm -rf wallet
Glad you solved this. It's unfortunate that there's no one way that works for everyone. Libindy has too many external dependencies and this has been a point of great friction.
Tried to follow the instructions can ran it on mac (10.14.6 Mojave)
It gives this exception:
dotnet environment is as given: