gifsicle-bin icon indicating copy to clipboard operation
gifsicle-bin copied to clipboard

Error: autoreconf -ivf

Open meness opened this issue 7 years ago • 16 comments

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)

meness avatar Jul 25 '17 13:07 meness

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

nwaweru avatar Feb 22 '18 08:02 nwaweru

How about on Windows??

KeithCowan avatar Dec 05 '18 10:12 KeithCowan

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)

mojavelinux avatar Dec 30 '18 21:12 mojavelinux

How about on Windows??

I've the same problem

zzroche avatar Feb 12 '19 16:02 zzroche

I also have the same issue on windows machine.

gsaini avatar Feb 18 '19 10:02 gsaini

Also doesn't work without gulp.

zzroche avatar Feb 18 '19 10:02 zzroche

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.

lukas-lansky avatar May 04 '19 15:05 lukas-lansky

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

RainLucky avatar Dec 23 '19 09:12 RainLucky

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

fixed my problem.

Pines-Cheng avatar Jun 28 '20 08:06 Pines-Cheng

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

EmanueleCiriachi avatar Jul 03 '20 14:07 EmanueleCiriachi

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

norhan22 avatar Jul 04 '20 21:07 norhan22

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

In the hosts file.

EmanueleCiriachi avatar Jul 06 '20 14:07 EmanueleCiriachi

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 avatar Aug 27 '20 11:08 lhtdesignde

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.

sbddesign avatar Sep 23 '20 12:09 sbddesign

I have the same on Win

wenjq2018 avatar Jan 25 '21 01:01 wenjq2018

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.

hugop95 avatar Jan 25 '21 23:01 hugop95