libcs50 icon indicating copy to clipboard operation
libcs50 copied to clipboard

Minor version is stripped

Open FiddlersCode opened this issue 5 years ago • 2 comments

When running sudo make install on a MacOs Mojave 10.14.5 version 9.0.1, I get the following error: cp: build/lib/libcs50.dylib: No such file or directory

The issue is that the LIB_MAJOR is not picking up the minor semvers on line 25 of the Makefile. As a temporary hack for my version, I've changed line 25 to

LIB_MAJOR := libcs50-$(VERSION).dylib

I will submit a PR but I imagine there may be other considerations (e.g. doing in-place updates?). Thanks! Paula

FiddlersCode avatar Jul 24 '19 18:07 FiddlersCode

PR: https://github.com/cs50/libcs50/pull/172

FiddlersCode avatar Jul 24 '19 18:07 FiddlersCode

After some further digging, I found that the linking in the build/lib is not working correctly. A workaround is:

  • cd build/lib
  • sudo ln -sf libcs50-9.0.1.dylib libcs50-9.dylib

However, running make clean will remove this linking, so it's obviously a temporary hack!

FiddlersCode avatar Jul 24 '19 21:07 FiddlersCode