imagemin / gifsicle-bin

gifsicle bin-wrapper that makes it seamlessly available as a local dependency
http://www.lcdf.org/gifsicle/
MIT License
112 stars 52 forks source link

Error: autoreconf -ivf #79

Open meness opened 7 years ago

meness commented 7 years ago

Hi,

I'm using the version 5.3.0 of NPM and getting following error after npm install.

× Error: autoreconf -ivf && ./configure --disable-gifview --disable-gifdiff --prefix="xxx\node_modules\gifsicle\vendor" --bindir= "xxx\node_modules\gifsicle\vendor" && make install Command failed: autoreconf -ivf 'autoreconf' is not recognized as an internal or external command, operable program or batch file.

at ChildProcess.exithandler (child_process.js:211:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:192:7)
at maybeClose (internal/child_process.js:890:16)
at Socket.<anonymous> (internal/child_process.js:334:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:189:7)
at Pipe._handle.close [as _onclose] (net.js:501:12)
nwaweru commented 6 years ago

Linux: sudo apt-get install libtool automake autoconf nasm OS X: brew install libtool automake autoconf nasm

KeithCowan commented 5 years ago

How about on Windows??

mojavelinux commented 5 years ago

The update to 4.0.1 broke installation on Alpine Linux.

Output:
⚠ spawn /root/node_modules/gifsicle/vendor/gifsicle ENOENT
  ⚠ gifsicle pre-build test failed
  ℹ compiling from source
  ✖ Error: Command failed: /bin/sh -c autoreconf -ivf
/bin/sh: autoreconf: not found

(4.0.0 installs fine)

zzroche commented 5 years ago

How about on Windows??

I've the same problem

gsaini commented 5 years ago

I also have the same issue on windows machine.

zzroche commented 5 years ago

Also doesn't work without gulp.

lukas-lansky commented 5 years ago

Linux: sudo apt-get install libtool automake autoconf nasm

In Alpine, apk add libtool automake autoconf nasm is not sufficient as it leads to configure: error: no acceptable C compiler found in $PATH. apk add build-base helped me with this problem, but that for itself says OK: 271 MiB in 52 packages. It really forces staged builds.

RainLucky commented 4 years ago

我在Windows机器上也有同样 我也是,请问你们这个问题解决了吗? Me too.Have you solved this problem?

Pines-Cheng commented 4 years ago

Linux: sudo apt-get install libtool automake autoconf nasm OS X: brew install libtool automake autoconf nasm

fixed my problem.

EmanueleCiriachi commented 4 years ago

I'm on Windows. As per this comment, adding the following entries to the hosts file temporarily solved the problem for me:

2.74.223.119 github.com 192.30.253.119 gist.github.com 54.169.195.247 api.github.com 185.199.111.153 assets-cdn.github.com 151.101.76.133 raw.githubusercontent.com 151.101.76.133 gist.githubusercontent.com 151.101.76.133 cloud.githubusercontent.com 151.101.76.133 camo.githubusercontent.com 151.101.76.133 avatars0.githubusercontent.com 151.101.76.133 avatars1.githubusercontent.com 151.101.76.133 avatars2.githubusercontent.com 151.101.76.133 avatars3.githubusercontent.com 151.101.76.133 avatars4.githubusercontent.com 151.101.76.133 avatars5.githubusercontent.com 151.101.76.133 avatars6.githubusercontent.com 151.101.76.133 avatars7.githubusercontent.com 151.101.76.133 avatars8.githubusercontent.com

norhan22 commented 4 years ago

I'm on Windows. As per this comment, adding the following entries to the hosts file temporarily solved the problem for me:

2.74.223.119 github.com 192.30.253.119 gist.github.com 54.169.195.247 api.github.com 185.199.111.153 assets-cdn.github.com 151.101.76.133 raw.githubusercontent.com 151.101.76.133 gist.githubusercontent.com 151.101.76.133 cloud.githubusercontent.com 151.101.76.133 camo.githubusercontent.com 151.101.76.133 avatars0.githubusercontent.com 151.101.76.133 avatars1.githubusercontent.com 151.101.76.133 avatars2.githubusercontent.com 151.101.76.133 avatars3.githubusercontent.com 151.101.76.133 avatars4.githubusercontent.com 151.101.76.133 avatars5.githubusercontent.com 151.101.76.133 avatars6.githubusercontent.com 151.101.76.133 avatars7.githubusercontent.com 151.101.76.133 avatars8.githubusercontent.com

Where should I add this lines ? I have the same error

EmanueleCiriachi commented 4 years ago

Where should I add this lines ? I have the same error

In the hosts file.

lhtdesignde commented 4 years ago

Just ran into this issue with version 5.1.0. Locally it seem fine. However running with circle ci i get the error:

Screenshot 2020-08-27 at 13 43 06
Error: Command failed: /bin/sh -c autoreconf -ivf
/bin/sh: 1: autoreconf: not found

Any workaround yet?

sbddesign commented 3 years ago

Just ran into this issue with version 5.1.0. Locally it seem fine. However running with circle ci i get the error:

Screenshot 2020-08-27 at 13 43 06
Error: Command failed: /bin/sh -c autoreconf -ivf
/bin/sh: 1: autoreconf: not found

Any workaround yet?

@lhtdesignde I had the same error message in Ubuntu 20.04. I solved the problem by running sudo apt-get install autoconf .

I am not very experienced with Circle CI, but perhaps there a way to configure it to install autoconf prior to running npm install? For example, I sometimes uses Docker for development, and with that you can setup your Dockerfile to run CLI commands and install different types of dependencies in a specific order.

wenjq2018 commented 3 years ago

I have the same on Win

hugop95 commented 3 years ago

Not sure if that will help future users on Windows, but for me, the issue was that I was behind a corporate proxy. Disabling it solved the issue and the pre-build test passed successfully.