How To Install mozjs52.x86_64 on Amazon Linux 2

In this tutorial we learn how to install mozjs52.x86_64 in Amazon Linux 2. mozjs52.x86_64 is SpiderMonkey JavaScript library

Introduction

In this tutorial we learn how to install mozjs52.x86_64 on Amazon Linux 2.

What is mozjs52.x86_64

SpiderMonkey is the code-name for Mozilla Firefox’s C++ implementation of JavaScript. It is intended to be embedded in other applications that provide host environments for JavaScript.

We can use yum to install mozjs52.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install mozjs52.x86_64.

Install mozjs52.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install mozjs52.x86_64 using yum by running the following command:

sudo yum -y install mozjs52.x86_64

How To Uninstall mozjs52.x86_64 on Amazon Linux 2

To uninstall only the mozjs52.x86_64 package we can use the following command:

sudo yum remove mozjs52.x86_64

mozjs52.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libmozjs-52.so.0
/usr/lib64/libmozjs-52.so.0.0.0
/usr/share/doc/mozjs52-52.9.0
/usr/share/doc/mozjs52-52.9.0/README.html

References

Summary

In this tutorial we learn how to install mozjs52.x86_64 on Amazon Linux 2 using yum.