Node.js install Synology ds212+ error

I'm currently installing the Node.js environment on my Synology ds212+ and I have a problem when I'm running a line command.

When I'm trying to do

./configure --prefix=/opt/node --without-snapshot

The terminal give me this 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.

The problem is that I have gcc installed and when I'm using the gcc -v, the terminal return me the current version of my compiler.

Does anyone has this error when installing on a synology environment ?

I just met this problem, simply ln -s /opt/bin/gcc /opt/bin/cc will make it work.

I think the problem is that gcc is usually installed to an odd place on the synology (/opt/bin/gcc). Giving configure the right name for it seems to work.

CC=/opt/bin/gcc ./configure --prefix=/opt/node --without-snapshot

So, I figured out by myself. The things to do is to execute this line :

git checkout v0.4.11
cp /opt/lib/libssl.so.0.9.8 /usr/lib
cp /opt/lib/libcrypto.so.0.9.8 /usr/lib

Now you can do the make and the make install.

Have fun.

You need to install a gcc compiler on your MAC. Follow the instructions here:

http://www.mkyong.com/mac/how-to-install-gcc-compiler-on-mac-os-x/