civo / cli

Our Command Line Interface (CLI) for interacting with your Civo resources
Apache License 2.0
178 stars 87 forks source link

Install on Mac using civo.com/get | sh doesn't work #279

Open DMajrekar opened 2 years ago

markboost commented 2 years ago
Last login: Fri Oct 21 13:05:26 on ttys000
markboost@Marks-MacBook-Air ~ % curl -sL https://civo.com/get | sh
/usr/bin/curl
Finding latest version from GitHub
1.0.40
Downloading package https://github.com/civo/cli/releases/download/v1.0.40/civo-1.0.40-darwin-arm64.tar.gz to /tmp/civo-1.0.40-darwin-arm64.tar.gz
CHANGELOG.md: Can't unlink already-existing object
LICENSE: Can't unlink already-existing object
README.md: Can't unlink already-existing object
changelog.yml: Can't unlink already-existing object
civo: Can't unlink already-existing object
tar: Error exit delayed from previous errors.
markboost@Marks-MacBook-Air ~ % sudo curl -sL https://civo.com/get | sh
Password:
/usr/bin/curl
Finding latest version from GitHub
1.0.40
Downloading package https://github.com/civo/cli/releases/download/v1.0.40/civo-1.0.40-darwin-arm64.tar.gz to /tmp/civo-1.0.40-darwin-arm64.tar.gz
CHANGELOG.md: Can't unlink already-existing object
LICENSE: Can't unlink already-existing object
README.md: Can't unlink already-existing object
changelog.yml: Can't unlink already-existing object
civo: Can't unlink already-existing object
tar: Error exit delayed from previous errors.
markboost@Marks-MacBook-Air ~ % civo
zsh: command not found: civo
markboost@Marks-MacBook-Air ~ % sudo -s
root@Marks-MacBook-Air ~ # curl -sL https://civo.com/get | sh
/usr/bin/curl
Finding latest version from GitHub
1.0.40
Downloading package https://github.com/civo/cli/releases/download/v1.0.40/civo-1.0.40-darwin-arm64.tar.gz to /tmp/civo-1.0.40-darwin-arm64.tar.gz
Download complete.

============================================================
  The script was run as a user who is unable to write
  to /usr/local/bin. To complete the installation the
  following commands may need to be run manually.
============================================================

  sudo mv /tmp/civo /usr/local/bin/civo

root@Marks-MacBook-Air ~ # sudo mv /tmp/civo /usr/local/bin/civo
mv: rename /tmp/civo to /usr/local/bin/civo: No such file or directory
root@Marks-MacBook-Air ~ # 
markboost commented 2 years ago
root@Marks-MacBook-Air ~ # ls /usr/local/bin
ls: /usr/local/bin: No such file or directory
root@Marks-MacBook-Air ~ # mkdir /usr/local/bin
root@Marks-MacBook-Air ~ # mv /tmp/civo /usr/local/bin/civo 
uzaxirr commented 1 year ago

Worked For me, can someone point out what exactly is the problem

https://app.warp.dev/block/LF6msb5lzWXwVuS0xPN3iv

Screenshot 2022-10-27 at 10 35 49 AM Screenshot 2022-10-27 at 10 37 59 AM
haardikdharma10 commented 1 year ago

Should we move the civo binary to /Applications? @DMajrekar

RealHarshThakur commented 1 year ago

Which version of Mac OS was it? It seems like they've started adding it in all the latest versions since couple years ago https://discussions.apple.com/thread/251258392

alessandroargentieri commented 1 year ago

any update on this issue?

martynbristow commented 1 year ago

Sorry, works on my machine (intel Mac) ... Is this an M1 MacBook Air ... ?

martynbristow commented 1 year ago

Should we move the civo binary to /Applications? @DMajrekar

As it's a command line tool, I don't think it fits the pattern. /usr/local/bin still exists on macOS

martynbristow commented 1 year ago

Last login: Fri Oct 21 13:05:26 on ttys000 markboost@Marks-MacBook-Air ~ % curl -sL https://civo.com/get | sh /usr/bin/curl Finding latest version from GitHub 1.0.40 Downloading package https://github.com/civo/cli/releases/download/v1.0.40/civo-1.0.40-darwin-arm64.tar.gz to /tmp/civo-1.0.40-darwin-arm64.tar.gz CHANGELOG.md: Can't unlink already-existing object LICENSE: Can't unlink already-existing object README.md: Can't unlink already-existing object changelog.yml: Can't unlink already-existing object civo: Can't unlink already-existing object tar: Error exit delayed from previous errors. markboost@Marks-MacBook-Air ~ % sudo curl -sL https://civo.com/get | sh Password: /usr/bin/curl Finding latest version from GitHub 1.0.40 Downloading package https://github.com/civo/cli/releases/download/v1.0.40/civo-1.0.40-darwin-arm64.tar.gz to /tmp/civo-1.0.40-darwin-arm64.tar.gz CHANGELOG.md: Can't unlink already-existing object LICENSE: Can't unlink already-existing object README.md: Can't unlink already-existing object changelog.yml: Can't unlink already-existing object civo: Can't unlink already-existing object tar: Error exit delayed from previous errors. markboost@Marks-MacBook-Air ~ % civo zsh: command not found: civo markboost@Marks-MacBook-Air ~ % sudo -s root@Marks-MacBook-Air ~ # curl -sL https://civo.com/get | sh /usr/bin/curl Finding latest version from GitHub 1.0.40 Downloading package https://github.com/civo/cli/releases/download/v1.0.40/civo-1.0.40-darwin-arm64.tar.gz to /tmp/civo-1.0.40-darwin-arm64.tar.gz Download complete.

============================================================ The script was run as a user who is unable to write to /usr/local/bin. To complete the installation the following commands may need to be run manually.

sudo mv /tmp/civo /usr/local/bin/civo

root@Marks-MacBook-Air ~ # sudo mv /tmp/civo /usr/local/bin/civo mv: rename /tmp/civo to /usr/local/bin/civo: No such file or directory root@Marks-MacBook-Air ~ #

Do you have /usr/local/bin ... I do on my MacBook because it's an old build ... I have a number of apps there already e.g. docker.

There's nothing wrong with the app, just the install instructions.

Run mkdir /usr/local/bin before running the sudo