LinuxSir.cn,穿越时空的Linuxsir!

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

安装makedepend-1.0.1时报错:

[复制链接]
发表于 2009-4-9 23:41:15 | 显示全部楼层 |阅读模式
root:/home/tools/makedepend-1.0.1# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
报错信息如下
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking return type of signal handlers... void
checking for rename... yes
checking for fchmod... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for X... configure: error: Package requirements (xproto) were not met:

No package 'xproto' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables X_CFLAGS
and X_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

echo的帖子也是遇到过这样的错误 http://www.linuxsir.cn/bbs/thread313296.html

他的解决方法 我看不大明白,我是刚开始学linux 知道具体怎么解决的朋友告知一声啊.
发表于 2009-4-10 19:15:30 | 显示全部楼层
人家第二帖不是给你答案了?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-4-11 19:05:34 | 显示全部楼层
Post by d00m3d;1972533
人家第二帖不是给你答案了?
The utilities xorg-cf-files, imake, and gccmakedep should be built in order before the other utilities. Utilities lndir and makedepend can be built in either order. 这句话么
我这里安装了 pkg 的啊 也按照 http://linux.chinaunix.net/techd ... /01/26/977504.shtml
1.先下载pkg-config
代码:wget http://pkgconfig.freedesktop.org/releases/pkg-config-0.22.tar.gz然后安装它
代码:tar xvf pkg-config-0.22.tar.gz
cd pkg-config-0.22
./configure --prefix=/usr &&
make
make install将/usr/X11R7/lib加入到pkg-config的搜索路径中去。
代码:export PKG_CONFIG_PATH=/usr/X11R7/lib:/lib/pkgconfig:/usr/lib/pkgconfig
2.其次是imake-1.0.2、gccmakedep-1.0.2、imake-1.0.2、lndir-1.0.1、makedepend-1.0.1、util-macros-1.1.5
使用下面的命令就可以了。
代码KG_CONFIG_PATH="${PKG_CONFIG_PATHN}" \
./configure $XORG_CONFIGN  &&
make &&
make install

我这里是先安装 pkg-config-0.23
接着是makedepend-1.0.1
其报错为
No package 'xproto' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables X_CFLAGS
and X_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
回复 支持 反对

使用道具 举报

发表于 2009-4-13 19:34:13 | 显示全部楼层
不是先後次序问题,是依赖问题
我这里是先安装 pkg-config-0.23
接着是makedepend-1.0.1
其报错为
[color="Red"]No package 'xproto' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables X_CFLAGS
and X_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
人家第二帖早己说明 X protocol headers 是依赖了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-4-15 20:34:16 | 显示全部楼层
我安装了一个 xproto-7.0.13.tar.bz2 结果还是不行
root:/home/tools/xproto-7.0.13# make install
make[1]: Entering directory `/home/tools/xproto-7.0.13'
make[1]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/include/X11" || mkdir -p -- . "/usr/local/include/X11"
/usr/bin/install -c -m 644 'Xfuncproto.h' '/usr/local/include/X11/Xfuncproto.h'
/usr/bin/install -c -m 644 'Xpoll.h' '/usr/local/include/X11/Xpoll.h'
test -z "/usr/local/lib/pkgconfig" || mkdir -p -- . "/usr/local/lib/pkgconfig"
/usr/bin/install -c -m 644 'xproto.pc' '/usr/local/lib/pkgconfig/xproto.pc'
test -z "/usr/local/include/X11" || mkdir -p -- . "/usr/local/include/X11"
/usr/bin/install -c -m 644 'ap_keysym.h' '/usr/local/include/X11/ap_keysym.h'
/usr/bin/install -c -m 644 'DECkeysym.h' '/usr/local/include/X11/DECkeysym.h'
/usr/bin/install -c -m 644 'HPkeysym.h' '/usr/local/include/X11/HPkeysym.h'
/usr/bin/install -c -m 644 'keysymdef.h' '/usr/local/include/X11/keysymdef.h'
/usr/bin/install -c -m 644 'keysym.h' '/usr/local/include/X11/keysym.h'
/usr/bin/install -c -m 644 'Sunkeysym.h' '/usr/local/include/X11/Sunkeysym.h'
/usr/bin/install -c -m 644 'Xalloca.h' '/usr/local/include/X11/Xalloca.h'
/usr/bin/install -c -m 644 'Xarch.h' '/usr/local/include/X11/Xarch.h'
/usr/bin/install -c -m 644 'Xatom.h' '/usr/local/include/X11/Xatom.h'
/usr/bin/install -c -m 644 'Xdefs.h' '/usr/local/include/X11/Xdefs.h'
/usr/bin/install -c -m 644 'XF86keysym.h' '/usr/local/include/X11/XF86keysym.h'
/usr/bin/install -c -m 644 'Xfuncs.h' '/usr/local/include/X11/Xfuncs.h'
/usr/bin/install -c -m 644 'X.h' '/usr/local/include/X11/X.h'
/usr/bin/install -c -m 644 'Xmd.h' '/usr/local/include/X11/Xmd.h'
/usr/bin/install -c -m 644 'Xosdefs.h' '/usr/local/include/X11/Xosdefs.h'
/usr/bin/install -c -m 644 'Xos.h' '/usr/local/include/X11/Xos.h'
/usr/bin/install -c -m 644 'Xos_r.h' '/usr/local/include/X11/Xos_r.h'
/usr/bin/install -c -m 644 'Xproto.h' '/usr/local/include/X11/Xproto.h'
/usr/bin/install -c -m 644 'Xprotostr.h' '/usr/local/include/X11/Xprotostr.h'
/usr/bin/install -c -m 644 'Xthreads.h' '/usr/local/include/X11/Xthreads.h'
/usr/bin/install -c -m 644 'Xw32defs.h' '/usr/local/include/X11/Xw32defs.h'
/usr/bin/install -c -m 644 'XWDFile.h' '/usr/local/include/X11/XWDFile.h'
/usr/bin/install -c -m 644 'Xwindows.h' '/usr/local/include/X11/Xwindows.h'
/usr/bin/install -c -m 644 'Xwinsock.h' '/usr/local/include/X11/Xwinsock.h'
make[1]: Leaving directory `/home/tools/xproto-7.0.13'
回复 支持 反对

使用道具 举报

发表于 2009-4-15 20:50:56 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-4-15 21:14:12 | 显示全部楼层
这里的包很多 是全都需要安装么
回复 支持 反对

使用道具 举报

发表于 2009-4-16 19:29:21 | 显示全部楼层
Short answer: Yes
回复 支持 反对

使用道具 举报

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

本版积分规则

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