-
Notifications
You must be signed in to change notification settings - Fork 0
Try setting RPATH (avoid need of: export DYLD_LIBRARY_PATH) #1
Comments
If I install primecount from source on macOS using Homebrew, using the defaut instructions, all seems to work as it is now. |
@dimpase By luck I have figured out how to use the default AppleClang C/C++ compiler with OpenMP today. Therefore I have just done a new release of homebrew-primecount with this change. The primecount installation time using homebrew has now been significantly reduced as homebrew's LLVM/Clang does not need to be downloaded + installed anymore. I also think that I have fixed the I have tested the new primecount version on both an Intel Mac (macOS 11.6) and an Apple Silicon Mac (macOS 12.1) and it worked fine for me. |
Should you try putting primecount in Homebrew's core, too? |
I tried submitting primecount to homebrew about 5 years ago and it was rejected because primecount was not notable enough. If I remember correctly they required 100 GitHub stars & 30 people watching the repo on GitHub (primecount currently only has 20 watchers). It is difficult for primecount to meet the high homebrew minimum requirements:
Because of this primecount is currently only a homebrew tap. |
They don't have GH stars and watchers requirements any more, as far as I see. Perhaps, one should wait until primecount makes it into Debian (it's almost there). |
OK, I'll try to submit it again to homebrew/core once it is in Debian. |
@dimpase primecount is now a homebrew-core formula, see: https://github.com/Homebrew/homebrew-core/blob/master/Formula/primecount.rb. Hence primecount can now be installed using |
Thanks, we're adding this on https://trac.sagemath.org/ticket/33805 |
Maybe this could be set using:
cmake . -DCMAKE_INSTALL_NAME_DIR="@rpath" -DCMAKE_INSTALL_RPATH="@loader_path/../lib" -DCMAKE_SKIP_INSTALL_RPATH=FALSE
. This could potentially fix libprimecount.so not found if the user has not set DYLD_LIBRARY_PATH="/usr/opt/..."The text was updated successfully, but these errors were encountered: