LinuxSir.cn,穿越时空的Linuxsir!

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

TO tram兄弟

[复制链接]
发表于 2002-12-20 10:25:15 | 显示全部楼层 |阅读模式
还是PKG_CONFIG_PATH的问题!
我现在在安装GNOME,开始时先执行下列命令:
rm /opt/gnome2 -r &&
rm /etc/gnome -r
这儿它说/etc/gnome不存在
然后按第一节重设变量环境,之后安装(按顺序),当安装到ORBIT2时出现下列错误:

gmodule-2.0 >= 2.0.0... Package linc was not found in the pkg-config search path.
Perhaps you should add the directory containing `linc.pc'
to the PKG_CONFIG_PATH environment variable
No package 'linc' found

configure: error: Library requirements (        linc >= 0.5.0   glib-2.0 >= 2.0.0       gobject-2.0 >= 2.0.0    gmodule-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
发表于 2002-12-20 14:04:49 | 显示全部楼层
那你是不是pkgconfig没装好?重装一次试试。
 楼主| 发表于 2002-12-20 15:22:59 | 显示全部楼层

启动LFS出现一堆东西

> /bin/bash --login
declare -x CC="gcc -s"
declare -x CFLAGS="-march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer  -funroll-loops -falign-functions=4 -maccumulate-outgoing-args"
declare -x CHOST="i686-pc-linux-gnu"
declare -x CXXFLAGS="-march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer  -funroll-loops -falign-functions=4 -maccumulate-outgoing-args"
declare -x HISTSIZE="1000"
declare -x HOME="/root"
declare -x HOSTNAME="Hong"
declare -x INPUTRC="/etc/inputrc"
declare -x LOGNAME="root"
declare -x MAIL="/var/spool/mail/root"
declare -x OLDPWD
declare -x PATH="/usr/local/sbin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/gnome/bin:/opt/gnome2/bin"
declare -x PS1="\\u:\\w\\\$ "
declare -x PWD="/"
declare -x SHLVL="1"
declare -x TERM="xterm"
declare -x USER="root"
declare -x CC="gcc -s"
declare -x CFLAGS="-march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer  -funroll-loops -falign-functions=4 -maccumulate-outgoing-args"
declare -x CHOST="i686-pc-linux-gnu"
declare -x CXXFLAGS="-march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer  -funroll-loops -falign-functions=4 -maccumulate-outgoing-args"
declare -x GDK_USE_XFT="0"
declare -x GNOME_LIBCONFIG_PATH="/usr/lib"
declare -x HISTSIZE="1000"
declare -x HOME="/root"
declare -x HOSTNAME="Hong"
declare -x INPUTRC="/etc/inputrc"
declare -x LFS="/lfs"
declare -x LOGNAME="root"
declare -x MAIL="/var/spool/mail/root"
declare -x OLDPWD
declare -x PATH="/usr/local/sbin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/gnome/bin:/opt/gnome2/bin:/opt/gnome/bin:/opt/gnome2/bin"
declare -x PS1="[\\u@\\w]\\\$ "
declare -x PWD="/"
declare -x SHLVL="1"
declare -x TERM="xterm"
declare -x USER="root"
[root@/]# mount proc /proc -t proc &&
> ln -sf /proc/mounts /etc/mtab
发表于 2002-12-20 15:29:16 | 显示全部楼层
你这都是什么东东啊,有点怪,是不是/etc/profile里没写对?
发表于 2002-12-20 15:36:33 | 显示全部楼层
你是在LFS系统里么?还是chroot?
如果在LFS下,就不用:
/bin/bash --login
也不用
mount proc /proc -t proc
这些都会自动运行。
 楼主| 发表于 2002-12-20 15:41:35 | 显示全部楼层
试过了,还是不行,也不知道怎么回事了
 楼主| 发表于 2002-12-20 15:44:04 | 显示全部楼层
无论在LFS还是在虚拟环境都是这样的。附上文件:
root@/cvs/ORBit2-2.4.3]# cat /etc/profile
# /etc/profile

# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc

CC='gcc -s'
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer  -funroll-loops -falign-functions=4 -maccumulate-outgoing-args"
CXXFLAGS="${CFLAGS}"
export CC CHOST CFLAGS CXXFLAGS

pathmunge () {
        if ! echo $PATH | /bin/egrep -q "(^|$1($|" ; then
           if [ "$2" = "after" ] ; then
              PATH=$PATH1
           else
              PATH=$1PATH
           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
export PATH=$PATH:/opt/gnome/bin:/opt/gnome2/bin
export
PKG_CONFIG_PATH=/usr/lib/pkgconfig:/opt/gnome/lib/pkgconfig:/opt/gnome2/lib/pkgconfig
export GNOME_LIBCONFIG_PATH=/usr/lib
 楼主| 发表于 2002-12-20 15:45:18 | 显示全部楼层
那些东西是设置GNOME环境变量后才出现的
发表于 2002-12-20 15:47:37 | 显示全部楼层
你怎么设置的环境变量?不是贴进去就行了的,而是要写到/etc/profile里。
后两个是可以直接贴的。
发表于 2002-12-20 15:48:32 | 显示全部楼层
把下面的结果贴出来:
set
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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