PrusaSlicer-2.2.0 alpha4 linux can't run

Created on 9 Feb 2020  Â·  10Comments  Â·  Source: prusa3d/PrusaSlicer

Version

PrusaSlicer-2.2.0-alpha4+linux-x64-202002091020

Operating system type + version

Pop OS 19.10

Behavior

When trying to run I get this error message: error while loading shared libraries: libmpfr.so.4: cannot open shared object file: No such file or directory

Also, when I try to run the appimage version nothing opens at all.

Alpha 2 runs fine. Problem started with Alpha 4.

Most helpful comment

I tried to (re)install libmpfr.so.4 (MPFR 3.x), but it seems not longer supported from Ubuntu 18.04 (Linux Mint is based on Ubuntu). Source of information: https://stackoverflow.com/questions/51288467/cannot-open-libmpfr-so-4-after-update-on-ubuntu-18-04

From the same source is a hack to make the old version of the library work, using symbolic link:
sudo ln -s /usr/lib/x86_64-linux-gnu/libmpfr.so.6 /usr/lib/x86_64-linux-gnu/libmpfr.so.4

This hack makes a link for the missing old file to the newer supported libmpfr.so.6.

I tried the hack and it works - alpha4 now starts and displays the first time wizard. Haven't discovered any side effects yet.

All 10 comments

OS: Linux Mint 19.3 64bit
PS: PrusaSlicer-2.2.0-alpha4+linux-x64-202002091020.AppImage

Have same problem, missing library. Output on console:

~/bin/AppImages$ ./PrusaSlicer-2.2.0-alpha4+linux-x64-202002091020.AppImage
/tmp/.mount_PrusaS40la9O/usr/bin/bin/prusa-slicer: error while loading shared libraries: libmpfr.so.4: cannot open shared object file: No such file or directory

Alpha 2 works fine here too.

Alpha4 requires the gmp and mpfr libraries for exact arithmetics, which is
used by the SLA hole drilling algorithm. I suppose we are linking the
libgmp and libmpfr dynamically by mistake.

bubnikv@bubnikv-VirtualBox:/tmp/.mount_PrusaSOouLbP/usr/bin/bin$ ldd
prusa-slicer | grep gmp
libgmp.so.10 => /usr/lib/x86_64-linux-gnu/libgmp.so.10 (0x00007f59604a8000)
bubnikv@bubnikv-VirtualBox:/tmp/.mount_PrusaSOouLbP/usr/bin/bin$ ldd
prusa-slicer | grep mpfr
libmpfr.so.4 => /usr/lib/x86_64-linux-gnu/libmpfr.so.4 (0x00007fdf8b2d4000)

You will solve the issue for yourself if you install the two libraries from
the distro. We will discuss internally whether we will bundle the two
libraries with the AppImage, or whether we will link statically.

ne 9. 2. 2020 v 16:13 odesílatel Area5142 notifications@github.com napsal:

OS: Linux Mint 19.3 64bit
PS: PrusaSlicer-2.2.0-alpha4+linux-x64-202002091020.AppImage

Have same problem, missing library. Output on console:

~/bin/AppImages$ ./PrusaSlicer-2.2.0-alpha4+linux-x64-202002091020.AppImage
/tmp/.mount_PrusaS40la9O/usr/bin/bin/prusa-slicer: error while loading shared libraries: libmpfr.so.4: cannot open shared object file: No such file or directory

Alpha 2 works fine here too.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/prusa3d/PrusaSlicer/issues/3631?email_source=notifications&email_token=ABMPSIYA55YUQRXNIWSJJZDRCAMQNA5CNFSM4KSCFDGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELGO77I#issuecomment-583856125,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABMPSI4KBUJDJ3LBXK33JDTRCAMQNANCNFSM4KSCFDGA
.

OS: Linux Mint 19.1 64bit
PS: PrusaSlicer-2.2.0-alpha4+linux-x64-202002091020.AppImage

May be a "first aid":
There is a libmpfr.so.6.0.1 already installed (with a symbolic link libmpfr.so.6 pointing to ist).
Just making a symbolic link libmpfr.so.4 pointing to the libmpfr.so.6.0.1 works fine (at least for me).

I tried to (re)install libmpfr.so.4 (MPFR 3.x), but it seems not longer supported from Ubuntu 18.04 (Linux Mint is based on Ubuntu). Source of information: https://stackoverflow.com/questions/51288467/cannot-open-libmpfr-so-4-after-update-on-ubuntu-18-04

From the same source is a hack to make the old version of the library work, using symbolic link:
sudo ln -s /usr/lib/x86_64-linux-gnu/libmpfr.so.6 /usr/lib/x86_64-linux-gnu/libmpfr.so.4

This hack makes a link for the missing old file to the newer supported libmpfr.so.6.

I tried the hack and it works - alpha4 now starts and displays the first time wizard. Haven't discovered any side effects yet.

My system also has libmpfr.so.6 installed.

I downloaded and installed libmfr4 from https://packages.ubuntu.com/xenial/libmpfr4.
I downloaded the amd64 .deb file as my system has 64 bit pop os installed (which is ubuntu based) and did sudo dpkg -i libmpfr4_3.1.4-1_amd64.deb.

It installed and now I can run the appimage just fine.

sudo ln -s /usr/lib/x86_64-linux-gnu/libmpfr.so.6 /usr/lib/x86_64-linux-gnu/libmpfr.so.4

You probably have a newer version of the lib, just symlink it to version 4 and it works.
At least it solved the problem for me on ubuntu 18.04

I also am having this issue on both my Ubuntu machines.

I tried to (re)install libmpfr.so.4 (MPFR 3.x), but it seems not longer supported from Ubuntu 18.04 (Linux Mint is based on Ubuntu). Source of information: https://stackoverflow.com/questions/51288467/cannot-open-libmpfr-so-4-after-update-on-ubuntu-18-04

From the same source is a hack to make the old version of the library work, using symbolic link:
sudo ln -s /usr/lib/x86_64-linux-gnu/libmpfr.so.6 /usr/lib/x86_64-linux-gnu/libmpfr.so.4

This hack makes a link for the missing old file to the newer supported libmpfr.so.6.

I tried the hack and it works - alpha4 now starts and displays the first time wizard. Haven't discovered any side effects yet.

Exactly that helps me strating Prusa-slicer 2.2 Alpha 4! Thanks for it!

Same problem here:

m@carbon:~/bin$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 19.10
Release: 19.10
Codename: eoan

Workaround using @Area5142 instructions

I tried to (re)install libmpfr.so.4 (MPFR 3.x), but it seems not longer supported from Ubuntu 18.04 (Linux Mint is based on Ubuntu). Source of information: https://stackoverflow.com/questions/51288467/cannot-open-libmpfr-so-4-after-update-on-ubuntu-18-04

From the same source is a hack to make the old version of the library work, using symbolic link:
sudo ln -s /usr/lib/x86_64-linux-gnu/libmpfr.so.6 /usr/lib/x86_64-linux-gnu/libmpfr.so.4

This hack makes a link for the missing old file to the newer supported libmpfr.so.6.

I tried the hack and it works - alpha4 now starts and displays the first time wizard. Haven't discovered any side effects yet.

I have updated the Linux x64 buils on
https://github.com/prusa3d/PrusaSlicer/releases/tag/version_2.2.0-alpha4
with version, which links the two mentioned libraries statically. The new builds have a timestamp of today afternoon.

Thanks for heads up. Closing.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kakou-fr picture kakou-fr  Â·  4Comments

pricedev picture pricedev  Â·  4Comments

RossKor picture RossKor  Â·  3Comments

DROBORD picture DROBORD  Â·  3Comments

Tirpitz93 picture Tirpitz93  Â·  3Comments