Carthage / Carthage

A simple, decentralized dependency manager for Cocoa
Other
14.94k stars 1.55k forks source link

Carthage "make install" does not handle /usr/local/bin not existing #2941

Open aeberbach opened 4 years ago

aeberbach commented 4 years ago

On a freshly installed Mac where Carthage is one of the first packages installed this directory may not exist. Result of make install is then a binary named '/usr/local/bin' rather than a binary named carthage in /usr/local/bin.

Manual installation is necessary because of https://github.com/Carthage/Carthage/issues/2887

Cartfile N/A

Carthage Output N/A

Actual outcome Carthage makefile creates a binary named 'bin' in the /usr/local directory.

Expected outcome Makefile should check for the presence of the directory, create it if it does not exist, and then create the Carthage binary in the right place. Or better, look for likely options that are already in the path and allow the install to choose one or too choose to create /usr/local/bin if that is what they want.

tmspzz commented 4 years ago

Thanks for reporting. It would be great if you could make a PR to fix the issue.

jonnybach commented 4 years ago

The referenced PR should resolve this issue.