JS-52.2.1gnome1

#### Beyond Linux® From Scratch - Version 2019-02-27

### Chapter 9. General Libraries

- Prev

  Jansson-2.12

- Next

  JS-60.1.0

- Up
- Home

# JS-52.2.1gnome1

## Introduction to JS

JS is Mozilla's JavaScript engine written in C. This package is present for GJS and polkit.

This package is known to build and work properly using an LFS-8.4 platform.

### Package Information

- Download (HTTP): http://ftp.gnome.org/pub/gnome/teams/releng/tarballs-needing-help/mozjs/mozjs-52.2.1gnome1.tar.gz

- Download (FTP): ftp://ftp.gnome.org/pub/gnome/teams/releng/tarballs-needing-help/mozjs/mozjs-52.2.1gnome1.tar.gz

- Download MD5 sum: 72bd9a715ed1ab70b2aebe92969f6b63

- Download size: 36 MB

- Estimated disk space required: 627 MB

- Estimated build time: 6.4 SBU

### JS52 Dependencies

#### Required

Autoconf-2.13, ICU-63.1, NSPR-4.20, Python-2.7.15, Xorg Libraries, and Zip-3.0

#### Optional

Doxygen-1.8.15

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/js52

## Installation of JS

Install JS by running the following commands:

### Note

If installing in the chroot environment, be sure to export the `SHELL` environment variable or configuration of the package will fail.

    cd js/src &&

    ./configure --prefix=/usr       \
                --with-intl-api     \
                --with-system-zlib  \
                --with-system-nspr  \
                --with-system-icu   \
                --enable-threadsafe \
                --enable-readline   &&
    make

This package does not come with a working test suite.

Now, as the `root` user:

    make install

## Command Explanations

`--with-*`: These parameters allow the build system to use system versions of the above libriares. These are required for stability.

`--enable-readline`: This switch enables Readline support in the JS shell.

`--enable-threadsafe`: This switch enables support for multiple threads at one time. This increases performance as well as stability.

## Contents

Installed Programs: js52 and js52-config
Installed Libraries): libmozjs-52.so and libjs_static.ajs
Installed Directories: /usr/include/mozjs-52

### Short Descriptions

js52 | provides a command line interface to the JavaScript engine.
js52-config | is used to find the JS compiler and linker flags.
`libmozjs-52.so` | contains the Mozilla JavaScript API functions.

Last updated on 2019-02-15 15:01:29 -0600

- Prev

  Jansson-2.12

- Next

  JS-60.1.0

- Up
- Home