Closed Samia1117 closed 1 year ago
TL;DR:
brew install coreutils
This is documented in this repo's README:
The main tools for development are the same as the students' dependencies — Java 14 and Python 3. You will also need a few utilities such as wget to build with the provided Makefile; MacOS users will need gtar and gcp provided by the coreutils Homebrew package.
Note that this is not required for students. It's only required if you plan to hack on dslabs itself.
Oh ok, missed that. I was not trying to 'contribute' (at that time) and consulting only the handout/README. I was trying to run ./run-tests.py --lab 0 --test-num 1
, but it was failing with the same error (scshot). I would think it's a good idea to add the lines you quoted above to the handout/README (Getting Started section) as well.
Describe the bug The file copier tool
gcp
is not recognized on zsh shell on MacOS 13.2.1 (the problem may be more general, but at least covers this extent). For Darwin OS, the preferred file copier ( $(CP) )on dslabs Makefile isgcp
instead ofcp
. However,make clean all
fails whengcp
is attempted to be used (in line:$(CP) -r labs handout-files/. $(OTHER_FILES) $@
). On changinggcp
tocp
the problem is fixed. Of course, changing tocp
might break other cases for which you probably hadgcp
in the first place, but there should at least be a line to check in the Makefile whether the current shell recognizesgcp
or not. Users should be able to runmake
out of the box once they have the required/recommended tools set up (Python3, Make, Java 14, IntelliJ)Screenshots
Environment
java --version
): java 17.0.4.1 2022-08-18 LTS Java(TM) SE Runtime Environment (build 17.0.4.1+1-LTS-2) Java HotSpot(TM) 64-Bit Server VM (build 17.0.4.1+1-LTS-2, mixed mode, sharing)