fork-dev / Tracker

Bug and issue tracker for Fork for Mac
498 stars 12 forks source link

Installing Command Line Tools on new-ish OSX 14.1.1 doesnt have /usr/local/bin and no error is shown. #2005

Open dbreese opened 8 months ago

dbreese commented 8 months ago

I am on a new laptop and just installed Brew and xcode and a few other tools. When attempting to install the Command Line Tools in settings, it states it will be installed in /usr/local/bin, but I do not have a /usr/local/bin. The /usr/local dir is owned by root.

No error is shown to the user.

image
~ ls -la /usr/local
total 0
drwxr-xr-x   4 root  wheel  128 Nov  9 05:16 .
drwxr-xr-x@ 11 root  wheel  352 Nov  2 16:44 ..
drwxr-xr-x   4 root  wheel  128 Jun  7 02:19 include
drwxr-xr-x   8 root  wheel  256 Jun 14 19:07 lib

Would be nice to allow a change of location, or at least an error shown to user.

dbreese commented 8 months ago

Creating the dir first fixes the issue, btw:

~ sudo mkdir /usr/local/bin
Password:
~ ls -la /usr/local/bin
total 0
drwxr-xr-x  2 root  wheel   64 Nov  9 16:46 .
drwxr-xr-x  5 root  wheel  160 Nov  9 16:46 ..

Then try to install again in settings:

~ ls -la /usr/local/bin
total 0
drwxr-xr-x  3 root  wheel   96 Nov  9 16:46 .
drwxr-xr-x  5 root  wheel  160 Nov  9 16:46 ..
lrwxr-xr-x  1 root  wheel   50 Nov  9 16:46 fork -> /Applications/Fork.app/Contents/Resources/fork_cli
image