2013-07-03 83 views
1

我试图汇编的OpenIndiana node.js的,下面是我的环境, 连我设置的gcc路径.profile 口口声声说 没有可接受的C编译器找到了!的OpenIndiana节点编译错误没有C编译器

export PATH=/usr/gnu/bin:/usr/bin:/usr/sbin:/sbin:/opt/gcc/4.4.4/bin:/usr/gnu/bin:$PATH 
export PAGER="/usr/bin/less -ins" 
export CC=/opt/gcc/4.4.4/bin/gcc 
export cc=/opt/gcc/4.4.4/bin/gcc 

运行

$ CC=gcc ./configure --with-dtrace --dest-cpu=x64 --prefix=~/local

$ ./configure --with-dtrace --dest-cpu=x64 --prefix=~/local

他们都给出以下错误 Node.js的配置错误:没有可以接受的C编译器找到了!

Please make sure you have a C compiler installed on your system and/or 
    consider adjusting the CC environment variable if you installed 
    it in a non-standard prefix. 

[email protected]:~/node-latest-install$ echo $PATH

/usr/gnu/bin:/usr/bin:/usr/sbin:/sbin:/opt/gcc/4.4.4/bin/gcc

[email protected]:~/node-latest-install$ which gcc

的/ usr /斌/ GCC

[email protected]:~/node-latest-install$ which cc

其中:无CC在(/usr/gnu/bin:/usr/bin:/usr/sbin:/sbin:/opt/gcc/4.4.4/bin/gcc)

[email protected]:~/node-latest-install$ gcc -v

使用内置的规格。 Target:i386-pc-solaris2.11 配置:/ home/jt/OI-151A-STABLE/151A-PRESTABLE6/newbuilds/oi-build/components/illumos -gcc/richlowe -gcc -f268959/configure - 前缀=/opt/gcc/4.4.4 --with-gnu-as --with-as =/usr/sfw/bin/gas --with-ld =/usr/bin/ld --without-gnu-ld --enable-languages = c,C++,objc --enable-shared --with-mpfr-include =/usr/include/mpfr --with-gmp-include =/usr/include/gmp Thread model:posix gcc版本4.4.4(GCC)

+0

您是否检查过'config.log'中的详细错误消息,它显示了它试图运行的命令以及从它们得到的错误? – alanc

+0

@alanc我没有找到一个'config.log',我目前的'.profile'是在[这个GIST](https://gist.github.com/nickleefly/65f78c41772f23894a31)你可以看看有什么不对吗? – nickleefly

回答

1

如果您指定CC变量,使其成为gcc的绝对路径:CC=/opt/gcc/4.4.4/bin/gcc。但是如果编译器已经在PATH中,指定CC不应该是必需的。

+0

它没有工作,我更新'.profile'到问题 – nickleefly

0

这可能听起来像一个愚蠢的答案,但你尝试删除它,并从包管理器重新安装它。 GCC即

问题何时开始发生?您可以使用beadm将操作系统回滚到上次更新或创建“还原点”的时间。检查一下,运行安装之前使用非常有用的东西。

+0

我试着重新安装'GCC',这个问题发生在我安装它时 – nickleefly