Fast multi-core installation of Ruby gems with C extensions
kojix2

kojix2 @kojix2

About: Ruby & Crystal & Bioinformatics

Location:
Japan
Joined:
Jan 17, 2019

Fast multi-core installation of Ruby gems with C extensions

Publish Date: Jul 14 '22
3 0

It's easy. Simply set the environment variable GNUMAKEFLAGS or MAKEFLAGS.

export GNUMAKEFLAGS=-j4
Enter fullscreen mode Exit fullscreen mode

Update locally installed gems.

MAKEFLAGS=-j8 gem update
Enter fullscreen mode Exit fullscreen mode

This technique can be applied to programming languages other than Ruby. For example, the R language library also uses the C++ extension, and these environment variables will speed up the installation.

Have a nice day!

Comments 0 total

    Add comment