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

### Chapter 33. GNOME Libraries and Desktop

- Prev

  geocode-glib-3.26.2

- Next

  gnome-autoar-0.4.3

- Up
- Home

# Gjs-1.70.1

## Introduction to Gjs

Gjs is a set of Javascript bindings for GNOME.

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

### Package Information

- Download (HTTP): https://download.gnome.org/sources/gjs/1.70/gjs-1.70.1.tar.xz

- Download (FTP): ftp://ftp.acc.umu.se/pub/gnome/sources/gjs/1.70/gjs-1.70.1.tar.xz

- Download MD5 sum: 5762ceb7cc5ed79acb0b9614511a7024

- Download size: 588 KB

- Estimated disk space required: 226 MB (with tests)

- Estimated build time: 0.6 SBU (with tests)

### Gjs Dependencies

#### Required

Cairo-1.17.4, dbus-1.12.20, gobject-introspection-1.70.0, and js78-78.15.0

#### Recommended (required for GNOME)

GTK+-3.24.31 and GTK-4.6.1

#### Optional

sysprof-3.42.1, Valgrind-3.18.1 (for tests), DTrace, LCOV, and Systemtap

User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/gjs

## Installation of Gjs

Install Gjs by running the following commands:

    mkdir gjs-build &&
    cd    gjs-build &&

    meson --prefix=/usr --buildtype=release .. &&
    ninja

To test the results, issue: ninja test. The GTK and Cairo tests will fail if not running in an Xorg session. The `gjs:JS / Gtk4` test is known to exit with an ERROR on some systems.

Now, as the `root` user:

    ninja install &&
    ln -sfv gjs-console /usr/bin/gjs

## Command Explanations

`--buildtype=release`: Specify a buildtype suitable for stable releases of the package, as the default may produce unoptimized binaries.

## Contents

Installed Programs: gjs (symlink) and gjs-console
Installed Library: libgjs.so
Installed Directories: /usr/include/gjs-1.0, /usr/lib/gjs, /usr/libexec/installed-tests/gjs, /usr/share/gjs-1.0, and /usr/share/installed-tests/gjs

### Short Descriptions

gjs-console | contains a console to run JavaScript commands
`libgjs.so` | contains the GNOME JavaScript bindings

Last updated on

- Prev

  geocode-glib-3.26.2

- Next

  gnome-autoar-0.4.3

- Up
- Home