cs50 / libcs50

This is CS50's Library for C.
https://cs50.readthedocs.io/libraries/cs50/c/
GNU General Public License v3.0
1.79k stars 861 forks source link

Library not loaded: libcs50-11.0.2.dylib #327

Open amansaharan opened 7 months ago

amansaharan commented 7 months ago

I am unable to run the compiled binary file. getting the error:

amansaharan@Amans-MacBook-Pro projects % ./hello dyld[1751]: Library not loaded: libcs50-11.0.2.dylib Referenced from: <80481188-039D-3BA8-8E88-9C585FF1DCAC> /Users/amansaharan/Desktop/projects/hello Reason: tried: 'libcs50-11.0.2.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibcs50-11.0.2.dylib' (no such file), 'libcs50-11.0.2.dylib' (no such file), '/Users/amansaharan/Desktop/projects/libcs50-11.0.2.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/amansaharan/Desktop/projects/libcs50-11.0.2.dylib' (no such file), '/Users/amansaharan/Desktop/projects/libcs50-11.0.2.dylib' (no such file) zsh: abort ./hello

In my usr/local/lib install files are:-

-rwxr-xr-x 1 root admin 13728 May 6 16:12 libcs50-11.0.2.dylib -rw-r--r-- 1 root admin 7560 May 6 16:12 libcs50.a lrwxr-xr-x 1 root admin 20 May 6 16:12 libcs50.dylib -> libcs50-11.0.2.dylib

Kindly help me in this.

T1To48 commented 6 months ago

check this already opened issue , go throught the comments i think you'll find the solution.

https://github.com/cs50/libcs50/issues/324