存档

2012年7月 的存档

configure: error: “Failed to compile with X11/Xlib.h include. You must fix your compiler paths”

2012年7月31日 没有评论

CentOS Linux上搭建 Nginx+Mono 运行 ASP.NET中安装libgdiplus时报错,报configure: error: “Failed to compile with X11/Xlib.h include. You must fix your compiler paths”
./configure libgdiplus的时候出错

checking for LIBEXIF… no
./configure: line 13371: test: too many arguments
configure: error: “Failed to compile with X11/Xlib.h include. You must fix your compiler paths”
[root@nginx libgdiplus-2.10.9]# make
make: *** 没有指明目标并且找不到 makefile。 停止。

字面意思是x11的开发库没装,yum吧

 

[root@nginx libgdiplus-2.10.9]# yum install libX11-devel
Installed:
libX11-devel.i386 0:1.0.3-11.el5_7.1

Dependency Installed:
libXau-devel.i386 0:1.0.1-3.1 libXdmcp-devel.i386 0:1.0.1-2.1
mesa-libGL-devel.i386 0:6.5.1-7.10.el5 xorg-x11-proto-devel.i386 0:7.1-13.el5

Dependency Updated:
mesa-libGL.i386 0:6.5.1-7.10.el5

Complete!

 

尝试./configure 再次报错

using CFLAGS:
-I$(top_srcdir)/../pixman/pixman -Wall -Wextra -Wsign-compare -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations -Wdeclaration-after-statement -Wold-style-definition -Wno-missing-field-initializers -Wno-unused-parameter -Wno-attributes -Wno-long-long -Winline -fno-strict-aliasing

configure: error: Cairo requires at least one font backend.
Please install freetype and fontconfig, then try again:
http://freetype.org/ http://fontconfig.org/

configure: error: ./configure failed for cairo

继续排错。字面意思是Please install freetype and fontconfig, then try again

执行

[root@nginx libgdiplus-2.10.9]# yum install fontconfig fontconfig-devel
[root@nginx libgdiplus-2.10.9]# yum install freetype freetype-devel

继续./confugure

Configuration summary

* Installation prefix = /opt/mono
* Cairo = 1.6.4 (internal)
* Text = cairo
* EXIF tags = No. Get it from http://libexif.sourceforge.net/
* Codecs supported:

– TIFF: no (Get it from http://www.libtiff.org/)
– JPEG: yes
– GIF: no (See http://sourceforge.net/projects/libgif)
– PNG: yes

NOTE: if any of the above say ‘no’ you may install the
corresponding development packages for them, rerun
autogen.sh to include them in the build.


成功了。但是有几个no。可以去安装库来提供支持

yum install libtiff libtiff-devel giflib giflib-devel libexif libexif-devel

再次./configure


Configuration summary

* Installation prefix = /opt/mono
* Cairo = 1.6.4 (internal)
* Text = cairo
* EXIF tags = yes
* Codecs supported:

– TIFF: yes
– JPEG: yes
– GIF: yes
– PNG: yes

NOTE: if any of the above say ‘no’ you may install the
corresponding development packages for them, rerun
autogen.sh to include them in the build.

分类: nginx 标签:

CentOS Linux上搭建 Nginx+Mono 运行 ASP.NET中安装XSP报错

2012年7月31日 2 条评论

CentOS Linux上搭建 Nginx+Mono 运行 ASP.NET中安装XSP报错
如同安装mono 一样的方法, 先./configure –prefix=/usr/local/services/mono 之后下make , 编译期间这里却发生了错误

make[2]: Entering directory /usr/local/src/xsp-2.2/test’
/usr/local/bin/mcs
-pkg:dotnet -r:System.Xml.dll -target:library -out:SiteMapReader_1.1.dll
SiteMapReader_1.1.cs
Package dotnet was not found in the pkg-config search
path.
Perhaps you should add the directory containing
dotnet.pc’
to the
PKG_CONFIG_PATH environment variable
No package ‘dotnet’ found
error
CS8027: Error running pkg-config. Check the above output.
make[2]: ***
[SiteMapReader_1.1.dll] Error 1
make[2]: Leaving directory
/usr/local/src/xsp-2.2/test’
make[1]: *** [all-recursive] Error
1
make[1]: Leaving directory
/usr/local/src/xsp-2.2/test’
make: ***
[all-recursive] Error 1

 

看样子, pkg-config 检查套件找不到, 因为预设的pkg-config 是会找/usr/lib/pkgconfig 或/usr/lib64/ pkgconfig 下的目录, 但因为刚刚安装mono 时是安装在/usr/local/services/mono 下, mono 则把pkg-config 需要lib库安装在/usr/local/services/mono/lib 下了, 因此要自己设定PKG_CONFIG_PATH 这个参数然后编译,

PKG_CONFIG_PATH=/usr/local/services/mono/lib/pkgconfig make

编译看来似乎没问题了, 然后下make install , 成功了。

分类: nginx 标签: