3
$\begingroup$

I installed Blender 3.4.1 on an Ubuntu 22.04 server via snap:

sudo snap install blender --classic

But when I try to run it:

blender -b -v

I get an error:

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

How can I fix it? Isn't a snap package supposed to contain all its dependencies?

$\endgroup$

1 Answer 1

4
$\begingroup$

It turns out that Blender needs Xorg even if it's run with the -b/--background flag. On a server Xorg may not be installed by default, so it should be installed manually:

sudo apt install xorg

Since Blender installed with the --classic flag, it has access to the whole system and can use globally installed libs. So it doesn't have to contain all its dependencies.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .