English 中文(简体)
在乌班图10.4使用Erlang习俗时,从Erlang奴隶口开始失败。
原标题:Starting an Erlang slave node in escript fails when using custom Erlang in Ubuntu 10.4

我有以下文字:

#!/usr/bin/env escript
%%! -name test_starter@127.0.0.1

main(_) ->
    NodeName = test,
    Host =  127.0.0.1 ,
    Args = "",

    {ok, _Node} = slave:start_link(Host, NodeName, Args),
    io:format("Node started successfully!").

2007年6月10日 我这样做:

$ ./start_slave
Node started successfully!
$

我想安装我自己的埃尔兰(最新版本,为方言等汇编的文件),因为埃尔兰河上的储量缺乏一些特征。 我把我的埃尔兰双版放在<代码>~/Applications/bin内。 开始Erlang通常会奏效,从Erlang的衣物中开始奴隶节也奏效。

然而,现在我的描述却不奏效。 在大约60秒后,它回去了一个错误:

$ ./start_slave                                   
escript: exception error: no match of right hand side value {error,timeout}

即便我改用我的地兰版本的文字,它仍没有发挥作用:

#!/home/user/Applications/bin/escript

奴隶 no开始使用电话:erlang: open_port/2,似乎正在使用sh,而后再看不懂我的.bashrc。 载有我习惯的文档PATH 环境变量。 时间范围似乎出现在以下几个阶段:slave:start_link/3等,等到奴隶之末才作出回应,而这种反应从未发生。

我能否自行安装埃兰兰,开始在乌班图10.4的英文稿中加入奴隶节点?<>。

<>Update: I ve试图在/etc/environment内将这条路添加到我习惯的埃兰。 (在《<条码>的原始在乌兰巴托被打上)但无改动。

<><>上> 接受给出的唯一答案(尽管它没有解决问题)。 乌班图和埃尔兰版现已过时,可能不再是一个问题。

最佳回答
问题回答

暂无回答




相关问题
Add a changing icon to Ubuntu Panel

What would be the most simple way of adding and changing an icon in the Ubuntu (Gnome) Panel? I m looking for something as simple as shell scripting, but I m not restricted to that. Will write a ...

Configuring kernel

After create a new system call, how to update the kernel? I tried these lines, make-kpkg clean fakeroot make-kpkg -initrd -append-to-version=-custom kernel_image kernel_headers But Ubuntu asked me ...

save Exceptions to file in python

I want to save all following Exceptions in a file. The reason why I need this is because the IDLE for python 3.1.1 in Ubuntu raises an Exception at calltipps, but close to fast, that it isn t readble. ...

How can i monitor system statistics in kubuntu using Java?

i am doing a project related to configuration and memory analyzer for kubuntu. i want to display the system statistics information like CPU usage, RAM usage and proceses etc. graphically using an ...

How to pass "--external-locking" for mysqld in Ubuntu

I would like to start my mysql server with the --external-locking option. As mysqld is run by the /etc/init.d/mysql script ubuntu (karmic), I guess that s where I should set this "--external-locking" ...

"g++" and "c++" compiler

I just found on my Ubuntu, there are two different C++ compilers: /usr/bin/g++ and /usr/bin/c++. I am not familiar with the latter, but man c++ just jumps to the manpage of gcc. I wonder what is their ...

热门标签