Skip to content

Fedora 36, can't install jpegoptim #108

@orangecoloured

Description

@orangecoloured

While doing yarn install I get the following error

error /node_modules/jpegoptim-bin: Command failed.
Exit code: 1
Command: node lib/install.js
Arguments: 
Directory: /node_modules/jpegoptim-bin
Output:
Command failed: /node_modules/jpegoptim-bin/vendor/jpegoptim --version
/node_modules/jpegoptim-bin/vendor/jpegoptim: error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or directory

jpegoptim pre-build test failed
compiling from source
Error: Command failed: /bin/sh -c ./configure --prefix="/node_modules/jpegoptim-bin/vendor" --bindir="/node_modules/jpegoptim-bin/vendor"

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... yes
checking for jpeg_read_header in -ljpeg... no
Cannot find libjpeg or you have too old version (v6 or later required).

    at /node_modules/bin-build/node_modules/execa/index.js:231:11

libjpeg-turbo is installed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions