我想在羣集上啓動erlang從節點,並收到「bash:erl:command not found」消息。雖然我有erl的別名。這是我實際做的:Erlang:啓動從節點
[[email protected] ~]$ erl -rsh ssh -sname n001
Eshell V5.7.5 (abort with ^G)
([email protected])1> slave:start_link("[email protected]", n002, "-rsh ssh").
bash: erl: command not found
{error,timeout}
([email protected])2>
也許,有什麼問題嗎? 謝謝。
更新: 我已經將erlang bin目錄添加到了我的$ PATH變量中;我已經設置了$ ERLANG_ROOT_DIR變量; /對ERL在創建〜符號鏈接 - 但沒有什麼發生了變化? 在〜/斌/二郎目錄順便說一句,我已經安裝了二郎神......
'。如果不是交互式運行,不要做任何事情 [-z「$ PS1」] && return 所以如果你在此之前定義了你的'PATH'變量,那麼你可以使用你自定義的'erl'。 Bash *確實*在非交互模式下讀取.bashrc。 – aronisstav 2013-02-26 12:21:48