【问题标题】:Eclipse External tools cannot start Meteorite: uname: command not found, even when PATH is setEclipse 外部工具无法启动 Meteorite: uname: command not found, 即使设置了 PATH
【发布时间】:2013-02-15 03:33:51
【问题描述】:

在终端中一切正常:

alex@ubuntu:~/workspace/spt$ export PATH=$PATH:/usr/lib/meteor/bin
alex@ubuntu:~/workspace/spt$ mrt

Stand back while Meteorite does its thing

Done installing smart packages

Ok, everything's ready. Here comes Meteor!

 [[[[[ ~/workspace/spt ]]]]]

Running on: http://localhost:3000/

现在我想在 Eclipse 控制台中查看输出,所以我创建了“外部工具配置”并拥有:

我还添加了路径:

但是,当我尝试运行时,我在控制台中得到以下输出:

[1m[37m在陨石做它的时候退后[39m[22m

[1m[37m完成安装智能包[39m[22m

[32mOk,一切准备就绪。流星来了![39m

/home/alex/.meteorite/meteors/meteor/meteor/2d8b41a87cec884489ead138b5dfea31487363f3/meteor: 第 7 行: uname: command not found 抱歉,不支持此操作系统。

有什么想法吗?

【问题讨论】:

    标签: eclipse meteor


    【解决方案1】:

    当它说 Append 时,我认为它是一个松散的定义。如果流星找不到uname,则表示路径已清空到/usr/lib/meteor/bin。您可以手动创建一个完整的路径变量:

    找出你的路径,在你的终端中运行echo $PATH,然后添加你的:/usr/lib/meteor/bin,并在屏幕截图中的那个对话框中使用它作为你的路径。

    【讨论】:

    • 非常感谢,这实际上是正确的。我假设如果可以找到每个变量,“附加”就会“附加”到每个变量。 ${env_var:PATH}:/usr/lib/meteor/bin 解决了我的问题
    猜你喜欢
    • 2013-04-10
    • 1970-01-01
    • 1970-01-01
    • 2022-05-10
    • 1970-01-01
    • 2019-07-07
    • 1970-01-01
    • 2018-01-13
    • 2020-09-26
    相关资源
    最近更新 更多