Установка RVM: получение ошибки "Произошла ошибка (23)".
Я пытаюсь установить Ruby Version Manager (RVM) без успеха.
Как пройти эту ошибку, которую я получаю?
[email protected]:/tmp$ rvm install ruby-1.9.3-p484
Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/14.04/x86_64/ruby-1.9.3-p484.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for ubuntu.
Requirements installation successful.
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-1.9.3-p484, this may take a while depending on your cpu(s)...
ruby-1.9.3-p484 - #downloading ruby-1.9.3-p484, this may take a while depending on your connection...
Warning: Failed to create the file ruby-1.9.3-p484.tar.bz2.part: Permission
Warning: denied
0 9806k 0 1002 0 0 22905 0 0:07:18 --:--:-- 0:07:18 23302
curl: (23) Failed writing body (0 != 1002)
There was an error(23).
Checking fallback: http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p484.tar.bz2
Warning: Failed to create the file ruby-1.9.3-p484.tar.bz2.part: Permission
Warning: denied
0 9806k 0 1167 0 0 4300 0 0:38:55 --:--:-- 0:38:55 4290
curl: (23) Failed writing body (0 != 1167)
There was an error(23).
Failed download
There has been an error fetching the ruby interpreter. Halting the installation.
[email protected]:/tmp$
Ответы
Ответ 1
Ваш RVM установлен в /usr/local/rvm
- он часто называется установкой системы, для этого требуется, чтобы ваш пользователь ubuntu
был добавлен в группу rvm
:
rvm group add rvm "$USER"
yes use $USER
он будет заменен вашей оболочкой с вашим именем пользователя
затем выйдите из системы и войдите в систему, убедитесь, что:
id
что ваш пользователь находится в группе rvm
,
наконец, на всякий случай разрешения на обновление для RVM:
rvm fix-permissions