1。从官网上wget到源码包,下面是没有configure文件的,所以不需要./configure,直接在etc/profile文件下添加export就可以了
2 。然而,并没有这么顺利,在uubuntu中使用node,并没有什么反应,但是输入npm有显示。
注意:一开始我是root用户,which node后发现路径在usr/bin/node,然后file /usr/sbin/node后,发现是ax25-node的symbol link,
boo@boogoogle:/usr$ which node
/usr/bin/node
boo@boogoogle:/usr$ file /usr/bin/node
/usr/bin/node: symbolic link to `/etc/alternatives/node'
发现了,node的路径是在usur/bin下的,而file后的结果也不是ax25的symbolic了
所以初步猜测暂定的解决办法还可以是:更改root下的/usr/sbin/node的symbolic为非ax25的
在此补充一个知识:
/sbin: commands in this dir are all system installed super user commands
/bin :commands in this dir are all system installed user commands 系统所有用户都有权限调用的指令
