I am trying to compile some libraries using gcc 4.7 (which i just upgraded from 4.6.3, somehow it complain about c compiler:
/home/rtbkit/platform-deps/node/wscript:263: error: could not configure a c compiler!
make[1]: Entering directory `/home/rtbkit/platform-deps/node'
Project not configured (run 'waf configure' first)
make[1]: *** [program] Error 1
make[1]: Target `all' not remade because of errors.
make[1]: Leaving directory `/home/rtbkit/platform-deps/node'
make[1]: Entering directory `/home/rtbkit/platform-deps/node'
Project not configured (run 'waf configure' first)
make[1]: *** [program] Error 1
make[1]: Target `all' not remade because of errors.
make[1]: Leaving directory `/home/rtbkit/platform-deps/node'
make[1]: Entering directory `/home/rtbkit/platform-deps/node'
Project not configured (run 'waf configure' first)
make[1]: *** [program] Error 1
make[1]: Leaving directory `/home/rtbkit/platform-deps/node'
installing
make[1]: Entering directory `/home/rtbkit/platform-deps/node'
Project not configured (run 'waf configure' first)
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/rtbkit/platform-deps/node'
cp: target `/home/rtbkit/local/include/node' is not a directory
make: *** [install_node] Error 1
gcc-4.7 may not be set as the auto default. Depending on your OS version you may need to get the 4.7 version from another archive like PPA. This is for Ubuntu:
Install the python tools for adding an archive to apt-get:
Then add the ppa archive:
Make sure there are no existing linking:
Update list of packages from all archives:
Install the 4.7 versions of gcc and g++ :
Add default links to the new versions:
Confirm the versions and defaults:
Mostly referenced from https://askubuntu.com/questions/26498/choose-gcc-and-g-version/26518#26518 and personal experience on Ubuntu 12.04.