Ccna final exam - java, php, javascript, ios, cshap all in one. This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Monday, June 4, 2012
Node.js could not configure a cxx compiler! (Ubuntu)
I have Ubuntu installed and I am trying to compile node.js
One-liner to install all needed dependencies(curl and git are not really needed, but are very useful and also needed if you install via nvm).
ReplyDeletesudo apt-get install build-essential libssl-dev curl git-core
Last two dependencies are not always needed, but installing them is really usefull anyway and you probably need it later anyway.
To only install cxx compiler
sudo apt-get install build-essential
If openssl is missing
sudo apt-get install libssl-dev
If like me, you are attempting to install this on an AWS instance running Amazon Linux AMI (which looks to be a cut down version CentOS):
ReplyDeleteInstall base tools:
yum groupinstall "Development Tools"
Now install openssl-devel:
yum install openssl-devel
Node should compile fine now.
If you're attempting this on Win7 like me, running:
ReplyDeleteash.exe
$ /bin/rebaseall
...did the trick.
Good luck!
If you find yourself getting this error on Mac OSX, you need to install XCode.
ReplyDeletehttps://developer.apple.com/
I needed to run yum install gcc-c++ on Cent OS.
ReplyDelete