0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

CentOSのrbenvのupdate

Last updated at Posted at 2020-10-12

イントロ

CentOSのrbenvが古そうだったのでupdate

まずは

たんに,

rbenv update

しても

> rbenv update
Updating rbenv
 |  fatal: unable to access 'https://github.com/sstephenson/rbenv.git/': SSL connect error
Updating rbenv-update

と怒られる.

解決策

そこで,

> cd ${rbenv root) #=> /usr/local/rbenv
> git remote add origin git@github.com:sstephenson/rbenv.git
> git pull origin master

とします.何,普通にgitの使い方.そうすると,pluginsに必要なcommand群がinstallされます.そうしておいて,

> rbenv update
Updating rbenv
 |  From github.com:sstephenson/rbenv
 |  * [new branch]      gh-pages   -> origin/gh-pages
 |  * [new branch]      user-gems  -> origin/user-gems
 |  * [new branch]      version-aliases -> origin/version-aliases
 |  * [new tag]         v1.1.0     -> v1.1.0
 |  * [new tag]         v1.1.1     -> v1.1.1
 |  * [new tag]         v1.1.2     -> v1.1.2
 |  There is no tracking information for the current branch.
 |  Please specify which branch you want to merge with.
 |  See git-pull(1) for details.
 |  
 |  git pull <remote> <branch>
 |  
 |  If you wish to set tracking information for this branch you can do so with:
 |  
 |  git branch --set-upstream-to=origin/<branch> master
 |  
Updating rbenv-update

と,無事updateできたらしい.

でも,最新版のrubyは2.7.0-preview2で,変わらずでした.

やれやれ.


  • source ~/Desktop/lecture_22f/multi_scale_22/semi_lattice_20f/rbenv_update_centos.org
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?