[OpenIndiana-New-developers] openindiana nodejs install, No C compiler error
Nick Li
nickleefly at gmail.com
Fri Aug 9 05:16:10 UTC 2013
Hi,
I am trying to compile node.js on openindiana, below is my Environment,
I set gcc path in .profile
It keeps saying
No acceptable C compiler found!
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
run
$ CC=gcc ./configure --with-dtrace --dest-cpu=x64 --prefix=~/local
or
$ ./configure --with-dtrace --dest-cpu=x64 --prefix=~/local
both of them gives following error
Node.js configure error: No acceptable C compiler found!
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 at www:~/node-latest-install$ echo $PATH
/usr/gnu/bin:/usr/bin:/usr/sbin:/sbin:/opt/gcc/4.4.4/bin/gcc
nick at www:~/node-latest-install$ which gcc
/usr/bin/gcc
nick at www:~/node-latest-install$ which cc
which: no cc in
(/usr/gnu/bin:/usr/bin:/usr/sbin:/sbin:/opt/gcc/4.4.4/bin/gcc)
nick at www:~/node-latest-install$ gcc -v
Using built-in specs.
Target: i386-pc-solaris2.11
Configured with:
/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
Thread model: posix
gcc version 4.4.4 (GCC)
--
Best Regards
Nick Li
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openindiana.org/pipermail/new-developers/attachments/20130809/930de632/attachment.html>
More information about the New-developers
mailing list