Hi.
I’m trying to set up a server on a headless linux box, according to the documentation I’ve read the command should be:
./metashape.sh --server --control 1.2.3.4 --dispatch 1.2.3.4 --platform offscreen
(IP redacted)
It comes up with the following error message though:
“error while loading shared libraries: libGLU.so.1: cannot open shared object file: No such file or directory”
I’m sure I’ve read that running a headless linux server is entirely fine, but I’m not getting anywhere with this.
Machine is running Ubuntu 14.04.5 LTS – I’m aware this is fairly old, but I’m not expecting that ot be the issue.
Any advice?
I’m also interested in running a headless processing node (on a diferent server) but I’ve not even started on that yet.
Hi, thanks for the reply, that gets me as far as:
sudo apt-get install libgl1-mesa-glx
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
libgl1-mesa-glx : Depends: libglapi-mesa (= 10.1.3-0ubuntu0.6)
Depends: libx11-xcb1 but it is not going to be installed
Depends: libxcb-dri2-0 (>= 1.8) but it is not going to be installed
Depends: libxcb-dri3-0 but it is not going to be installed
Depends: libxcb-glx0 (>= 1.8) but it is not going to be installed
Depends: libxcb-present0 but it is not going to be installed
Depends: libxcb-sync1 but it is not going to be installed
Depends: libxdamage1 (>= 1:1.1) but it is not going to be installed
Depends: libxfixes3 but it is not going to be installed
Depends: libxshmfence1 but it is not going to be installed
Depends: libxxf86vm1 but it is not going to be installed
Recommends: libgl1-mesa-dri (>= 7.2)
linux-image-extra-3.13.0-135-generic : Depends: linux-image-3.13.0-135-generic but it is not going to be installed
linux-image-extra-3.13.0-141-generic : Depends: linux-image-3.13.0-141-generic but it is not going to be installed
linux-image-generic : Depends: linux-image-3.13.0-141-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
I'm getting the feeling that it may not be happy without a GUI on the server, do we have documented cases of people running this on a genuinely headless server?
Positive progress, I'm updating incase anyone else comes this way: today I installed a fresh copy of linux Ubuntu desktop (18 LTS) and found the following:
./metashape.sh --server --control 1.2.3.4 --dispatch 1.2.3.4 -platform offscreen
...: error while loading shared libraries: libquadmath.so.0: cannot open shared object file: No such file or directory
The solution was to run:
sudo apt-get install build-essential
(why ubuntu doesn't have this installed as default along with a load of other essencial stuff like ssh server, screen and liklely a bunch of other stuff I havn't failed to stumble on yet, is beyond me)
This still ahsn't fixed the initial problem, which I am still working on.
Hello jrp,
We have tried it on clean Ubuntu 14.04.1 Server, and it also works properly after executing:
sudo apt install libglu1-mesa libgomp1 gcc
So there could be something wrong with the installed packages on your original system.
Maybe you can also try executing:
sudo apt-get -f install