Skip to content

Document a way to install libvips without the dependecy hell #141

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

Closed
cypherbits opened this issue Apr 5, 2022 · 3 comments
Closed

Document a way to install libvips without the dependecy hell #141

cypherbits opened this issue Apr 5, 2022 · 3 comments
Labels

Comments

@cypherbits
Copy link

Hello,

This is a great project with an awesome performance but I think it is not used by many project just for the dependency hell when you want to install and use it.

When you go to install libvips on a Debian/Ubuntu you get about 1GB of dependencies (even Firefox or Xorg). This is wrong for containers and modern deployments.

Is there at least a documented way to compile, install and configure PHP to use libVIPS? Could you provide a precompiled .so?

Thanks.

@jcupitt
Copy link
Member

jcupitt commented Apr 6, 2022

Hi @cypherbits,

Yes, the debian libvips package is extremely heavy by default. It recommends the libvips GUI, and that in turn pulls in a lot of other stuff.

Try:

sudo apt-get install --no-install-recommends libvips42

It's "only" a 35mb download. You can make it a bit smaller by building your own libvips and only enabling the formats you need (wasm-vips is under 4mb), but I imagine many people will not want to do that.

@cypherbits
Copy link
Author

Hi, tried that and downloaded about 15MB with 75MB of disk storage. That is much better than the 1GB from before.
Many thanks! This should be documented right on the readme!

@jcupitt
Copy link
Member

jcupitt commented Apr 6, 2022

It's a standard Debian thing, but you're right perhaps not everyone knows. I'll add a note.

Thanks for suggesting this!

@jcupitt jcupitt closed this as completed Apr 6, 2022
jcupitt added a commit that referenced this issue Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants