我正在尝试在 openindiana 上编译 node.js,下面是我的环境,即使我在其中设置了 gcc 路径,.profile
它一直说找不到可接受的 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.
nick@www:~/node-latest-install$ echo $PATH
/usr/gnu/bin:/usr/bin:/usr/sbin:/sbin:/opt/gcc/4.4.4/bin/gcc
nick@www:~/node-latest-install$ which gcc
/usr/bin/gcc
nick@www:~/node-latest-install$ which cc
其中:没有 cc 在 (/usr/gnu/bin:/usr/bin:/usr/sbin:/sbin:/opt/gcc/4.4.4/bin/gcc)
nick@www:~/node-latest-install$ gcc -v
使用内置规范。目标:i386-pc-solaris2.11 配置:/home/jt/OI-151A-STABLE/151A-PRESTABLE6/newbuilds/oi-build/components/illumos-gcc/richlowe-gcc-f268959/configure --prefix= /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 线程模型:posix gcc 4.4版。 4 (海合会)