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 5 years have passed since last update.

ubuntuでrbenvをaptで導入してrubyを入れる

Posted at

前提

ネット上の自分でライブラリを落としてくるやり方
(参考:https://qiita.com/yuma-ito-bd/items/00f89ca0c04909c7c467)

sudo apt install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm5 libgdbm-dev

だと開発終了したライブラリの互換が見つけられずinstallに失敗したため、aptでrbenvをinstallしました。

※aptで取ってしまうと古めのrbenvがinstallされるので最新版を使いたい方は注意

手順

1.aptをupdate

sudo apt update

2.install

sudo apt install rbenv
とすると

3.version確認

rbenv -v # rbenv 1.1.1
無事にrbenvが入りました
ではrubyをinstallします

4.Rubyのバージョンを指定してinstall

CONFIGURE_OPTS='--disable-install-rdoc' rbenv install 2.6.3

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?