您的位置:首页 > 职场人生

安装atk时, ./configure 成功,但make时却有以下错误 

2008-11-25 23:24 337 查看
错误如下:
make
make all-recursive
make[1]: Entering directory `/root/System_Sources/atk-1.9.0'
Making all in atk
make[2]: Entering directory `/root/System_Sources/atk-1.9.0/atk'
glib-genmarshal --prefix=atk_marshal ./atkmarshal.list --header >> xgen-gmh \
&& (cmp -s xgen-gmh atkmarshal.h || cp xgen-gmh atkmarshal.h) \
&& rm -f xgen-gmh xgen-gmh~ \
&& echo timestamp > stamp-atkmarshal.h
/bin/sh: glib-genmarshal: command not found
make[2]: *** [stamp-atkmarshal.h] 错误 127
make[2]: Leaving directory `/root/System_Sources/atk-1.9.0/atk'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/root/System_Sources/atk-1.9.0'
make: *** [all] 错误 2

执行:
export PATH=/opt/gtk/bin:$PATH

make 成功

原因:glib-genmarshal: command not found
方法:在系统当中搜索该文件位于:/opt/gtk/bin目录下。系统找不到,是因为环境变量没有设置到位。设置环镜变量:export PATH=/opt/gtk/bin:$PATH,即可找到该命令,执行通过。

搜索文件方法及设置环境变量相关内容请参考本博其它文章。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐