Questions tagged [erl]

The erl program is Erlang Emulator, starting an Erlang runtime system.

The executable script erl is a front-end to the Erlang runtime system. Windows users probably wants to use the werl program instead, which runs in its own window with scrollbars and supports command-line editing.

160 questions
1
vote
1 answer

Erlang Binary Input Example

Below erlang code fails with bad argument error in ** exception error: bad argument in function re:split/3. What should be the input for build_keyword_set ? I have tried giving binary input, string input, list of strings and list of binary objects,…
1
vote
1 answer

erlang shell can't ping pong in same pc

when I use erl open multi nodes, and then I start erl like this: erl -sname test1 erl -sname test2 And then, I logon the two shells and test ping each other, but can't ping pong. net_adm:ping(test2). Anywhere wrong? Does somebody know? The detail…
GoogleFan
  • 11
  • 5
1
vote
1 answer

Error: erlang: no bottle available! on Mac OS 10.13

I'm facing an error while trying to install the Erlang/OTP in MacOS 10.13.6. I am trying: brew install erlang But I am getting the error: Error: erlang: no bottle available!. I have attached the screenshot
1
vote
1 answer

Is there any way to invoke the Erlang switch command on the CMD on Windows?

When I invoke erl on the CMD I get this output: Eshell V10.1 (abort with ^G) 1> As far as I know, the switch command should kick in when I press Ctrl + G, but instead what I get is a new shell. Do I have to press a different key combination? Does…
amedina
  • 2,838
  • 3
  • 19
  • 40
1
vote
0 answers

RabbitMq with rabbitmq-server command is not running

I am trying to run Rabbitmq on my MAC CATALINA 10.15.5 and seeing this error everytime I run rabbitmq-server . rabbitmq-server Crash dump is being written to erl_crash.dump...done init terminating in do_boot () the output of rabbitmqctl status is…
saran
  • 356
  • 1
  • 3
  • 14
1
vote
2 answers

Proper way to merge nested values within maps?

Given the following: M1 = #{ "Robert" => #{"Scott" => #{}} }, M2 = #{ "Robert" => #{"Adams" => #{}} } Merged should be: M3 = #{ "Robert" => #{ "Scott" => #{}, "Adams" => {}} Now if we merge in the following: M4 = #{ "William" => #{ "Robert" => #{…
user3505901
  • 408
  • 1
  • 6
  • 19
1
vote
4 answers

Rabbit MQ Error : unable to perform an operation on node 'rabbit@USERNAME'

Error: unable to perform an operation on node 'rabbit@YASHODIP-PC'. Please see diagnostics information and suggestions below. Most common reasons for this are: Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall…
Yashodip Bhavsar
  • 21
  • 1
  • 1
  • 5
1
vote
1 answer

Why is Eunit insisting my function is returning {ok, value} when it's not?

I'm doing something very simple: Reversing a list in Erlang without using BIFs. Here's my attempt: %% ----------------------------------------------------------------------------- %% Reverses the specified list. %% reverse(List) where: %% *…
Novicegrammer
  • 222
  • 1
  • 9
1
vote
1 answer

How to get data from ejabberd packet object?

I have a print log with packet data and I extract subelement using Packet#message.sub_els and it gives me array like : [ {xmlel,<<"delay">>,[{<<"xmlns">>,<<"urn:xmpp:delay">>},{<<"stamp">>,<<"2019-10-24T08:08:15.126+00:00">>}],[]}, …
Maulik Patel
  • 650
  • 5
  • 22
1
vote
0 answers

RabbitMQ fails to start with error "no match of right hand value undefined in rabbit_priority_queue:enable/0"

RabbitMQ 3.7.4 running within docker container (run from official docker image) fails to start with the below error: The issue happens randomly. 2019-07-03 17:08:17.859 [info] <0.33.0> Application lager started on node…
rok
  • 9,403
  • 17
  • 70
  • 126
1
vote
1 answer

Implementing Long live tcp connection using ninenine ranch

I'm trying to implement a long live TCP connection with ninnenine ranch erlang library . But looking at the documentation i cannot see a way of doing that. Also i have written my own ranch protocol as shown below start_link(Ref, _Socket,…
giles
  • 85
  • 1
  • 9
1
vote
1 answer

Erlang: Connecting to a server, and receiving input back on the same socket

I am making a socket connection to a localhost. I would like to receive input back from from the server on this connection(or any connection, but using the same connection seemed like the easiest solution). Because several clients will be able to…
Sam
  • 1,765
  • 11
  • 82
  • 176
1
vote
2 answers

How do I install a driver in Erlang? (Specifically MySQL-otp driver)

From the documentation this driver looks great. I don't know how to install it so that I can use it though. I read somewhere that I should maybe use rebar? I looked at that documentation though and it appears to have the opposite problem. It says…
Sam
  • 1,765
  • 11
  • 82
  • 176
1
vote
1 answer

How to take String input with spaces in erlang with io:fread or io:read

I just want to take a string input from the user in erlang programming.
Jagan PJ
  • 9
  • 1
  • 5
1
vote
1 answer

Rabbitmq unable to find erl after Mac OS update

After updating high sierra to 10.13.5, rabbitmq can't seem to find erl when i run: /usr/local/Cellar/rabbitmq/3.7.3/sbin/rabbitmq-server I get the error: /usr/local/Cellar/rabbitmq/3.7.3/sbin/rabbitmq-server: line 85: …
nara_l
  • 664
  • 2
  • 9
  • 23