Ubuntu Server(Ubuntu 14.04 LTS 64位)安装libgdiplus2.10.9出错问题记录
2014-06-28 01:41
851 查看
首先下载libgdiplus2.10.9安装包
进入目录开始configure编译
将libgdiplus安装在/usr目录下
发现在该操作系统报错了:如下
这个错误就是说创建/usr/X11/include/freetype链接失败了,因为找不到freetype
我们打开/usr/include看有没有freetype这个目录,没有吧,但是我们找到了freetype2,这样我们做个链接吧
然后继续make发现错误如下:
解决方法来自:http://beginor.github.io/2013/10/15/install-and-config-mono-on-ubuntu-server.html
再次make,是不是很快成功了,ok,make install吧
wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.9.tar.bz2 tar -jxvf libgdiplus-2.10.9.tar.bz2 cd libgdiplus-2.10.9
进入目录开始configure编译
./configure --prefix=/usr make
将libgdiplus安装在/usr目录下
发现在该操作系统报错了:如下
gdiplus-private.h:33:31: fatal error: freetype/tttables.h: No such file or directory #include <freetype/tttables.h> ^ compilation terminated. make[2]: *** [adjustablearrowcap.lo] Error 1 make[2]: Leaving directory `/root/libgdiplus-2.10/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/libgdiplus-2.10' make: *** [all] Error 2 root@ubuntu:~/libgdiplus-2.10# sudo ln -s /usr/X11/include/freetype2/freetype/ /usr/X11/include/freetype ln: 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 operation collect2: error: ld returned 1 exit status make[2]: *** [testgdi] Error 1 make[2]: Leaving directory `/usr/local/src/libgdiplus-2.10.9/tests' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/libgdiplus-2.10.9' make: *** [all] Error 2
解决方法来自:http://beginor.github.io/2013/10/15/install-and-config-mono-on-ubuntu-server.html
先执行 ./configure 命令, 然后编辑libgdiplus-2.10.9目录下的 tests/Makefile 文件; 将 130 行的 LIBS = -lpthread -lfontconfig 改为 LIBS = -lpthread -lfontconfig -lglib-2.0 -lX11; 再次执行 make 命令即可。
再次make,是不是很快成功了,ok,make install吧
相关文章推荐
- 在Ubuntu Server 14.04 LTS下安装VMware Tools(解决与主机共享问题---Mac虚拟机
- ubuntu server 14.04 LTS下搭建LAMP环境之最详细笔记之一U盘安装双系统
- ubuntu 14.04 server (x64) LTS 安装 virtualbox + phpvirtualbox
- 如何删除在Ubuntu server 12.04安装中设置的http代理 (解决apt-get update 出错问题)
- ubuntu 14.04 安装 mysql-server 及 可能出现的问题(Unknow job: mysql)和解决办法
- Ubuntu 14.04 安装 DevStack与遇到的的问题记录
- Ubuntu14.04-server U盘安装及django生产环境搭建简要记录
- Ubuntu14.04,64位操作系统安装部分android32位lib不兼容问题
- ubuntu 12.04 64位,安装mysql-workbench问题解决记录
- ubuntu14.04 64位安装WPS(成功解决没有ia32-libs的问题)
- 服务器windows server 2008 R2下安装Centos6.4 x86_64位 Ubuntu server14.04尝试
- Ubuntu 14.04 64位安装WPS(成功解决没有ia32-libs的问题)
- 在Ubuntu Server 14.04 LTS版上以git方式源码安装Odoo8.0
- ubuntu 14.04 LTS 中安装音乐软件deepin_music记录
- ubuntu14.04安装DevStack与遇到的的问题记录
- Ubuntu 14.04 LTS Server 安装 LAMP Server
- Ubuntu14.04(64位)下安装Android ADB的问题
- 在Ubuntu Server 14.04 LTS版上以git方式源码安装Odoo8.0