Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7.0.0 fails to install on linux #40

Closed
fierysolid opened this issue Jan 27, 2020 · 9 comments
Closed

7.0.0 fails to install on linux #40

fierysolid opened this issue Jan 27, 2020 · 9 comments

Comments

@fierysolid
Copy link

The following error occurs when trying to install the latest dep of gifsicle on Linux. 6.0.1 works fine

error ./node_modules/gifsicle: Command failed.
Exit code: 1
Command: node lib/install.js
Arguments:
Directory: ./node_modules/gifsicle
Output:
⚠ Response code 404 (Not Found)
  ⚠ gifsicle pre-build test failed
  ℹ compiling from source
  ✖ Error: Command failed: /bin/sh -c autoreconf -ivf
/bin/sh: 1: autoreconf: not found
@danez
Copy link

danez commented Feb 3, 2020

I have the same.

@wouterds
Copy link

Can confirm, downgrading to 6.0.1 "works".

@clse
Copy link

clse commented Feb 28, 2020

Having the same issue. Bundled within gulp-imagemin.

@nodeg
Copy link

nodeg commented Mar 31, 2020

autoreconf is not found as the last line above suggests. autoreconf is part of autoconf, try installing autoconf and dh-autoreconf on your distribution

@clse
Copy link

clse commented Apr 6, 2020

The issue is we shouldn't have to manually install these packages. If they are necessary for this package to work, they should be dependencies.

@nodeg
Copy link

nodeg commented Apr 9, 2020

@melissaclausse: The packages I mentioned earlier are not npm packages, but packages that have to be installed using the operating system's package manager.

@clse
Copy link

clse commented Apr 9, 2020

Gotcha - thanks for clarifying. Still, this is fully incompatible with production builds that are not happening on my local machine. Is there anything that could fix this that would be set up as a dependency instead?

@nodeg
Copy link

nodeg commented Apr 20, 2020

imagemin-gifsicle depends on gifsicle-bin which removed i.a. the GNU/Linux binary files of gifsicle due to security vulnerabilites in version 5.0.0. That is why the binary has to be build from source and why you need dh-autoreconf. There is already an upstream issue opened for that: #113

@janwidmer
Copy link

gifsicle-bin has been updated via imagemin/gifsicle-bin#118 and released in version 5.2.0 which should include the Linux bin files again. Therefore please adjust the dependency version to ^5.2.0 in the package json. As we are using imagemin-gifsicle, I can only close the issue #113 after getting a new release of imagemin-gifsicle

@1000ch 1000ch closed this as completed Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants