JS-60.8.0

#### Beyond Linux® From Scratch (systemd Edition) - Version 9.0

### Chapter 9. General Libraries

- Prev

  Jansson-2.12

- Next

  JSON-C-0.13.1

- Up
- Home

# JS-60.8.0

## Introduction to JS

JS is Mozilla's JavaScript engine written in C.

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

### Package Information

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

- Download (FTP): ftp://ftp.gnome.org/pub/gnome/teams/releng/tarballs-needing-help/mozjs/mozjs-60.8.0.tar.bz2

- Download MD5 sum: 5eda38cc08a3594a3f2c3cc185d4f15b

- Download size: 31 MB

- Estimated disk space required: 640 MB

- Estimated build time: 6.6 SBU

### JS60 Dependencies

#### Required

Autoconf-2.13, ICU-64.2, Python-2.7.16, Xorg Libraries, and Zip-3.0

#### Optional

Doxygen-1.8.16

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

## Installation of JS

### Caution

If you are upgrading JS60 from a previously installed old version, save all work and exit your GNOME Session if you have one running. Replacing the JS60 binary will cause the GNOME Shell to crash and return you to your display manager or TTY. After installing the new version, reinstall Gjs-1.56.2. Polkit is unaffected.

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.

    mkdir mozjs-build &&
    cd    mozjs-build &&

    ../js/src/configure --prefix=/usr       \
                        --with-intl-api     \
                        --with-system-zlib  \
                        --with-system-icu   \
                        --disable-jemalloc  \
                        --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.

`--disable-jemalloc`: This switch disables the internal memory allocator used in JS60. jemalloc causes a conflict with glibc.

## Contents

Installed Programs: js60 and js60-config
Installed Libraries: libmozjs-60.so and libjs_static.ajs
Installed Directories: /usr/include/mozjs-60

### Short Descriptions

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

Last updated on 2019-08-19 21:51:38 -0700

- Prev

  Jansson-2.12

- Next

  JSON-C-0.13.1

- Up
- Home