2014-01-18 35 views
0

安装的node.js如何在Debian喘息安装的node.js在Debian

是否遵循了指示,但它不工作

https://github.com/joyent/node/wiki/Installation

# wget http://nodejs.org/dist/v0.10.24/node-v0.10.24-linux-x64.tar.gz 
# tar -zxf node-v0.10.24-linux-x64.tar.gz && cd node-v0.10.24-linux-x64 
# ./configure && make && make install 

前两行得不错,但在运行第三行时返回此错误

-bash: ./configure: No such file or directory 

节点.js dir

[email protected] ~/node-v0.10.24-linux-x64 # ls 
bin ChangeLog include lib LICENSE README.md share 
[email protected] ~/node-v0.10.24-linux-x64 # 
+1

你应该在node.js目录下配置 – 2014-01-18 01:33:00

+0

我是..检查第二行 – clarkk

+0

你有没有尝试列出目录中的内容? – 2014-01-18 01:36:15

回答

3

看起来像是您下载了二进制发行版,但您正在运行命令,就好像您试图从源代码构建一样。您不需要configuremake。这已经是一个可执行文件了。只需运行~/node-v0.10.24-linux-x64/bin/node并且repl应该启动。

+0

thx to @Peter Lyons我得到了同样的错误,不幸的是我下载了Linux Binaries,而不是自编译的源代码。 – stephanfriedrich