我想启动作为JFrog Xray安装的RabbitMQ,我会得到: -bash-4.2$ /opt/jfrog/xray/app/third-party/rabbitmq/escript/rabbitmqctl
escript: exception error: undefined function rabbitmqctl_escript:main/1
in function escript:run/2 (escript.erl, line 758)
in call from escript:start/1 (escript.erl, line 277)
in call fro
我对piqic的安装有问题。当我“做”的时候,我就明白了:
bash-3.2$ make
rebar compile
==> piqic-erlang (compile)
==> piqi-erlang (compile)
set -e; \
for i in piqi_rpc.piqi piqi_tools.piqi; do \
../piqic-erlang/piqic-erlang $i; \
done
escript: exception error: undefined function piqic_erlang:main/1
in funct
如果我自己写脚本,我可以使用nif,但是当我使用rebar脚本时,找不到nif函数。我认为这是因为*.so对象没有像beam文件那样打包。下面是一个简单的例子;
rebar.config
{deps, [
{'jiffy', "", {git, "https://github.com/davisp/jiffy.git", {branch, master}}}
]}.
{escript_incl_apps, [jiffy]}.
%% I tried this to see what happens if the so got in there
看来我可以很好地运行rabbitmq-server命令并启动它,但是rabbitmqctl失败了,因此我不能停止它,也不能做任何其他事情。
~/rabbit/rabbitmq_server-3.7.15/sbin> rabbitmqctl
escript: exception error: undefined function rabbitmqctl_escript:main/1
in function escript:run/2 (escript.erl, line 758)
in call from escript:start/1 (escript.erl, line 27
在Windows 7 (64位)上使用MinGW/MSYS构建Erlang RabbitMQ插件时,我遇到了上述错误。我正在使用Erlang v5.10.3 (32位)。我能够在我的系统上运行RabbitMQ。
Fujitsu@Notebook /d/RabbitMQ/build-source/rabbitmq-public-umbrella/presence-exchange-master
$ make
[elided] generate deps
escript: exception error: no match of right hand side value {error,enoen
我正在和erlang一起写一个脚本,我看过很多使用io文件的例子,不太容易理解,所以我找到了这个:
Text = file:read_file("f.txt"),
io:format("~n", Text).
以某种方式工作,它确实会打印文件内容,随后会出现多个错误
in call from erl_eval:do_apply/6 (erl_eval.erl, line 572)
in call from escript:eval_exprs/5 (escript.erl, line 850)
in call from erl_eval:local_func/5
我想要写一个函数,它可以用\n分隔一系列数字,并将它们打印在列表中。但是,我不能在badarg错误方面取得任何进展。我怎样才能继续执行这段代码?这样做的目的是将数字传输到这个程序中,但是当我传递多个数字时,我会得到以下错误:
exception error: bad argument
in function io:format/3
called as io:format(<0.62.0>,"~w~n",[3,2,1])
in call from erl_eval:local_func/6 (erl_eval.erl, line 564)
in
我正在遵循中的免费屏幕/教程,但我甚至无法开始,因为mix setup失败了:
=ERROR REPORT==== 6-Jul-2022::12:47:58.702361 ===
beam/beam_load.c(551): Error loading function rebar3:parse_args/1: op put_tuple u x:
please re-compile this module with an Erlang/OTP 25 compiler
escript: exception error: undefined function rebar3:main/1
我的目标是获取所有依赖项,并在本地计算机上运行riak_ensemble。但是,当我运行rebar get-deps时,我总是会遇到:
Cloning into 'neotoma'... ERROR: Dependency dir /home/project/riak/riak_ensemble_demo/deps/cuttlefish/deps/neotoma failed application validation with reason: {version_mismatch,{"/home/agung/project/riak/riak_ensemble_dem