免费注册 查看新帖 |

Chinaunix

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

no acceptable C compiler found in $PATH [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-04-05 22:21 |只看该作者 |倒序浏览
在solaris 10 时候发现:
no acceptable C compiler found in $PATH

bash-3.00# ./configure
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... i386-pc-solaris2.10
checking host system type... i386-pc-solaris2.10
checking target system type... i386-pc-solaris2.10

Configuring Apache Portable Runtime library ...

checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... i386-pc-solaris2.10
checking host system type... i386-pc-solaris2.10
checking target system type... i386-pc-solaris2.10
Configuring APR library
Platform: i386-pc-solaris2.10
checking for working mkdir -p... yes
APR Version: 0.9.7
checking for chosen layout... apr
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
configure failed for srclib/apr

但我已经装GCC了

bash-3.00# pkgadd -d gcc-3.3.2-sol10-intel-local

The following packages are available:
  1  SMCgcc     gcc
                (intel) 3.3.2

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: all

Processing package instance <SMCgcc> from </export/home/law/gcc-3.3.2-sol10-intel-local>

gcc(intel) 3.3.2

This appears to be an attempt to install the same architecture and
version of a package which is already installed.  This installation
will attempt to overwrite this package.

FSF
Using </usr/local> as the package base directory.
## Processing package information.
## Processing system information.
   344 package pathnames are already properly installed.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

Installing gcc as <SMCgcc>

## Installing part 1 of 1.
[ verifying class <none> ]

Installation of <SMCgcc> was successful.

论坛徽章:
0
2 [报告]
发表于 2006-04-05 22:22 |只看该作者
但:
$PATH
bash: /usr/sbin:/usr/bin: 无此文件或目录

如何解决这个问题呀?

论坛徽章:
0
3 [报告]
发表于 2006-04-05 23:30 |只看该作者
PATH

/usr/local/bin

论坛徽章:
0
4 [报告]
发表于 2006-04-06 01:32 |只看该作者
不是很明白,兄弟,能说清楚一点吗?

$PATH
bash: /usr/local/bin:/usr/sbin:/usr/bin: 无此文件或目录

论坛徽章:
0
5 [报告]
发表于 2006-04-06 17:38 |只看该作者
CC=gcc;export CC

论坛徽章:
0
6 [报告]
发表于 2008-02-15 16:44 |只看该作者
原帖由 风之幻想 于 2006-4-6 17:38 发表
CC=gcc;export CC


同样的错误

论坛徽章:
4
技术图书徽章
日期:2013-09-23 10:22:37狮子座
日期:2013-10-15 23:31:54卯兔
日期:2013-11-11 17:33:15金牛座
日期:2013-11-15 17:25:28
7 [报告]
发表于 2008-02-15 17:43 |只看该作者
  1. PATH=/usr/local/bin:$PATH
  2. export PATH
复制代码

论坛徽章:
0
8 [报告]
发表于 2008-02-17 20:37 |只看该作者
把/usr/sfw/bin添加到PATH中(/.profile)即可。gcc,c等编译器都在这个路径下面。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP