usrlocalliblibuuid.so.1: version information available by libx86_64-linux-gnulibblkid.so.1

usrlocalliblibuuid.so.1: version information available by libx86_64-linux-gnulibblkid.so.1,第1张

这个库文件不存在,需要再安装一个对应版本的在https://answers.launchpad.net/ubuntu/+source/util-linux/2.20.1-1ubuntu1中下载到util-linux_2.20.1.orig.tar.gz包,里面包含很多系统工具的目录,如包含libuuid目录。使用下面的方法安装uuid库(包括静态lib文件及动态链接文件):tar xzvf util-linux_2.20.1.orig.tar.gzcd util-linux-2.20.1./configure --without-ncursescd libuuidmakemake install

在Ubuntu 14.04 LTS 64位系统中安装libgdiplus2.10.9的时候出现了错误。

首先下载libgdiplus2.10.9安装包

进入目录开始configure编译

。/configure --prefix=/usrmake

将libgdiplus安装在/usr目录下

发现在该 *** 作系统报错了:如下

gdiplus-private.h:33:31: fatal error: freetype/tttables.h: No such file or directory #include ^compilation terminated.make[2]: *** [adjustablearrowcap.lo] Error 1make[2]: Leaving directory `/root/libgdiplus-2.10/src‘make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/root/libgdiplus-2.10’make: *** [all] Error 2root@ubuntu:~/libgdiplus-2.10# sudo ln -s /usr/X11/include/freetype2/freetype/ /usr/X11/include/freetypeln: failed to create symbolic link ‘/usr/X11/include/freetype’: No such file or directory

这个错误就是说创建/usr/X11/include/freetype链接失败了,因为找不到freetype

我们打开/usr/include看有没有freetype这个目录,没有吧,但是我们找到了freetype2,这样我们做个链接吧

ln -s /usr/include/freetype2 /usr/include/freetype

然后继续make发现错误如下:

/usr/lib64/libglib-2.0.so.0: could not read symbols: Invalid operationcollect2: error: ld returned 1 exit statusmake[2]: *** [testgdi] Error 1make[2]: Leaving directory `/usr/local/src/libgdiplus-2.10.9/tests‘make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/usr/local/src/libgdiplus-2.10.9’make: *** [all] Error 2

解决方法:

先执行 。/configure 命令, 然后编辑 test/Makefile 文件将 130 行的 LIBS = -lpthread -lfontconfig 改为 LIBS = -lpthread -lfontconfig -lglib-2.0 -lX11再次执行 make 命令即可。

再次make,是不是很快成功了,ok,make install吧

上面就是Ubuntu安装libgdiplus时出错的解决方法,如果你在安装的时候系统报错了,可以尝试本文介绍的方法进行解决。

解决方法:

1、安装Docker 借助apt-get命令。

2、$ sudo apt-get install docker.io 为了允许非根用户也可以运行Docker,将你自己添加到docker群组。下面这个命令会允许当前用户运行Docker,无需根用户权限。

Docker 容器 *** 作退出后进入解决办法:

1、nsenter 可以访问另一个进程的名字空间。nsenter 要正常工作需要有 root 权限。 很不幸,Ubuntu 14.4 仍然使用的是 util-linux 2.20。安装最新版本的 util-linux(2.24)版,请按照以下步骤:

2、从util-linux版本2.23开始,nsenter工具就包含在其中。它用来访问另一个进程的名字空间。nsenter要正常工作需要有root权限。


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/7282101.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-03
下一篇 2023-04-03

发表评论

登录后才能评论

评论列表(0条)

保存