Nodejs 安装无法正常工作,[Errno 13] 权限被拒绝:'/usr/local/include/node/'
我正在尝试使用以下命令安装 Node、socket.io 和 npm:
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
但是脚本失败:
sudo ./configure && make && make install
它无法在 usr/local/include 中创建节点目录。我正在使用 sudo,但它不起作用...我有一种感觉,这与我从 Windows 安装的 Ubuntu 11.04 有关...但我可能是错的。当我转到 usr/local/include 时,即使我有 root 访问权限,我也没有执行任何操作的权限......
你知道为什么这不起作用吗?
这是完整的错误消息:
Cannot create folder '/usr/local/include/node/' (original error: [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/')
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
然后没有 sudo 的东西
then stuff without sudo
我在执行
./configure
命令时遇到权限被拒绝错误,因此我按照以下步骤操作:configure
和/root/node/tools/waf-light< /代码>
在权限选项卡中。
检查选项
这将授予这两个文件执行的权限。
./configure
命令。I had permission denied error in executing
./configure
command so I followed this:configure
and/root/node/tools/waf-light
in Permissions tab.
Check the option
This will give permission to both these file to execute.
./configure
command.