DEV Community

kojix2
kojix2

Posted on

2

Fast multi-core installation of Ruby gems with C extensions

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!

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more