No subject
Sun Jun 17 23:12:48 BST 2012
Cygwin now, which is great. I do keep a windows environment around for
testing, but it's not configured for building and from speaking to a
colleague who *has* tried building on Windows, there are going to be
numerous other gotchas down the line. We are 'all hands on deck' at the
moment so I cannot promise when (or even if) I will have time to install
Cygwin (etc) in a Windows environment and figure out what steps are causing
you these issues.
If I were in your shoes, I would make my life a lot easier (and progress a
lot faster) and install linux on a virtual machine and use that instead. You
will have a *lot* less headaches doing that and the installation of Erlang
and everything else is *very* well documented on the internet.
Cheers,
Tim
On 20 Jun 2012, at 06:05, Ashutosh Trivedi wrote:
HI Tim,
After lots of effort I solve out all the command not found error but I stuck
in the problem
=ERROR REPORT==== 20-Jun-2012::15:57:18 === File operation error: eio.
Target: deps:dist. Function: list_dir. Process: code_ server.
c:/Users/ASHUTO~1.TRI/RABBIT~1/RA9B14~1/include/amqp_client.hrl:20: can't
find include lib "rabbit_common/include/rabbit.hrl"
c:/Users/ASHUTO~1.TRI/RABBIT~1/RA9B14~1/include/amqp_client.hrl:21: can't
find include lib "rabbit_common/include/rabbit_framing.hrl"
c:/Users/ASHUTO~1.TRI/RABBIT~1/RA9B14~1/include/amqp_client.hrl:33: record
'P_ba sic' undefined
make[1]: *** [ebin/amqp_auth_mechanisms.beam] Error 1
make[1]: Leaving directory
`/c/Users/ashutosh.trivedi/rabbitmq-public-umbrella/r
abbitmq-erlang-client'
make: *** [../rabbitmq-erlang-client/dist/.done.0.0.0] Error 2
Which file path he is asking to exists and where
can you please help me to sort out Thanks
Ashutosh Trivedi
------=_NextPart_000_0052_01CD5093.332FAEF0
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<base href=3D"x-msg://2739/">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3DEN-US link=3Dblue vlink=3Dpurple style=3D'word-wrap: =
break-word;
-webkit-nbsp-mode: space;-webkit-line-break: after-white-space'>
<div class=3DSection1>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi Tim,<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I am now running all the process on the linux =
environment<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I am able to successfully run =
“C:\Users\ashutosh.trivedi\rabbitmq-public-umbrella\rabbitmq-auth-m=
echanism-ssl
“ .erl code and produce .ez file<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>But it does not happen in my plugin code can you help =
me?<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>The error is as following<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>[shashank.jain at linux_dev rabbitmq-security-plugins]$ =
make<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>[elided] generate deps<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>escript: exception error: no match of right hand side =
value
{error,eacces}<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> in function
generate_deps__escript__1340__362001__574999:main/1
(/home/shashank.jain/Desktop/Mercurial/mercurial-2.2.2/rabbitmq-public-um=
brella/generate_deps,
line 23)<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> in call from escript:run/2 (escript.erl, line =
727)<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> in call from escript:start/1 (escript.erl, line =
277)<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> in call from init:start_it/1<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> in call from init:start_em/1<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>make: *** No rule to make target `build/deps.mk', needed =
by
`ebin/rabbitmq-security-plugins.beam'. Stop.<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>[shashank.jain at linux_dev =
rabbitmq-security-plugins]$<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thanks<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Ashutosh<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style=3D'border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt =
0in 0in 0in'>
<p class=3DMsoNormal><b><span =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span>=
</b><span
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Tim Watson
[mailto:watson.timothy at gmail.com] <br>
<b>Sent:</b> Wednesday, June 20, 2012 11:21 AM<br>
<b>To:</b> Ashutosh Trivedi<br>
<b>Cc:</b> rabbitmq-discuss at lists.rabbitmq.com<br>
<b>Subject:</b> Re: Question Regarding Writing =
Plugin<o:p></o:p></span></p>
</div>
</div>
<p class=3DMsoNormal><o:p> </o:p></p>
<div>
<p class=3DMsoNormal>Ashutosh - this mailing list is an important =
resource for
rabbit users (e.g., other people having difficulty building on Windows =
perhaps)
so please remember to cc the list. <o:p></o:p></p>
</div>
<div>
<p class=3DMsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=3DMsoNormal>From what I can see, you are still not building the =
top
level dependencies first. You need to build in the right order =
(although <a
href=3D"http://www.rabbitmq.com/plugin-development.html">http://www.rabbi=
tmq.com/plugin-development.html</a>
claims that you can just cd into a plugin sub-directory and build, so =
I'll
validate that and update either the documentation of this thread, =
depending on
which is correct). I did<o:p></o:p></p>
</div>
<div>
<p class=3DMsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=3DMsoNormal>% hg clone <path><o:p></o:p></p>
</div>
<div>
<p class=3DMsoNormal>% cd rabbitmq-public-umbrella<o:p></o:p></p>
</div>
<div>
<p class=3DMsoNormal>% make checkout<o:p></o:p></p>
</div>
<div>
<p class=3DMsoNormal>% make all<o:p></o:p></p>
</div>
<div>
<p class=3DMsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=3DMsoNormal>Now in answer to your question 'Which file path =
he is
asking to exists' [sic] - the answer is right in front of you! The =
output
says "can't find include lib =
"rabbit_common/include/rabbit.hrl"
so that is the file which is missing! I will admit this is a bit opaque =
as the
rabbit_common library is built from the rabbitmq-erlang-client sources, =
which
I'll admit is confusing at first. Anyway, by the looks of things you're
probably doing one of two things wrong, either<o:p></o:p></p>
</div>
<div>
<p class=3DMsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=3DMsoNormal>1. you've forgotten to run make checkout (or it =
hasn't run
properly) or...<o:p></o:p></p>
</div>
<div>
<p class=3DMsoNormal>2. you're building from the wrong directory =
or....<o:p></o:p></p>
</div>
<div>
<p class=3DMsoNormal>3. some other strange thing is happening that I =
can't
replicate at the moment<o:p></o:p></p>
</div>
<div>
<p class=3DMsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=3DMsoNormal>From the /c/Users/..... path in the output, it =
looks like
you're using Cygwin now, which is great. I do keep a windows environment =
around
for testing, but it's not configured for building and from speaking to a
colleague who *has* tried building on Windows, there are going to be =
numerous
other gotchas down the line. We are 'all hands on deck' at the =
moment so I
cannot promise when (or even if) I will have time to install Cygwin =
(etc) in a
Windows environment and figure out what steps are causing you these
issues. <o:p></o:p></p>
</div>
<div>
<p class=3DMsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=3DMsoNormal>If I were in your shoes, I would make my life a lot =
easier
(and progress a lot faster) and install linux on a virtual machine and =
use that
instead. You will have a *lot* less headaches doing that and the =
installation
of Erlang and everything else is *very* well documented on the =
internet.<o:p></o:p></p>
</div>
<div>
<p class=3DMsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=3DMsoNormal>Cheers,<o:p></o:p></p>
</div>
<div>
<p class=3DMsoNormal>Tim<o:p></o:p></p>
</div>
<p class=3DMsoNormal><o:p> </o:p></p>
<div>
<div>
<p class=3DMsoNormal>On 20 Jun 2012, at 06:05, Ashutosh Trivedi =
wrote:<o:p></o:p></p>
</div>
<p class=3DMsoNormal><br>
<br>
<o:p></o:p></p>
<div>
<div>
<p class=3DMsoNormal><span =
style=3D'font-size:10.5pt;font-family:Consolas'>HI =
Tim,<o:p></o:p></span></p>
</div>
<div>
<p class=3DMsoNormal><span =
style=3D'font-size:10.5pt;font-family:Consolas'>After
lots of effort I solve out all the command not found error but I stuck =
in the
problem<o:p></o:p></span></p>
</div>
<div>
<p class=3DMsoNormal><span =
style=3D'font-size:10.5pt;font-family:Consolas'>=3DERROR
REPORT=3D=3D=3D=3D 20-Jun-2012::15:57:18 =3D=3D=3D File operation error: =
eio. Target:
deps:dist. Function: list_dir. Process: code_ =
server.<o:p></o:p></span></p>
</div>
<div>
<p class=3DMsoNormal><span =
style=3D'font-size:10.5pt;font-family:Consolas'>c:/Users/ASHUTO~1.TRI/RAB=
BIT~1/RA9B14~1/include/amqp_client.hrl:20:
can't find include lib =
"rabbit_common/include/rabbit.hrl"<o:p></o:p></span></p>
</div>
<div>
<p class=3DMsoNormal><span =
style=3D'font-size:10.5pt;font-family:Consolas'>c:/Users/ASHUTO~1.TRI/RAB=
BIT~1/RA9B14~1/include/amqp_client.hrl:21:
can't find include lib =
"rabbit_common/include/rabbit_framing.hrl"<o:p></o:p></span></p=
>
</div>
<div>
<p class=3DMsoNormal><span =
style=3D'font-size:10.5pt;font-family:Consolas'>c:/Users/ASHUTO~1.TRI/RAB=
BIT~1/RA9B14~1/include/amqp_client.hrl:33:
record 'P_ba sic' undefined<o:p></o:p></span></p>
</div>
<div>
<p class=3DMsoNormal><span =
style=3D'font-size:10.5pt;font-family:Consolas'>make[1]:
*** [ebin/amqp_auth_mechanisms.beam] Error 1<o:p></o:p></span></p>
</div>
<div>
<p class=3DMsoNormal><span =
style=3D'font-size:10.5pt;font-family:Consolas'>make[1]:
Leaving directory =
`/c/Users/ashutosh.trivedi/rabbitmq-public-umbrella/r<o:p></o:p></span></=
p>
</div>
<div>
<p class=3DMsoNormal><span =
style=3D'font-size:10.5pt;font-family:Consolas'>abbitmq-erlang-client'<o:=
p></o:p></span></p>
</div>
<div>
<p class=3DMsoNormal><span =
style=3D'font-size:10.5pt;font-family:Consolas'>make:
*** [../rabbitmq-erlang-client/dist/.done.0.0.0] Error =
2<o:p></o:p></span></p>
</div>
<div>
<p class=3DMsoNormal><span =
style=3D'font-size:10.5pt;font-family:Consolas'>Which
file path he is asking to exists and where<o:p></o:p></span></p>
</div>
<div>
<p class=3DMsoNormal><span =
style=3D'font-size:10.5pt;font-family:Consolas'>can you
please help me to sort out Thanks<o:p></o:p></span></p>
</div>
<div>
<p class=3DMsoNormal><span =
style=3D'font-size:10.5pt;font-family:Consolas'>Ashutosh
Trivedi<o:p></o:p></span></p>
</div>
<div>
<p class=3DMsoNormal><span =
style=3D'font-size:10.5pt;font-family:Consolas'> <o:p></o:p></span><=
/p>
</div>
<div>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"'> <o:p>=
</o:p></span></p>
</div>
</div>
</div>
<p class=3DMsoNormal><o:p> </o:p></p>
</div>
</body>
</html>
------=_NextPart_000_0052_01CD5093.332FAEF0--
More information about the rabbitmq-discuss
mailing list