Closed mikasjp closed 3 years ago
`+ curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-installer curl: (22) The requested URL returned error: 404
Powinien się zatrzymać, gdy jest jakiś błąd po drodze (np. pobierania).
Jeszcze pozostaje kwestia błędnego urla: https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-installer
a ten pakiet jest w repo
apt install rbenv
Poprawione. Przerobiłem proces instalacji tak, żeby używał apt zamiast tego nieistniejącego skryptu.
Teraz mam coś takiego, testowałeś to u siebie? Jutro puszczę reinstall x102.
+ bash
+ curl -fsSL https://github.com/rbenv/rbenv-installer/raw/main/bin/rbenv-doctor
Checking for `rbenv' in PATH: /usr/bin/rbenv
Checking for rbenv shims in PATH: not found
The directory `/root/.rbenv/shims' must be present in PATH for rbenv to work.
Please run `rbenv init' and follow the instructions.
Checking `rbenv install' support: not found
Unless you plan to add Ruby versions manually, you should install ruby-build.
Please refer to https://github.com/rbenv/ruby-build#installation
Counting installed Ruby versions: none
There aren't any Ruby versions installed under `/root/.rbenv/versions'.
You can install Ruby versions like so: rbenv install 2.4.1
Checking RubyGems settings: OK
Auditing installed plugins: OK
+ [[ 1 -ne 0 ]]
+ echo 'Wystąpił błąd podczas instalacji rbenv.'
Wystąpił błąd podczas instalacji rbenv.
+ exit 1```
Ok, teraz powinno działać. Przetestowałem w czystym kontenerze Dockerowym
Wspaniale :)
Prosta instalacja Ruby i jego bardzo popularnego menedżera wersji — rbenv