Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS executable appears to be looking at the wrong location for dylib #6

Open
dmitry-zaitsev opened this issue Sep 11, 2024 · 2 comments

Comments

@dmitry-zaitsev
Copy link

dmitry-zaitsev commented Sep 11, 2024

When running:

./undreamai_server -h

I am getting this output:

dyld[71063]: Library not loaded: @rpath/libundreamai_macos-arm64-acc.dylib
  Referenced from: <02971BFB-67DD-3BF7-B76D-47EF05738393> /Users/dima/projects/llm-server/macos-arm64-acc/undreamai_server
  Reason: tried: '/Users/runner/work/LlamaLib/LlamaLib/build/libs/libundreamai_macos-arm64-acc.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/runner/work/LlamaLib/LlamaLib/build/libs/libundreamai_macos-arm64-acc.dylib' (no such file), '/Users/runner/work/LlamaLib/LlamaLib/build/libs/libundreamai_macos-arm64-acc.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/runner/work/LlamaLib/LlamaLib/build/libs/libundreamai_macos-arm64-acc.dylib' (no such file)
[1]    71063 abort      ./undreamai_server -m  --port 3001

The dylib file in question does exist at the current location, but apparently that is not where undreamai_server is checking for it. Looking at the paths in the error, I have a suspicion that the developer's or CI's working directory was somehow hardcoded in the output?

@dmitry-zaitsev
Copy link
Author

For anyone running into the same problem (if it is not fixed by then), running this from the server's directory fixes the problem (as it adds the current dir to the lookup path):

export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:.

P.S. Thank you folks for the awesome project!

@amakropoulos
Copy link
Contributor

Thanks for the issue, I'll look into it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants