Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
最近のrubyインストール方法
Search
Kazuhiro NISHIYAMA
December 01, 2018
Programming
190
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
最近のrubyインストール方法
第84回 Ruby関西 勉強会での snap や docker イメージについてのプレゼンの発表資料です。
Kazuhiro NISHIYAMA
December 01, 2018
More Decks by Kazuhiro NISHIYAMA
See All by Kazuhiro NISHIYAMA
Reforming the Japanese Ruby reference manual
znz
0
31
Rubyの配布パッケージの変遷
znz
0
53
Headscale + Tailscale に移行中
znz
0
93
Ruby on Rails と私
znz
0
92
riscv64.rubyci.org internal
znz
0
68
Rubyの日本語リファレンスマニュアルの現在と未来
znz
0
120
devise-two-factorを4.xから5.xに上げた話
znz
0
460
docs.ruby-lang.org/ja/ の生成方法を変えた
znz
0
130
Ubuntuのriscv64版をqemuで動かした
znz
0
160
Other Decks in Programming
See All in Programming
AI Agent時代のリアーキテクチャ戦略と実践
hokaccha
9
5k
Jetpack Compose メカニズム
skydoves
0
470
JAWS-UG 東京支部が始める、JAWS-UG支部コラボ / JAWS-UG lunchtime LT Collaboration
y0hgi
0
100
モデルのリファクタリングが難しいと思ったら、そもそも複雑だったのはビジネス仕様だった ? / is-the-business-domain-the-real-complexity
hatsu38
0
390
WebMCP Challenge に星空観察アプリで参加した話
okajun35
0
190
新卒PdEのリアル
ryu1013
1
510
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
280
アクセシビリティから考える情報設計
high_g_engineer
0
400
大喜利で理解するLLM as a Judge / Understanding LLM-as-a-Judge through Ogiri
rockname
0
160
JRuby: Past, Present, and Future
headius
0
190
Family mrubyの進捗
kishima
1
130
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
290
Featured
See All Featured
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
1
420
A better future with KSS
kneath
240
18k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.4k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
440
Code Reviewing Like a Champion
maltzj
528
40k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
580
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
670
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
440
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
950
Claude Code のすすめ
schroneko
67
230k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
2k
Transcript
最近のrubyインストール方法 Kazuhiro NISHIYAMA 第84回 Ruby関西 勉強会 2018/12/01 株式会社Ruby開発 Powered by
Rabbit 2.2.1
自己紹介 西山 和広 Ruby のコミッター twitter, github など: @znz 株式会社Ruby開発
www.ruby-dev.jp 1/15
agenda 通常インストール snap docker 2/15
通常インストール 最新版は公式サイトのダウンロード http:// www.ruby-lang.org/ja/downloads/ から Windows なら RubyInstaller Ruby 開発者には
rbenv + ruby-build が人気で rvm は評 判が悪い Linux などなら OS 標準のパッケージでインス トールも良い yum や apt など 3/15
snap とは? canonical が開発している新しいパッケージシス テム Ubuntu 16.04 以降には標準で入っている その他の対応環境は https://docs.snapcraft.io/
installing-snapd/6735 参照 http://www.ruby-lang.org/ja/news/2018/11/08/ snap/ 4/15
snap でのインストール sudo snap install ruby --classic 2018/11 現在 channel
を指定しない場合は 2.5.3 がイン ストールされる 2.4 を利用したい場合 sudo snap install ruby --classic --channel=2.4/stable 5/15
切り替え 2.3 に切り替えるには以下のコマンドを実行: sudo snap switch ruby --channel=2.3/stable sudo snap
refresh 6/15
snap の制限事項 RubyGems は $HOME/.gem にインストールされる ように GEM_HOME と GEM_PATH
が設定されている bundle exec なしで rails コマンドなどを実行し たい場合 .bashrc などに以下が必要 eval `ruby.env` 7/15
snap での gem の注意事項 $HOME/.gem が複数バージョンで共有される 切り替え時にC拡張は gem pristine --
extensions で再コンパイルが必要 nokogiri など 8/15
フィードバック先 https://github.com/ruby/snap.ruby 不具合報告やフィードバックなどはこちらへ 9/15
docker とは? Linux のコンテナ環境 簡単にいうと、外側の環境にあまり影響を与えず に、独立した環境の中でプログラムを動かせるも の 10/15
docker ruby イメージ https://hub.docker.com/_/ruby/ docker pull ruby のもの docker オフィシャル
production 環境向き ruby 本体の開発者は関わっていない (Linux ディストリビューションのパッケージと同じ) 11/15
rubylang/ruby イメージ https://hub.docker.com/r/rubylang/ruby/ docker pull rubylang/ruby ruby-lang.org オフィシャル 2018/11現在 実験的
(EXPERIMENTAL) 扱い trunk のナイトリービルドがある 開発中のバージョンを一番手軽に試せる環境になるかも 12/15
rubylang/all-ruby イメージ https://hub.docker.com/r/rubylang/all-ruby/ docker pull rubylang/all-ruby 大きい (現在 10.2GB) ので注意
リリースされたすべての ruby での動作を確認できるイ メージ バグ報告をするときやドキュメントを書く時などに便利 13/15
実行例 $ docker run -it --rm rubylang/all-ruby ./all-ruby -e 'print("hello\n")'
ruby-0.49 hello ... ruby-2.6.0-preview2 hello 14/15
まとめ 通常インストールは公式サイト参照 ディストリビューションのパッケージのインス トールもあり snap パッケージが最近増えた 用途によっては docker イメージも便利 15/15
Powered by Rabbit 2.2.1