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

Installer fail. Both fish-shell and bash. #494

Closed
dontdieych opened this issue Sep 28, 2024 · 1 comment
Closed

Installer fail. Both fish-shell and bash. #494

dontdieych opened this issue Sep 28, 2024 · 1 comment

Comments

@dontdieych
Copy link

https://gist.github.com/dontdieych/116af6dcb32bc93846ebb72ab9f3669e

( My shell is fish-shell )

╰─❯ bash -- --user <(curl -s "https://raw.githubusercontent.com/amber-lang/amber/master/setup/install.sh")
fish: Invalid redirection target:
bash -- --user <(curl -s "https://raw.githubusercontent.com/amber-lang/amber/master/setup/install.sh")
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

╰─❯ bash -- --user (curl -s "https://raw.githubusercontent.com/amber-lang/amber/master/setup/install.sh"|psub)
bash: --user: No such file or directory

╰─❯ bash -- '--user <(curl -s "https://raw.githubusercontent.com/amber-lang/amber/master/setup/install.sh")'
bash: --user <(curl -s "https://raw.githubusercontent.com/amber-lang/amber/master/setup/install.sh"): No such file or directory

╰─❯ bash -- "--user <(curl -s \"https://raw.githubusercontent.com/amber-lang/amber/master/setup/install.sh\")"
bash: --user <(curl -s "https://raw.githubusercontent.com/amber-lang/amber/master/setup/install.sh"): No such file or directory

( Changed to bash )

╰─❯ bash
[a@a-macbookair exercises]$ bash -- --user <(curl -s "https://raw.githubusercontent.com/amber-lang/amber/master/setup/install.sh")
bash: --user: No such file or directory

[a@a-macbookair exercises]$ bash <(curl -s "https://raw.githubusercontent.com/amber-lang/amber/master/setup/install.sh")

Installing Amber... 🚀
chmod: cannot access '/opt/amber/amber': No such file or directory
Failed to give permissions to execute amber.
Please make sure that root user can access /opt/amber directory.

[a@a-macbookair exercises]$ sudo bash <(curl -s "https://raw.githubusercontent.com/amber-lang/amber/master/setup/install.sh")
bash: /dev/fd/63: No such file or directory

[a@a-macbookair exercises]$ sudo -s
[root@a-macbookair exercises]# bash <(curl -s "https://raw.githubusercontent.com/amber-lang/amber/master/setup/install.sh")

Amber already installed
It seems that Amber is already installed on your system. (/opt/amber)
If you want to reinstall Amber, uninstall it first.
(Find out more at https://docs.amber-lang.com/getting_started/installation#uninstallation)

[root@a-macbookair exercises]# amber
bash: amber: command not found...
^C
[root@a-macbookair exercises]# rm -rf /opt/amber/
[root@a-macbookair exercises]# bash <(curl -s "https://raw.githubusercontent.com/amber-lang/amber/master/setup/install.sh")

Installing Amber... 🚀
chmod: cannot access '/opt/amber/amber': No such file or directory
Failed to give permissions to execute amber.
Please make sure that root user can access /opt/amber directory.

[root@a-macbookair exercises]# ls -l /opt/
amber/     brave.com/ FreeTube/  vivaldi/

[root@a-macbookair exercises]# ls -l /opt/amber/
total 0

[root@a-macbookair exercises]# bash <(curl -s "https://raw.githubusercontent.com/amber-lang/amber/master/setup/install.sh")

Amber already installed
It seems that Amber is already installed on your system. (/opt/amber)
If you want to reinstall Amber, uninstall it first.
(Find out more at https://docs.amber-lang.com/getting_started/installation#uninstallation)

[root@a-macbookair exercises]# curl -s "https://raw.githubusercontent.com/Ph0enixKM/AmberNative/master/setup/uninstall.sh" | bash

rm: cannot remove '/usr/local/bin/amber': No such file or directory
Failed to remove Amber symlink from /usr/local/bin
Make sure root has the correct permissions to access this directory
@Mte90
Copy link
Member

Mte90 commented Sep 30, 2024

We have already a ticket for this amber-lang/amber-docs#53

@Mte90 Mte90 closed this as completed Sep 30, 2024
@github-project-automation github-project-automation bot moved this from 🆕 New to 🏁 Done in Amber Project Sep 30, 2024
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

2 participants