Cannot compile with GCC v4.9.2
build
I can't seem to be able to compile Node.js on CentOS 6.6 GCC v4.9.2
```
$ ./configure
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.
```
More details:
```
$ which gcc
/usr/bin/gcc
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/gcc/libexec/gcc/x86_64-unknown-linux-gnu/4.9.2/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-current/configure --enable-languages=c,c++,fortran --enable-multilib --prefix=/usr/local/gcc
Thread model: posix
gcc version 4.9.2 (GCC)
$ which python
/usr/bin/python
$ python --version
Python 2.6.6
```
I have tried to set CC..
```
$ CC="/usr/local/gcc/bin/gcc"
$ set | grep CC
CC=/usr/local/gcc/bin/gcc
```
but it leads to the same error.
Any ideas?
关闭于 2023-04-22 3 条评论