[erlang-questions] running sample progs for MGC and MG

J Bhanot <>
Tue Jan 29 13:13:45 CET 2008

Hi Maxim,

I am now trying to run it from local machine having no xterm server using 
this command

erl -pa ../../../megaco/ebin -s megaco

megaco application is up without any errors

but when on erl shell when i try to execute sample script


using follwoing command :

I get the following errors:


any ideas on that..


"Maxim Treskin" <> 
01/24/2008 03:50 PM

"J Bhanot" <>
Re: [erlang-questions] running sample progs for MGC and MG

On 24/01/2008, J Bhanot <> wrote:

Hi All, 

I built the stack doing following in FC 8 : 

./configure --disable -sctp 

make all 

make install 

Now i want to test MGC and MG running examples at follwoing location 


i tried to execute megaco_simple_mgc.erl 

following these commands: 

erl -pa ../../../megaco/ebin -s megaco_filter -s megaco 
%%   megaco_simple_mgc:start(). 

but getting the error : 

1> Application initialization failed: no display name and no $DISPLAY 
environment variable 
Error in startup script: no display name and no $DISPLAY environment 

Question1 : what should the value with which env value DISPLAY be set

DISPLAY is environment variable, which contains address and display number 
of your X server. Megaco sample progs have some GUI to trace megaco 
messages. It seems that you ran stack not in X environment, or under 
another user. 

Question2: these sample applications are made in erlang...is it possible 
to use c/c++ or some other language to use APIs/Functionalities of Megaco 

There is erl_interface library to interact between erlang node and C/C++ 
applications, but it is necessary to run one erlang node for this.

--- Maxim 'Zert' Treskin

Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080129/94a1bb33/attachment.html>

More information about the erlang-questions mailing list