dfinity / vessel

The original package manager for Motoko
Apache License 2.0
113 stars 19 forks source link

Error install in vessel on macbook m1 #35

Closed gschian0 closed 1 year ago

gschian0 commented 2 years ago

Haven't gotten further than running this command as recommended in the IC punks repo'

gennaroschiano@Gennaros-MacBook-Pro ICPunks % ./scripts/vessel-install.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   620  100   620    0     0   2006      0 --:--:-- --:--:-- --:--:--  2000
/Users/gennaroschiano/bin/vessel: line 1: syntax error near unexpected token `<'
/Users/gennaroschiano/bin/vessel: line 1: `<html><body>You are being <a href="https://github-releases.githubusercontent.com/248089583/a56f5800-c9ea-11eb-84e7-742446381094?X-Amz-Algorithm=AWS4-HMAC-SHA256&amp;X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210909%2Fus-east-1%2Fs3%2Faws4_request&amp;X-Amz-Date=20210909T063307Z&amp;X-Amz-Expires=300&amp;X-Amz-Signature=9f030b009d52b8f2bb88e0e691868b251bbbdc8da9f9938989d3fed751f4d607&amp;X-Amz-SignedHeaders=host&amp;actor_id=0&amp;key_id=0&amp;repo_id=248089583&amp;response-content-disposition=attachment%3B%20filename%3Dvessel-macos&amp;response-content-type=application%2Foctet-stream">redirected</a>.</body></html>'

Here is the script that is included to install vessel

#!/bin/sh


mkdir -p $BINDIR
BIN=$BINDIR/vessel
OS_FILENAME=linux64
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
  OS_FILENAME=linux64
elif [[ "$OSTYPE" == "darwin"* ]]; then
  OS_FILENAME=macos
elif [[ "$OSTYPE" == "win32" ]]; then
  OS_FILENAME=windows64.exe
fi

VESSEL_VERSION=v0.6.0
curl -o $BIN https://github.com/dfinity/vessel/releases/download/$VESSEL_VERSION/vessel-$OS_FILENAME && chmod +x $BIN && $BIN help```
kritzcreek commented 2 years ago

It looks like your curl failed to follow a redirect there. Maybe try updating curl?

Otherwise you can download a release yourself from here: https://github.com/dfinity/vessel/releases and put it whereever the script would.

Last option would be to compile a binary yourself using rust.

rvanasa commented 1 year ago

Closing since this appears to be caused by an outdated URL in the external setup script. If needed, I'd be happy to reopen this issue and help debug on the latest version of Vessel (0.6.5).