Open medaamarnadh opened 7 years ago
Finally solved this, I'll leave the solution here for whomever runs into the same problem.
Here's what the problem was, Unbuntu 12.04 only has gcc 4.6.3 in the official repository, but C++11 is only supported from 4.8.1, therefore you need to install 4.8 from a different PPA:
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 50
Now this alone did not fix the problem since it seems node-gyp uses g++ instead of gcc so just do the same for g++:
sudo apt-get install g++-4.8
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50
Hi Team,
I am getting node-gyp rebuild error in CentOs while installing node-time module.
Can any one help me?