Table of Contents
brew install ruby
Return to Ruby, Ruby installation, Homebrew on Linux, Homebrew on macOS, brew install, Cloud Monk's Development PC DevOps Automation via Ansible-Chocolatey-PowerShell-Homebrew-DNF-APT, choco install ruby
Brew on Linux
brew install ruby =⇒ Downloading https://ghcr.io/v2/homebrew/core/libyaml/manifests/0.2.
- =#=# ######################################################################## 100.0%
=⇒ Downloading https://ghcr.io/v2/homebrew/core/libyaml/blobs/sha256:3 =⇒ Downloading from https://pkg-containers.githubusercontent.com/ghcr1
- =#=# ######################################################################## 100.0%
=⇒ Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/manife
- =#=# ######################################################################## 100.0%
=⇒ Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/blobs/ =⇒ Downloading from https://pkg-containers.githubusercontent.com/ghcr1
- =#=# ######################################################################## 100.0%
=⇒ Downloading https://ghcr.io/v2/homebrew/core/openssl/1.1/manifests/
- =#=# ##O#-# ################### ######################################################################## 100.0%
=⇒ Downloading https://ghcr.io/v2/homebrew/core/openssl/1.1/blobs/sha2 =⇒ Downloading from https://pkg-containers.githubusercontent.com/ghcr1
- =#=# ###### ################## ############################### ########################################## ###################################################### ################################################################## ######################################################################## 100.0%
=⇒ Downloading https://ghcr.io/v2/homebrew/core/ncurses/manifests/6.3
- =#=# ######################################################################## 100.0%
=⇒ Downloading https://ghcr.io/v2/homebrew/core/ncurses/blobs/sha256:0 =⇒ Downloading from https://pkg-containers.githubusercontent.com/ghcr1
- =#=# ####################### #################################################### ######################################################################## 100.0%
=⇒ Downloading https://ghcr.io/v2/homebrew/core/readline/manifests/8.2
- =#=# ######################################################################## 100.0%
=⇒ Downloading https://ghcr.io/v2/homebrew/core/readline/blobs/sha256: =⇒ Downloading from https://pkg-containers.githubusercontent.com/ghcr1
- =#=# ######################################################################## 100.0%
=⇒ Downloading https://ghcr.io/v2/homebrew/core/libffi/manifests/3.4.3
- =#=# ##O#-# ######################################################################## 100.0%
=⇒ Downloading https://ghcr.io/v2/homebrew/core/libffi/blobs/sha256:45 =⇒ Downloading from https://pkg-containers.githubusercontent.com/ghcr1
- =#=# ######################################################################## 100.0%
=⇒ Downloading https://ghcr.io/v2/homebrew/core/libxcrypt/manifests/4.
- =#=# ######################################################################## 100.0%
=⇒ Downloading https://ghcr.io/v2/homebrew/core/libxcrypt/blobs/sha256 =⇒ Downloading from https://pkg-containers.githubusercontent.com/ghcr1
- =#=# ######################################################################## 100.0%
=⇒ Downloading https://ghcr.io/v2/homebrew/core/ruby/manifests/3.1.2_1
- =#=# ############################################################# ######################################################################## 100.0%
=⇒ Downloading https://ghcr.io/v2/homebrew/core/ruby/blobs/sha256:4382 =⇒ Downloading from https://pkg-containers.githubusercontent.com/ghcr1
- =#=# #### ########## ################ ####################### ############################## #################################### ########################################## ################################################ ####################################################### ################################################################## ######################################################################## 100.0%
=⇒ Installing dependencies for ruby: libyaml, ca-certificates, openssl@1.1, ncurses, readline, libffi and libxcrypt =⇒ Installing ruby dependency: libyaml =⇒ Pouring libyaml–0.2.5.x86_64_linux.bottle.tar.gz 🍺 /home/linuxbrew/.linuxbrew/Cellar/libyaml/0.2.5: 11 files, 373.2KB =⇒ Installing ruby dependency: ca-certificates =⇒ Pouring ca-certificates–2022-10-11.all.bottle.tar.gz 🍺 /home/linuxbrew/.linuxbrew/Cellar/ca-certificates/2022-10-11: 3 files, 225.4KB =⇒ Installing ruby dependency: openssl@1.1 =⇒ Pouring openssl@1.1–1.1.1s.x86_64_linux.bottle.tar.gz 🍺 /home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1s: 8,409 files, 24MB =⇒ Installing ruby dependency: ncurses =⇒ Pouring ncurses–6.3.x86_64_linux.bottle.tar.gz 🍺 /home/linuxbrew/.linuxbrew/Cellar/ncurses/6.3: 3,958 files, 9.8MB =⇒ Installing ruby dependency: readline =⇒ Pouring readline–8.2.1.x86_64_linux.bottle.tar.gz 🍺 /home/linuxbrew/.linuxbrew/Cellar/readline/8.2.1: 50 files, 2MB =⇒ Installing ruby dependency: libffi =⇒ Pouring libffi–3.4.3.x86_64_linux.bottle.tar.gz 🍺 /home/linuxbrew/.linuxbrew/Cellar/libffi/3.4.3: 18 files, 686KB =⇒ Installing ruby dependency: libxcrypt =⇒ Pouring libxcrypt–4.4.28.x86_64_linux.bottle.tar.gz 🍺 /home/linuxbrew/.linuxbrew/Cellar/libxcrypt/4.4.28: 24 files, 330.4KB =⇒ Installing ruby =⇒ Pouring ruby–3.1.2_1.x86_64_linux.bottle.tar.gz =⇒ Caveats By default, binaries installed by gem will be placed into:
/home/linuxbrew/.linuxbrew/lib/ruby/gems/3.1.0/bin
You may want to add this to your PATH.
Emacs Lisp files have been installed to:
/home/linuxbrew/.linuxbrew/share/emacs/site-lisp/ruby=⇒ Summary 🍺 /home/linuxbrew/.linuxbrew/Cellar/ruby/3.1.2_1: 15,997 files, 42.6MB =⇒ Running `brew cleanup ruby`… Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`). =⇒ Caveats =⇒ ruby By default, binaries installed by gem will be placed into:
/home/linuxbrew/.linuxbrew/lib/ruby/gems/3.1.0/bin
You may want to add this to your PATH.
Emacs Lisp files have been installed to:
/home/linuxbrew/.linuxbrew/share/emacs/site-lisp/ruby
Brew on macOS
brew search ruby
=⇒ Formulae
chruby ruby-completion chruby-fish ruby-install cucumber-ruby ruby@2.4 imessage-ruby ruby@2.5 jruby ruby@2.6 mruby ruby@2.7 mruby-cli ruby@3.0 rbenv-bundler-ruby-version rubyfmt ruby homebrew/portable-ruby/portable-ruby ruby-build
=⇒ Casks
rubymine rubymotion
iMac ~ % brew install ruby
=⇒ Downloading https://ghcr.io/v2/homebrew/core/ruby/manifests/3.1.2_1
=⇒ Downloading https://ghcr.io/v2/homebrew/core/ruby/blobs/sha256:519a9dca4f576
=⇒ Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh
=⇒ Pouring ruby–3.1.2_1.monterey.bottle.tar.gz
=⇒ Caveats
By default, binaries installed by gem will be placed into:
/usr/local/lib/ruby/gems/3.1.0/bin
You may want to add this to your PATH.
ruby is keg-only, which means it was not symlinked into /usr/local, because macOS already provides this software and installing another version in parallel can cause all kinds of trouble.
If you need to have ruby first in your PATH, run:
echo 'export PATH=“/usr/local/opt/ruby/bin:$PATH”' » ~/.zshrc
For compilers to find ruby you may need to set:
export LDFLAGS=“-L/usr/local/opt/ruby/lib”
export CPPFLAGS=“-I/usr/local/opt/ruby/include”
For pkg-config to find ruby you may need to set:
export PKG_CONFIG_PATH=“/usr/local/opt/ruby/lib/pkgconfig”
=⇒ Summary
🍺 /usr/local/Cellar/ruby/3.1.2_1: 15,996 files, 41MB
=⇒ Running `brew cleanup ruby`…
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
iMac ~ % ruby --version
ruby 2.6.10p210 (2022-04-12 revision 67958) universal.x86_64-darwin22
—
iMac ~ % ruby --help
Usage: ruby [switches] [–] [programfile] [arguments]
-0[octal] specify record separator (\0, if no argument) -a autosplit mode with -n or -p (splits $_ into $F) -c check syntax only -Cdirectory cd to directory before executing your script -d, --debug set debugging flags (set $DEBUG to true) -e 'command' one line of script. Several -e's allowed. Omit [programfile] -Eex[:in], --encoding=ex[:in] specify the default external and internal character encodings -Fpattern split() pattern for autosplit (-a) -i[extension] edit ARGV files in place (make backup if extension supplied) -Idirectory specify $LOAD_PATH directory (may be used more than once) -l enable line ending processing -n assume 'while gets(); ... end' loop around your script -p assume loop like -n but print line also like sed -rlibrary require the library before executing your script -s enable some switch parsing for switches after script name -S look for the script using PATH environment variable -T[level=1] turn on tainting checks -v print the version number, then turn on verbose mode -w turn warnings on for your script -W[level=2] set warning level; 0=silence, 1=medium, 2=verbose -x[directory] strip off text before #!ruby line and perhaps cd to directory --jit enable JIT with default options (experimental) --jit-[option] enable JIT with an option (experimental) --copyright print the copyright --dump={insns|parsetree|...}[,...] dump debug information. see below for available dump list --enable={gems|rubyopt|...}[,...], --disable={gems|rubyopt|...}[,...] enable or disable features. see below for available features --external-encoding=encoding, --internal-encoding=encoding specify the default external or internal character encoding --verbose turn on verbose mode and disable script from stdin --version print the version number, then exit --help show this message, -h for short messageDump List:
insns instruction sequences yydebug yydebug of yacc parser generator parsetree AST parsetree_with_comment AST with commentsFeatures:
gems rubygems (default: enabled) did_you_mean did_you_mean (default: enabled) rubyopt RUBYOPT environment variable (default: enabled) frozen-string-literal freeze all string literals (default: disabled) jit JIT compiler (default: disabled)JIT options (experimental):
--jit-warnings Enable printing JIT warnings --jit-debug Enable JIT debugging (very slow) --jit-wait Wait until JIT compilation is finished everytime (for testing) --jit-save-temps Save JIT temporary files in $TMP or /tmp (for testing) --jit-verbose=num Print JIT logs of level num or less to stderr (default: 0) --jit-max-cache=num Max number of methods to be JIT-ed in a cache (default: 1000) --jit-min-calls=num Number of calls to trigger JIT (for testing, default: 5)
Ruby: Ruby Fundamentals, Ruby Inventor - Ruby Language Designer: Yukihiro Matsumoto in 1995; Ruby scripting, Rails, RubyGems, Ruby keywords, Ruby Built-In Data Types, Ruby data structures - Ruby algorithms, Ruby syntax, Ruby OOP - Ruby design patterns, Ruby for Chef, Ruby for Puppet, Ruby on Linux, Ruby on macOS, Ruby on Windows, Ruby installation, Ruby containerization, Ruby configuration, Ruby compiler - Ruby interpreter (Matz's Ruby Interpreter or Ruby MRI, also called CRuby), Ruby IDEs (RubyMine), Ruby development tools, Ruby DevOps - Ruby SRE, Ruby data science - Ruby DataOps, Ruby machine learning, Ruby deep learning, Functional Ruby, Ruby concurrency, Ruby history, Ruby bibliography, Ruby glossary, Ruby topics, Ruby courses, Ruby Standard Library, Ruby libraries, Ruby frameworks (Ruby on Rails), Ruby research, Ruby GitHub, Written in Ruby, Ruby popularity, Ruby Awesome list, Ruby Versions. (navbar_ruby)
Homebrew: Cloud Monk's Package Manager Book Homebrew Chapter, Cloud Monk's Development PC DevOps Automation via Ansible-Chocolatey-PowerShell-Homebrew-DNF-APT, Homebrew Glossary, Homebrew Fundamentals, Homebrew Inventor - Homebrew Designer: Mike McQuaid, Brew DevOps - Homebrew on macOS - macOS DevOps - MacOps, Homebrew on Linux - Linux DevOps - LinuxOps, Homebrew Automation, Idempotent, Refreshenv, Homebrew Topics, macOS Package Managers, Package managers, macOS Configuration Management, PowerShell on macOS Ansible on macOS, Chef on macOS, Puppet on macOS (navbar_brew - see also navbar_choco, navbar_package_manager)
© 1994 - 2024 Cloud Monk Losang Jinpa or Fair Use. Disclaimers
SYI LU SENG E MU CHYWE YE. NAN. WEI LA YE. WEI LA YE. SA WA HE.