Date: Thu, 28 Mar 2024 19:04:29 +0000 (UTC) Message-ID: <69912041.24625.1711652669207@ae5f4610bf64> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_24624_994000199.1711652669206" ------=_Part_24624_994000199.1711652669206 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
This page provides important information for users of the Ice fo= r Ruby distribution.
On this page:
Ice for Ruby is available as a collec= tion of Ruby gems. Each package p= rovides the following components:
slice2=
rb
)
Linux and macOS users can install Ice for Ruby using this command:
sudo g= em install zeroc-ice --version=3D3.6.4
This gem builds Ice for Ruby from source and supports Ruby 1.8 or later.=
Windows users can install a binary gem instead:
gem install = zeroc-ice-x64-mingw (Windows 64-bit) gem install zeroc-ice-x86-mingw (Windows 32-bit)
These gems require Ruby 2.4.
The installation process automatically adds the Ice modules to Ruby's pa=
ckage directory and adds the Slice-to-Ruby compiler (slice2rb
)=
to a directory that's likely already in your executable search path. To ve=
rify that Ice is installed, execute these commands:
irb irb> require 'Ice' irb> Ice::getSliceDir()
The output of getSliceDir
shows where the standard Sli=
ce files have been installed.
Ruby 1.8
Users of Ruby 1.8 must add the -rubygems
option when =
starting the interpreter with irb
or ruby
:
irb -rubygem= s irb> require 'Ice' irb> Ice::getSliceDir()
The Ice manual provides a complete description of the Ruby mapping, including the options for = ;generating Ruby code from Slice definitions.
Sample programs are provided in a separate GitHub repos= itory. You can browse this repository to see build and usage instr= uctions for all supported programming languages. Simply clone thi= s repository and use its 3.6 branch:
git clone -b= 3.6 https://github.com/zeroc-ice/ice-demos.git cd ice-demos