chrissimpkins / Crunch

Insane(ly slow but wicked good) PNG image optimization
Other
3.35k stars 147 forks source link

WSL Failed to Build Dependencies #77

Open jonatino opened 4 years ago

jonatino commented 4 years ago

Describe the bug

------------------------------
Testing Builds...
------------------------------
[?] /home/jonathan/pngquant/pngquant test...

[ERROR]: pngquant executable was not found on the expected path: /home/jonathan/pngquant/pngquant
The install attempt did not complete successfully.  Please report this error.
Makefile:6: recipe for target 'build-dependencies' failed
make: *** [build-dependencies] Error 1

To Reproduce Steps to reproduce the behavior:

  1. Run sudo make build-dependencies on WSL Ubuntu Windows 10

Expected behavior Should install

Desktop (please complete the following information):

chrissimpkins commented 4 years ago

Thank you very much for reporting this!

Are you available to test in your Win environment so that we can sort this out? Happy to look into it but I don't have ready access to reproduce this at the moment.

jonatino commented 4 years ago

@chrissimpkins yeah let me know what you need me to do

neochief commented 4 years ago

It's not a Windows issue. I've just got the same thing on macOS:

------------------------------
Testing Builds...
------------------------------
[?] /Users/neochief/pngquant/pngquant test...

[ERROR]: pngquant executable was not found on the expected path: /Users/neochief/pngquant/pngquant
The install attempt did not complete successfully.  Please report this error.
make: *** [build-dependencies] Error 1
neochief commented 4 years ago

I have fixed this issue by installing a missing pngquant dependency "pkg-config". Using tips from here: https://stackoverflow.com/questions/23202146/cannot-find-pkg-config-error

@Jonatino , you can try to debug the source of the problem by going to /home/jonathan/pngquant and running "make". This will show you what might be wrong with the build process.

zackurben commented 2 years ago

I also got this issue on WSL - I was able to fix it by installing/fixing my $PATH for g++