分类: LINUX
2011-01-15 11:46:08
系统环境:龙芯2F + 中标5(龙芯版)+ gcc-4.2.3
1.libxau1.0.3:
$export PREFIX=/home/cs2c/mylib/
$./configure --prefix=$PREFIX
$make
$make install
2.libxmcd1.0.2:
$export PREFIX=/home/cs2c/mylib/
$./configure --prefix=$PREFIX
$make
$make install
3.libxcb1.3;
$./configure --prefix=$PREFIX
出错信息:
checking for xsltproc... no
configure: error: XCB requires xsltproc.
解决方法:
安装libxsltporc
$./configure --prefix=$PREFIX
Requested 'xcb-proto >= 1.5' but version of XCB Proto is 1.1
解决方法:
原因是版本不匹配
1.装高版本的xcb-proto
2.换成低版本的libxcb
4.xcb-proto-1.6:
$./configure --prefix=/usr
$make
$sudo make install
5.libxsltporc1.1.24:
$./configure
出错信息:
Crypto extensions will not be available. Install libgcrypt and reconfigure to make available.
Enabling debugger
checking for libxml libraries >= 2.6.27... configure: error: Could not find libxml2 anywhere, check ftp://xmlsoft.org/.
解决办法:
安装:
libgcrypt
libxml2
$./configure
$make
$sudo make install
6.libgcrypt-1.4.1
$./configure
出错信息:
configure: error: libgpg-error is needed.
See ftp://ftp.gnupg.org/gcrypt/libgpg-error/ .
解决办法:
安装:libgpg-error-1.4
$./configure
$make
$make install
7.libgpg-error-1.4:
$./configure
$make
$make install
8.libxml2-2.6.32:
$./configure
$make
$sudo make install
9.libxml1.0.4:
$./configure
$make
$sudo make install
11.libxml2-2.7.4:
$./configure --prefix=/usr
或者
$export LDFLAGS=-I/usr/local/lib
$./configure
//不这样指定的话(默认在/usr/local/lib)./configure认不到
$make
$make install
12.libx11-1.2:
$./autogen.sh
出错信息:
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal
configure.ac:18: error: must install xorg-macros 1.2 or later before running autoconf/autogen
configure.ac:18: the top level
autom4te: /usr/bin/m4 faileRequested 'xcb-proto >= 1.5' but version of XCB Proto is 1.1
d with exit status: 1
aclocal: autom4te failed with exit status: 1
autoreconf: aclocal failed with exit status: 1
解决方法:
安装utils-macros
或者换低版本的libX11
$./autogen.sh
出错信息:
configure.ac:22: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
解决方法:
安装libtool
$./autogen.sh
$./configure --prefix=/home/cs2c/mylib/libx11-1.2/
出错信息:
checking whether build environment is sane... configure: error: newly created file is older than distributed files!
Check your system clock
解决方法:
原因是编译与创建的时间不对,
$sudo date -s 20110125
$./configure --prefix=/home/cs2c/mylib/libx11-1.2/
出错信息:
Requested 'xproto >= 7.0.13' but version of Xproto is 7.0.11
解决方法:
1.装高版本的xproto
2.换成低版本的libx11
$./configure --prefix=/home/cs2c/mylib/libx11-1.2/
出错信息:
Requested 'xcb >= 1.1.92' but version of XCB is 1.1
解决方法:
1.装高版本的xcb
2.换成低版本的libx11
13.libxcb-1.7:
$./configure –prefix=/usr/local/libxcb //不能装在/usr下面否则会因为不匹配而启动不了x-window
$make
$sudo make install
14.xproto-7.0.20:
$./configure --prefix=/usr
$make
$sudo make install
15.util-macros-1.9.0;
$./configure --prefix=/usr
$make
$sudo make install
16.libtool-2.4:
$./configure --prefix=/usr
$make
$sudo make install
17.libX11-1.1.5:
$./autogen.sh
出错信息:
checking for X11... configure: error: Package requirements (xextproto xtrans xcb-xlib >= 0.9.92) were not met:
解决方法:
$export PKG_CONFIG_PATH=/usr/lib/pkgconfig/:/home/cs2c/mylib/libxcb-1.0/lib/pkgconfig/
$./autogen.sh