Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nodejs install is not working, [Errno 13] Permission denied: '/usr/local/include/node/'

I'm trying to install Node, socket.io and npm using the following:

cd ~
sudo apt-get install libv8-2.0.3 libv8-dev libv8-dbg libssl-dev curl
wget http://nodejs.org/dist/node-v0.4.3.tar.gz
tar zxvf node-v0.4.3.tar.gz
cd node-v0.4.3
sudo ./configure && make && make install
sudo curl http://npmjs.org/install.sh | sudo sh
sudo npm install socket.io

However the script fails on:

sudo ./configure && make && make install

It is unable to create the node directory in usr/local/include. I'm using sudo and it's not working... I've got a feeling that it's got something to do with my Ubuntu 11.04 install being installed from Windows... but I could be wrong. When I go to usr/local/include i've not got permissions to do anything even though i've got root access....

Do you know why this isn't working?

Here is the full error message:

Cannot create folder '/usr/local/include/node/' (original error: [Errno 13] Permission denied: '/usr/local/include/node/')
like image 315
Jack Avatar asked Dec 04 '22 20:12

Jack


1 Answers

sudo bash

then stuff without sudo

exit
like image 194
thomas-peter Avatar answered Dec 07 '22 09:12

thomas-peter