我尝试在我的 ubuntu 服务器上安装 reddit 但出现错误:请查看终端:
[+] including definitions from Makefile.py
python setup.py build
Cannot find Baseplate. Skipping Thrift build.
running build
running build_py
running build_ext
python setup.py build_ext --inplace # copy the .so files from cython into the source tree
Cannot find Baseplate. Skipping Thrift build.
running build_ext
copying build/lib.linux-x86_64-2.7/r2/lib/sgm.so -> r2/lib
copying build/lib.linux-x86_64-2.7/r2/lib/wrapped.so -> r2/lib
copying build/lib.linux-x86_64-2.7/r2/lib/db/_sorts.so -> r2/lib/db
copying build/lib.linux-x86_64-2.7/r2/lib/mr_tools/_mr_tools.so -> r2/lib/mr_tools
copying build/lib.linux-x86_64-2.7/r2/lib/utils/_utils.so -> r2/lib/utils
copying build/lib.linux-x86_64-2.7/r2/lib/utils/comment_tree_utils.so -> r2/lib/utils
copying build/lib.linux-x86_64-2.7/Cfilters.so ->
# see above
rm -f build/public/static/sprite-reddit.png build/public/static/reddit.css
python r2/lib/nymph.py build/public/static/css/reddit.less build/public/static/sprite-reddit.png > build/public/static/css/reddit.less.tmp
lessc build/public/static/css/reddit.less.tmp > build/public/static/reddit.css.tmp
axconfig: port 1 not active
axconfig: port 2 not active
make: *** [build/public/static/reddit.css] Error 1
请帮我修复它。Node 和 Nodejs 都已安装。
答案1
您可以尝试安装“nodejs”或“node”:
apt-get install nodejs
或者
apt-get install node
答案2
然后,尝试下一步:
sudo apt-get 删除节点
仅从下载nodejshttp://nodejs.org/或者使用 githttps://github.com/nodejs/node但请确保安装稳定分支。安装时请遵循 README.md
git 克隆 git://github.com/ry/node.git
cd 节点
。/配置
制作
安装
- 安装后设置环境变量export PATH=$PTATH:/home/user/pathtonode/