我可怜的 glib 啊 帮 帮 我 阿! ! !!!
我已经在网上下了一个glib2.2.1用./configure 安装时一切正常
安装的时候我是默认安装的,没有使用prefix=&&
我的分区如下
/ /usr /tmp /home /swap /boot
但是要装gtk+和其他软件的时候都出现glib找不到是情况
checking for pkg-config... /usr/local/bin/pkg-config
checking for glib-2.0 >= 2.1.4 atk >= 1.0.1 pango >= 1.0.1... Package atk was not found in the pkg-config search path.
Perhaps you should add the directory containing `atk.pc'
to the PKG_CONFIG_PATH environment variable
No package 'atk' found
我想对pkgconfig进行修改,可是用vi打开都是乱码
是不是还要 什么设置
请各位大虾赐教! ! ! ! 在你的/etc/profile 里加一行: (或其它设置环境地方)
export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig
然后
source /etc/profile
cd glibxxx
./configure # System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc
pathmunge () {
if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
fi
}
# Path manipulation
if [ `id -u` = 0 ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
fi
pathmunge /usr/X11R6/bin after
unset pathmunge
# No core files by default
ulimit -S -c 0 > /dev/null 2>&1
USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
HOSTNAME=`/bin/hostname`
HISTSIZE=1000
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fi
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
done
unset i
这是我的profile文件,不知道要加到什么地方啊
页:
[1]