LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 739|回复: 1

请教关于安装软件编译时出现的问题

[复制链接]
发表于 2006-4-12 09:42:47 | 显示全部楼层 |阅读模式
本人在编译安装软件时出现以下问题,请指教安装 GKT+2.6)
看到以下安装提示:
二、源码包的安装及次序:
  a、首先安装pkgconfig
./configure --prefix=/usr &&
make &&
make install
把下面的话加到你的系统或用户设置文件中:
export PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig
最好/sbin/ldconfig一下,以后每安一个软件就/sbin/ldconfig一下,保险点.

b、 安装glib2.4
./configure --prefix=/usr &&
make &&
make install
/sbin/ldconfig

  c、安装atk1.9
./configure --prefix=/usr &&
make &&
make install
/sbin/ldconfig

d、 安装freetype-2.1.8
./configure --prefix=/usr &&
make &&
make install
/sbin/ldconfig
e、 安装pango 1.8.1
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/pkgconfig
./configure --prefix=/usr --sysconfdir=/etc &&
make &&
make install
/sbin/ldconfig

f、 安装libpng-1.2.8
make prefix=/usr \
ZLIBINC=/usr/include ZLIBLIB=/usr/lib -f scripts/makefile.linux &&
make prefix=/usr install -f scripts/makefile.linux
/sbin/ldconfig

g、 安装libtiff(就是tiff)
./configure --prefix=/usr --noninteractive \
--with-DIR_MAN=/usr/share/man &&
make &&
make install
/sbin/ldconfig

h、 安装libjpeg(就是jpegsrv)
./configure --enable-static --enable-shared --prefix=/usr &&
make &&
make install
/sbin/ldconfig

i、 安装fontconfig-2.2.2
./configure --sysconfdir=/etc --prefix=/usr --mandir=/usr/share/man && make && make install
/sbin/ldconfig

j、 安装gtk2.6.6
./configure --prefix=/usr --sysconfdir=/etc &&
make &&
make install
/sbin/ldconfig

问题::


  (a)中: 把下面的话加到你的系统或用户设置文件中:
     export PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig

      问:export PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig这句话不是要
       增加路径:/usr/X11R6/lib/pkgconfig到环境变量中吗?
       为什么说是:把下面的话加到你的系统或用户设置文件中
       那系统,或用户设置文件又是哪个文件,
       搞不懂
(e):中export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/pkgconfig  
./configure --prefix=/usr --sysconfdir=/etc &&
问:为什么又要 export 一下:其他的又不要 (如在安装b,c步时)
   而且 与 a 步骤不同,a)是先 configure 再 export
    再且:--sysconfdir又是什么意思!!

  (f)中:make prefix=/usr \
   ZLIBINC=/usr/include ZLIBLIB=/usr/lib -f scripts/makefile.linux &&
  问:没有 configure 就 来 :make prefix=/usr \
   ZLIBINC=/usr/include ZLIBLIB=/usr/lib -f scripts/makefile.linux &&
  他的安装步骤又与其他的有所不同,而且:ZLIBINC=/usr/include ZLIBLIB=/usr/lib -f        scripts/makefile.linux
又是什么意思,

在看人家安装GTK +2.6时看到不懂的有以上 (a),(e)(f)
三点 ,望大虾们解答,谢谢!
发表于 2006-4-12 10:07:39 | 显示全部楼层
来 LFS版面 坐坐。:)。你会明白这些的意思的了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表