在Ubuntu 18.04上更新后无法打开libmpfr.so.4 [英] cannot open libmpfr.so.4 after update on ubuntu 18.04

查看:1186
本文介绍了在Ubuntu 18.04上更新后无法打开libmpfr.so.4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天,我将笔记本电脑更新为Ubuntu 18.04. 现在,我尝试为我的学士论文运行一个程序,但是它给了我以下错误消息:

Today I updated my laptop to Ubuntu 18.04. Now I try to run a program for my bachelor thesis, but it gives me the following error message:

加载共享库时出错:libmpfr.so.4:无法打开共享库文件:没有这样的文件或目录

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

我做了一些研究,我认为libmpfr4已在此ubuntu版本中删除.有什么办法可以解决这个问题?

I did a bit of research, and I think libmpfr4 has been droppen in this ubuntu version. Is there any way I can solve this?

推荐答案

我遇到了同样的问题,并通过创建符号链接

I had the same problem and solved it by creating symbolic link:

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

请记住,这只是解决方法,可能会引发您的案件的其他问题.但是,如果有问题的程序只是实现其他目标的一种手段,这可能会为您节省一天的时间.

Bear in mind that this is just workaround which might trigger other issues for your case. However, this might save you the day in cases when the problematic program is just a mean to achieve something else.

这篇关于在Ubuntu 18.04上更新后无法打开libmpfr.so.4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆