免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 3932 | 回复: 10
打印 上一主题 下一主题

ar program为何物?? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-07-08 10:05 |只看该作者 |倒序浏览
我用源代码编译方式安装bind,再进行./configure --prefix=/usr/local/bind的时候出现现面提示

……

configure :error:

ar program not found.Please fix your PATH to include the directory in which ar resides ,or set AR in the erviroment with the full path to ar.

请教各位高手,ar program是什么东西,怎么解决???

论坛徽章:
0
2 [报告]
发表于 2008-07-08 10:17 |只看该作者
ar 是用来把object 文件打包成libxxx.a的工具。

论坛徽章:
0
3 [报告]
发表于 2008-07-08 10:21 |只看该作者

回复 #2 lipingtababa 的帖子

那我这样的情况,是缺少那个ar工具吗?如何解决这个问题啊?急

论坛徽章:
0
4 [报告]
发表于 2008-07-08 11:12 |只看该作者
ar program not found.Please fix your PATH to include the directory in which ar resides ,or set AR in the erviroment with the full path to ar.

你看不懂这句话?就是你要把ar所在的目录添加到PATH环境变量里。
你可以用 find / -name ar找出ar所在的目录

论坛徽章:
0
5 [报告]
发表于 2008-07-08 11:27 |只看该作者

回复 #4 lipingtababa 的帖子

不好意思,我是个新手啦~~
find / -name ar 后出现这些:
/usr/ccs/bin/ar
/usr/lib/vfs/2.0/extfs/ar
/usr/openwin/lib/locale/ar
/usr/share/gok/ar
/usr/xpg4/bin/ar
/usr/sfw/i386-sun-solaris2.10/bin/ar
/usr/dt/config/ar
/usr/X11/lib/X11/xkb/symbols/pc/ar
/usr/X11/lib/X11/xkb/symbols/ar
/usr/staroffice7/share/cde/types/ar

然后该怎么做呢?是选择呢个正确的目录呢?

论坛徽章:
7
荣誉会员
日期:2011-11-23 16:44:17水瓶座
日期:2013-08-28 21:20:16丑牛
日期:2013-10-02 21:01:462015年迎新春徽章
日期:2015-03-04 09:54:45操作系统版块每日发帖之星
日期:2016-06-05 06:20:0015-16赛季CBA联赛之吉林
日期:2016-06-20 08:24:0515-16赛季CBA联赛之四川
日期:2016-08-18 15:02:02
6 [报告]
发表于 2008-07-08 11:39 |只看该作者
原帖由 jifeng_1982 于 2008-7-8 11:27 发表
不好意思,我是个新手啦~~
find / -name ar 后出现这些:
/usr/ccs/bin/ar
/usr/lib/vfs/2.0/extfs/ar
/usr/openwin/lib/locale/ar
/usr/share/gok/ar
/usr/xpg4/bin/ar
/usr/sfw/i386-sun-solaris2.10/ ...

/usr/ccs/bin/ar

论坛徽章:
0
7 [报告]
发表于 2008-07-08 11:55 |只看该作者

回复 #6 nimysun 的帖子

是否PATH=/usr/ccs/bin/ar ?
之后我进行./configure --prefix=/usr/local/bind
出现:./configure: chmod: not found
./configure: rm: not found
./configure: expr: not found
./configure: false: not found
./configure: false: not found
./configure: sed: not found
./configure: line 75: chmod: command not found
./configure: line 81: rm: command not found
./configure: line 194: sed: command not found
./configure: line 457: expr: command not found
./configure: line 469: sed: command not found
./configure: line 483: sed: command not found
: error: cannot create .lineno; rerun with a POSIX shell
我的shell是/usr/bin/bash

论坛徽章:
0
8 [报告]
发表于 2008-07-08 12:21 |只看该作者
PATH=$PATH:/usr/ccs/bin/

论坛徽章:
0
9 [报告]
发表于 2008-07-08 12:39 |只看该作者
谢谢,之后重新运行./configure --prefix=/usr/local/bind后出现以下:
checking build system type... i386-pc-solaris2.10
checking host system type... i386-pc-solaris2.10
checking whether make sets $(MAKE)... yes
checking for ranlib... ranlib
checking for a BSD-compatible install... ./install-sh -c
checking whether ln -s works... yes
checking for ar... /usr/ccs/bin//ar
checking for etags... no
checking for emacs-etags... no
checking for perl5... no
checking for perl... /usr/bin/perl
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

是不是编辑器有问题啊?

论坛徽章:
0
10 [报告]
发表于 2008-07-08 13:51 |只看该作者
兄弟,问题一样,你的编译器的路径没有出现在PATH里面
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP