barnacs / compy

HTTP/HTTPS compression proxy
ISC License
204 stars 34 forks source link

Install failed "jpeglib.h" #40

Closed Dunuin closed 6 years ago

Dunuin commented 6 years ago

I tried to install compy to my Raspberry Pi 3B with Rasbian Stretch and Go 1.10.1 but got this error:

pi@BM-Raspi-Server:~ $ go get github.com/barnacs/compy
# github.com/pixiv/go-libjpeg/jpeg
go/src/github.com/pixiv/go-libjpeg/jpeg/compress.go:6:21: fatal error: jpeglib.h: No such file or directory
 #include "jpeglib.h"
                     ^
compilation terminated.

How to fix it?

Also tried to install libjpeg9 and libjpeg-turbo but neither works.

gaul commented 6 years ago

You need to install libjpeg8-dev. See the Dockerfile for an example.

Dunuin commented 6 years ago

Thanks for the fast reply. Works after adding the dev package.

ghost commented 4 years ago

They should add that to the README. You need libjpeg8-dev not just libjpeg8.

gaul commented 4 years ago

Done; thanks for the suggestion @ledlamp!