surrealdb / install.surrealdb.com

The script for installing SurrealDB on unix operating systems
https://install.surrealdb.com
Apache License 2.0
9 stars 6 forks source link

bash script for installing surreal binary not working: `sh: 58: 1: parameter not set` #4

Closed kelvin2200 closed 1 year ago

kelvin2200 commented 1 year ago

Describe the bug

When trying to run curl -sSf https://install.surrealdb.com | sh the script terminates with this error sh: 58: 1: parameter not set

this is my linux machine Linux ubuntu 5.15.0-69-generic surrealdb/surrealdb#76~20.04.1-Ubuntu SMP Mon Mar 20 15:54:19 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

is there something wrong with my shell?

Please let me know if there is any other information I can provide. Thank you!

Steps to reproduce

I have successfully installed the binary elsewhere. It seems to only happen on this specific machine.

Expected behaviour

Successful installation?

SurrealDB version

cannot install in order to obtain version

Contact Details

No response

Is there an existing issue for this?

Code of Conduct

kelvin2200 commented 1 year ago

Digging through the script I was able to put together the download url, and manually finish the installation. For those that run into this issue, here's a solution: curl --silent --fail --location https://download.surrealdb.com/v1.0.0-beta.8/surreal-v1.0.0-beta.8.linux-amd64.tgz --output surreal.tgz tar -zxvf surreal.tgz sudo mv surreal /usr/local/bin/

NOTE: this url may become obsolete with future versions of SurrealDB. Also the url here is for 64bit linux distributions only. The instructions offer no guarantee the binary will work, so use at your own risk.