Skip to content
kojix2 edited this page Jun 18, 2020 · 18 revisions

Installing a released gem

Install GR first.

Set environment variable GRDIR, if you have not already done.

export GRDIR="/your/path/to/gr"

Add this line to your application's Gemfile:

gem 'ruby-gr'

Or

gem install ruby-gr

GR3 and GR::Plot require numo-narray.

Installing form source

git clone https://github.com/red-data-tools/GR.rb
cd GR.rb
rake build
rake install

GR Installation

Installing an official release (recommended)

Download the latest release.

Set environment variable GRDIR.

export GRDIR="your/path/to/gr"
  • macOS Catalina and macOS Mojave: See the "How to open an app that hasn’t been notarized or is from an unidentified developer" section of Safely open apps on your Mac in the Apple documentation.

Using your package manager

  • The third party GR packages for Mac, Linux and Windows are available (for advanced users).
  • If you find any problem, please report the issue here.

Mac - Homebrew

brew install libgr

Set environment variable GRDIR.

export GRDIR=$(brew --prefix libgr)

Linux - APT Yum

packages.red-data-tools.org provides libgr-dev and libgr3-dev.

Windows - MSYS2

If you are using Rubyinstaller, pacman will automatically install mingw-w64-gr when the gem is installed.

Clone this wiki locally