imazen / imageflow

High-performance image manipulation for web servers. Includes imageflow_server, imageflow_tool, and libimageflow
https://docs.imageflow.io/
GNU Affero General Public License v3.0
4.14k stars 140 forks source link

How to use imageflow_tool on a managed server #636

Closed felixranesberger closed 7 months ago

felixranesberger commented 10 months ago

I'd like to generate images using a PHP script on my Linux server. The PHP script will call imageflow_tool using the exec_shell function

Before I write any PHP, I wanted to try it on the terminal manually using the following command.

./imageflow_tool'

I get the following error:

./imageflow_tool: error while loading shared libraries: libmvec.so.1: cannot open shared object file: No such file or directory

I'm not really deep into servers, but I guess the library libmvec is missing on my server?

Is there some way to just upload the imageflow_tool executable on my server and run it, without installing any dependencies?

Thanks for any help in advance :)

lilith commented 10 months ago

It sounds like you have an outdated (or far less likely, missing) libc version. Is updating the OS an option?

On Sat, Sep 2, 2023, 9:51 AM Felix Ranesberger @.***> wrote:

I'd like to generate images using a PHP script on my Linux server. The PHP script will call imageflow_tool using the exec_shell function

Before I write any PHP, I wanted to try it on the terminal manually using the following command.

./imageflow_tool'

I get the following error:

./imageflow_tool: error while loading shared libraries: libmvec.so.1: cannot open shared object file: No such file or directory

I'm not really deep into servers, but I guess the library libmvec is missing on my server?

Is there some way to just upload the imageflow_tool executable on my server and run it, without installing any dependencies?

Thanks for any help in advance :)

— Reply to this email directly, view it on GitHub https://github.com/imazen/imageflow/issues/636, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA2LH46EHX3Y5K6WVASZ7DXYNIZTANCNFSM6AAAAAA4IVSNMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

felixranesberger commented 9 months ago

Hi @lilith , sorry for the late response.

I found out that the imageflow_tool worked in a docker container that we use for a customer for hosting.

I found this article on how to check my libc version.

I used ldd --version and both servers output the same response:

ldd (Debian GLIBC 2.31-13+deb11u6) 2.31

Does this help?

lilith commented 7 months ago

2.31 should work - and it wasn't?