Closed pedroalvesbatista closed 3 years ago
if you see libsodium in /usr/local/lib (check for libsodium.so) then you are set. It should work.
Thats it, its there, should I finish this issue ?
./shell-d ./shell-d: error while loading shared libraries: libsodium.so.23: cannot open shared object file: No such file or directory
I think the above issues have been resolved. I cannot build on the mac.
ld: library not found for -lsodium clang: error: linker command failed with exit code 1 (use -v to see invocation) Error: /usr/bin/gcc failed with status: 1 ldc2 failed with exit code 1.
I'm going to precompile this and look into the build issue, as I can't remember, but I think the wrapper lacks the precompiled binaries.
I've added an issue on sodium dlang project: https://github.com/carblue/sodium/issues/3
Document how to get this working. I recall one of our other module deps handles OS X the right way out of the box, so have a look at that. Also noting, that LD_LIBRARY_PATH doesn't seem to work on OS X (you can no longer set it in the shell, which sort of blew my mind).
We also need to document the linux use case.
I've verified that I can build if I build and install libsodium. For whatever reason, dyld or ldc2, or the deimos project only looks under: dyld: Library not loaded: /usr/local/lib/libsodium.23.dylib
It won't honor the lfags. Grr.
Verified I can run the test cases on Mac os x. Nice!
This builds and is fixed.
Reopening this, I don't think I got this documented properly. Mainly, I don't remember what I did to make this work.
Probably bump this thing forward to v1.0.18.
Just noting, no releases on libsodium since 2019 in terms of releases? Not sure what's up.
Also noting, that on the new M1 mac, the ldc2 still indicates it is x86_64
Noting, libsodium development looks very active, at least, commits and stuff, which I expect, just that the last tagged release wasn't for two years. See https://download.libsodium.org/libsodium/releases/
So move to this release I think: https://download.libsodium.org/libsodium/releases/libsodium-1.0.18-stable.tar.gz
Noting that we should also have the build instructions in the README in a bit more detail.
Noting: new mac m1 has 8 cores that are available on the mid-tier. Apparently the low end has 7?
the mac install will put this under /usr/local/lib as expected: /usr/bin/install -c .libs/libsodium.lai /usr/local/lib/libsodium.la
Ok, fixed this up.
Alright, lets check the last details of building, checking deps and etc, put it into README.
Yeah it's all there. I think what I had forgotten was that for mac/linux the libsodium dlang package doesn't have a prebuilt binary (only windows?) so you have to build it, and install it into /usr/lib or /usr/local/lib (any location automatically searched by the linker or at runtime. So I think everything is in the README now.
Is this and indicative that libsodium is ready to go ? Or did I have problems when trying to install ?