Andrew0Hill / NURS6293_environment

Docker-based environment to provide desktop interface and database access for NURS 6293.
0 stars 0 forks source link

realpath is not part of "standard" zsh or bash #36

Open mgkahn opened 1 week ago

mgkahn commented 1 week ago

After returning my Compass Mac, I have been using an older Mac that I started from a new image. This Mac doesn't have all the bells-and-whistles installed that the Compass Mac accrued over time.

This Mac uses zsh version 5.8.1 (the Compass Mac has zsh version 5.9 but I don't think it is a version issue).

With the "vanilla" Mac, I get "realpath not found" error running the launch script. Same error when I execute "realpath ." at terminal Same error if I change to bash shell

According to Google ("macOS realpath not found"), this command is not a native command in zsh or bash.

image
Andrew0Hill commented 1 week ago

Would you mind checking if the command

readlink -f <filename here>

is recognized on your system?

If so, something like readlink -f ./launchDesktop.sh could replace the current call to realpath.

mgkahn commented 1 week ago

readlink works for both zsh and bash

image
Andrew0Hill commented 1 week ago

Excellent, update incoming...

Andrew0Hill commented 1 week ago

Should be fixed in the latest commit, let me know if it works for you!