Once I wish to obtain a console app, with a command-line interface, into what applicable folder ought to I place it? I need the device to be routinely current on the PATH.
I’m not referring to the Apple developer instruments from Xcode. I’m asking about third-party instruments comparable to Microsoft Kiota.
From what little I find out about different Unix-oriented working techniques comparable to FreeBSD, /decide
is the same old place for added third-party apps not managed by the OS. I added a /decide
to my macOS Sonoma 14.4.1 machine. I can explicitly run the console app from there. However that location doesn’t appear to be on the PATH routinely.
I attempted /usr/native
and /usr/native/bin
. However no go. Executing kiota --version
leads to “kiota not discovered”.
I discovered /usr/native/bin
current on my Mac. A number of exiting gadgets are discovered there, all associated to Docker (presumably from my set up of Docker Desktop app). All of these gadgets are reported by the Finder.app as being “Alias”, although I think they’re truly symlinks. Utilizing “Present unique” within the Finder for these Docker gadgets takes me to a folder nested inside the GUI Mac app Docker.app. Putting my Kiota folder hierarchy inside usr/native/bin
does not end in placing kiota
on the default PATH in Terminal.app, even after a system restart.
Workarounds
One workaround is to surrender on the comfort of PATH. Drag and drop the kiota
from any folder into the Terminal.app window. The device then executes efficiently:
/usr/native/Kiota/osx-arm64/kiota --version
1.14.0+fc4b39c65d89f7bfc8c7f1813c197e95e206da09
(1.14.0 is certainly anticipated, and proper.)
One other workaround is to manually add to the values inside the PATH
atmosphere variable. However… all the level of my Query is to keep away from manipulating the PATH explicitly. So far as I do know, all different Unix-oriented OSes comparable to BSD & Linux supply a default place for third-party console apps. I might count on the identical in macOS.
Non-workarounds
Placing an alias (File > Make Alias
within the Finder) of the kiota
executable into /usr/native/bin doesn’t work, even after system restart. which kiota
leads to “kiota not discovered”.
Leave a Comment