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

Cannot install pngquant on CentOS 7, I had installed it in prev server(CentOS 6.9) #266

Closed
lensonsaldanha opened this issue Sep 20, 2017 · 9 comments

Comments

@lensonsaldanha
Copy link

lensonsaldanha commented Sep 20, 2017

Hello, I had installed pngquant in my prev server and it was working fine. I moved all my files to new server. and I'm trying to install pngquant here.
git clone --recursive https://github.com/pornel/pngquant.git
This downloaded files succesfully
when I do ls I can see pngquant directory with files inside it
I want it to be installed in /usr/local/bin
so I ran
sudo make install
make: *** No rule to make target 'install'. Stop.
and I'm getting the above error message.
Please help

@7snovic
Copy link

7snovic commented Sep 20, 2017

are you sure that you'd ran make before make install ?

@lensonsaldanha
Copy link
Author

I tried that too, and I got this:

make
make: *** No targets specified and no makefile found.  Stop.

@lensonsaldanha
Copy link
Author

Nevermind, I just did this and it worked for me
yum install pngquant

@futureweb
Copy link
Contributor

I got the same Problems on Centos/RHEL 7 when trying to compile latest GIT Version:

server pngquant# make
./configure

  Compiler: gcc
     Debug: no
       SSE: yes
    OpenMP: no
imagequant: build static
    libpng: shared (1.5.13)
      zlib: shared (1.2.7)
     lcms2: shared (2.6)

gcc -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBUG -DUSE_SSE=1 -msse -mfpmath=sse -Wno-unknown-pragmas -I./lib -I/usr/include/libpng15       -DUSE_LCMS=1 -fexcess-precision=fast   -c -o pngquant.o pngquant.c
gcc -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBUG -DUSE_SSE=1 -msse -mfpmath=sse -Wno-unknown-pragmas -I./lib -I/usr/include/libpng15       -DUSE_LCMS=1 -fexcess-precision=fast   -c -o pngquant_opts.o pngquant_opts.c
gcc -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBUG -DUSE_SSE=1 -msse -mfpmath=sse -Wno-unknown-pragmas -I./lib -I/usr/include/libpng15       -DUSE_LCMS=1 -fexcess-precision=fast   -c -o rwpng.o rwpng.c
( cd './lib'; ./configure '--quiet'  )
warning: unknown switch --quiet (see ./configure --help for the list)

  Compiler: gcc
     Debug: no
       SSE: yes
    OpenMP: no

make: *** No rule to make target `lib/Cargo.toml', needed by `lib/libimagequant.a'.  Stop.

Andreas Schnederle-Wagner

@futureweb
Copy link
Contributor

info: lib Folder wasn't updated -that's why the Error occured ... after a recursive GIT clone it's working ... :)

@pascaloliv
Copy link

Same issue on CentOS 7.4 when trying to install pngquant.
I tried to install libpng-devel but it did nothing more...

Any news on this issue ?

> [email protected] postinstall /srv/app/node_modules/pngquant-bin
> node lib/install.js

  ⚠ The `/srv/app/node_modules/pngquant-bin/vendor/pngquant` binary doesn't seem to work correctly
  ⚠ pngquant pre-build test failed
  ℹ compiling from source
  ✖ Error: pngquant failed to build, make sure that libpng-dev is installed
    at ChildProcess.exithandler (child_process.js:275:12)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Socket.stream.socket.on (internal/child_process.js:346:11)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at Pipe._handle.close [as _onclose] (net.js:554:12)

@sergiomb2
Copy link
Contributor

yum install pngquant

yeah I maintain package pngquant in epel , the version is 2.7.2 , since 2.10 you need build first libimagequant, https://github.com/ImageOptim/libimagequant .

anyway from where came node.js ?

@pascaloliv
Copy link

This comment helped me to build pngquant.
#231 (comment)

For your information, the following one for mozjpeg if you have error to compile from source too.
imagemin/imagemin-mozjpeg#1 (comment)

@kimek
Copy link

kimek commented Jun 4, 2019

RHEL/CentOS 7 64-Bit EPEL

wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -ivh epel-release-latest-7.noarch.rpm
yum repolist
yum install pngquant

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

6 participants