江湖浪人 发表于 2018-11-11 09:07:11

CentOS下nginx+mono+fastcgi构建asp.net服务器笔记

  尝试了下。
  笔记
  出现
  ./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"
[*]# make
[*]make: *** 没有指明目标并且找不到 makefile。 停止。
  

  

  

  

  于是乎
  


[*]# 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
  

  继续排错。
  执行
  


[*]# yum install fontconfig fontconfig-devel
[*]# 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.
[*]
[*]---
  



页: [1]
查看完整版本: CentOS下nginx+mono+fastcgi构建asp.net服务器笔记