在 QNAP NAS 上安装 node.js 时显示"flock: Command not found"



我想在QNAP NAS上安装node.js,这是一个linux操作系统,我可以使用ipkg安装包。但是ipkg没有node.js…

我参考web论坛http://forum.qnap.com/viewtopic.php?p=248556,安装V8 JavaScript引擎。

然后安装node.js

当我在/opt/node上输入make时,显示如下错误消息:

make -C out BUILDTYPE=Release V=1 make[1]:进入目录/share/HDA_DATA/.qpkg/Optware/node/out' flock /share/HDA_DATA/.qpkg/Optware/node/out/Release/linker.lock g++ -pthread -rdynamic -o /share/HDA_DATA/.qpkg/Optware/node/out/Release/mksnapshot -Wl,--start-group /share/HDA_DATA/.qpkg/Optware/node/out/Release/obj.target/mksnapshot/deps/v8/src/mksnapshot.o /share/HDA_DATA/.qpkg/Optware/node/out/Release/obj.target/deps/v8/tools/gyp/libv8_base.a /share/HDA_DATA/.qpkg/Optware/node/out/Release/obj.target/deps/v8/tools/gyp/libv8_nosnapshot.a -Wl,--end-group make[1]: flock: Command not found make[1]: *** [/share/HDA_DATA/.qpkg/Optware/node/out/Release/mksnapshot] Error 127 make[1]: Leaving directory/分享/HDA_DATA/.qpkg/Optware/节点/"make: * [node] Error 2

QNAP NAS(TS-119P2)没有flock命令行,我能做什么?有人能帮帮我吗?

ipkg install util-linux

包含flock命令。

进入节点源目录

./configure --prefix=/opt
...
LINK=g++ make
...
LINK=g++ make install

我必须导出CC作为我的编译器,然后运行babalooi建议的命令:

export CC=/opt/bin/gcc
./configure --prefix=/opt

LINK=g++ make

LINK=g++ make install

相关内容

  • 没有找到相关文章

最新更新