Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing via homebrew or pkg file via website doesn't work. #299

Open
trevorphillipscoding opened this issue Dec 29, 2021 · 2 comments
Open

Comments

@trevorphillipscoding
Copy link

trevorphillipscoding commented Dec 29, 2021

macOS Monterey, 12.1
MacBook Pro (13-inch, M1, 2020)
Chip, Apple M1
Memory, 16 GB

Expected Results:
Installing the cli works

What happened:
Installing the cli via homebrew or using the pkg link at the website doesn't install aptible correctly, aptible command can't be found in the terminal.

Explanation.
I don't think this is entirely an Aptible issue.. I'm not sure.. What is happening is after a fresh install of this OSX. /usr/local exists but not the /bin folder inside. Not sure if this competely normal behavior but I ran the CLI install anyway. Aptible CLI install does it's thing but it created a bin FILE (literally named bin) that is symlinked to the /opt/aptible-toolbelt/bin/aptible file.

Fix:
I instead manually created the /bin folder inside of /usr/local and symlinked the aptible file inside there and now it works as it should.

@rposborne
Copy link

@UserNotFound does anyone from the aptible team monitor these issues? It seems like the aptible CLI is collecting an increasing number of "new user" issues.

Downloads from the website are unsigned, and this issue has been left unanswered for nearly a year.

Is the aptible CLI dead?

@ratbeard
Copy link

I hit this as well. I found the downloaded package file here

/Users/skizzybilbo/Library/Caches/Homebrew/downloads/a3c5376ee8ddb713c8de673ea9f8bb22c37b95e384595a833ea7d582bcd08695--aptible-toolbelt-0.24.2+20250113214913-mac-os-x.10.15.7-1.pkg

Running it was blocked by the OS. I added a security exception and was able to run the installer, but still no aptible command.

I tried installing as a gem and saw a strange error at the end:

sudo gem install aptible-cli
ERROR:  While executing gem ... (Errno::EEXIST)
    File exists - /usr/local/bin

This looked quite wrong:

› ls -al /usr/local
total 0
drwxr-xr-x   3 root  wheel   96 Jan 31 09:40 .
drwxr-xr-x@ 11 root  wheel  352 Dec  7 03:11 ..
lrwxr-xr-x   1 root  wheel   33 Jan 31 09:40 bin -> /opt/aptible-toolbelt/bin/aptible

I ran sudo rm /usr/local/bin and added /opt/aptible-toolbelt/bin to my path, and now it works ✅

I installed this about a week ago (on an older intel mac) and it worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants