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

Bug: Linux Installation Failure #3

Closed felipetesc closed 1 year ago

felipetesc commented 1 year ago

Describe the bug

Surreal database installation fails on Arch Linux - Garuda, when I execute the default command provided from https://surrealdb.com/install.

PS: If I run the command "curl --proto '=https' --tlsv1.2 -sSf https://install.surrealdb.com | sh -s -- --nightly" the database installation succeeds.

Steps to reproduce

1 - Open the terminal 2 - TYpe the command : curl -sSf https://install.surrealdb.com | sh (at https://surrealdb.com/install) print

Result: the command outputs "main: line 58: $1: unbound variable".

Expected behaviour

To install the database.

SurrealDB version

surreal for archlinux on x64

Contact Details

No response

Is there an existing issue for this?

Code of Conduct

devlcp commented 1 year ago

Same error on Ubuntu 22.04.2 image

TAnas0 commented 1 year ago

Seems like a message about a missing parameter. Looking into the script, it seems to be put into a variable named INSTALL_DIR. So you can pass a folder to it curl -sSf https://install.surrealdb.com | sh surreal-folder, which gives an error due to a broken pipe.

I've managed bypass it too and install SurrealDB on Linux by changing the installation commands to:

curl -sSf https://install.surrealdb.com > install-surrealdb.sh
sh install-surrealdb.sh surreal-folder/

Note: the surreal-folder is ignored and I get asked for an installation path that defaults to ~/.surrealdb

felipetesc commented 1 year ago

Seems like a message about a missing parameter. Looking into the script, it seems to be put into a variable named INSTALL_DIR. So you can pass a folder to it curl -sSf https://install.surrealdb.com | sh surreal-folder, which gives an error due to a broken pipe.

I've managed bypass it too and install SurrealDB on Linux by changing the installation commands to:

curl -sSf https://install.surrealdb.com > install-surrealdb.sh
sh install-surrealdb.sh surreal-folder/

Note: the surreal-folder is ignored and I get asked for an installation path that defaults to ~/.surrealdb

felipetesc commented 1 year ago

After reading your post I've done this to install non nightly version: 1 - I Typed:

curl --proto '=https' --tlsv1.2 -sSf https://install.surrealdb.com > stable.sh

2- I changed the line 19 to (of stable.sh):

INSTALL_DIR="$HOME/.surrealdb/stable"

3- Then, I changed the line 59 to:

INSTALL_DIR="$HOME/.surrealdb/nightly";

Now I have it installed. Thanks.

tobiemh commented 1 year ago

Thanks for spotting this @felipetesc. This should be fixed now!