-
Notifications
You must be signed in to change notification settings - Fork 855
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
Mac make install error: No such file or directory #142
Comments
I had the same issue (on Mojave)
|
Had the same issue on Mojave as well. Thanks @raksingh, your solution helped! |
Thanks @raksingh! Looks like this is still an issue on Mojave |
worked!! |
OS X El Capitan — worked. |
Thx @raksingh |
Thanks @raksingh :) |
macOS high sierra
xx/test: git clone https://github.com/cs50/libcs50.git
then all things done.
xx/test: cd libcs50/
xx/test: sudo make install
cc -Wall -Wextra -Werror -pedantic -std=c99 -fPIC -shared -Wl,-install_name,libcs50-8.1.2.dylib -o libcs50-8.1.2.dylib src/cs50.c
ln -sf libcs50-8.dylib libcs50.dylib
mkdir -p build/include build/lib build/src
install -m 644 src/cs50.c build/src
install -m 644 src/cs50.h build/include
mv libcs50-8.1.2.dylib libcs50.dylib build/lib
cc -Wall -Wextra -Werror -pedantic -std=c99 -fPIC -shared -Wl,-install_name,libcs50-8.1.2.dylib -o libcs50-8.1.2.dylib src/cs50.c
ln -sf libcs50-8.dylib libcs50.dylib
mkdir -p build/include build/lib build/src
install -m 644 src/cs50.c build/src
install -m 644 src/cs50.h build/include
mv libcs50-8.1.2.dylib libcs50.dylib build/lib
mkdir -p /usr/local/src /usr/local/lib /usr/local/include /usr/local/share/man/man3
cp -r build/include build/lib build/src /usr/local
cp: build/lib/libcs50.dylib: No such file or directory
Something wrong with my operation?
The text was updated successfully, but these errors were encountered: