[rabbitmq-discuss] Question Regarding making plugin
Tim Watson
tim at rabbitmq.com
Mon Jun 18 12:35:14 BST 2012
Hi Ashutosh,
I'm struggling to understand which steps you're having difficulty with.
Are you having difficulty checking out from mercurial using the umbrella
build system, or compiling plugins underneath the umberlla, or are you
having difficulty using Make in general?
If that latter, then our first port of call is to check that you have a
proper build environment set up (including a working Make tool-chain
obtained via cygwin, msys or mingw) and Erlang/OTP installed on your
computer.
I'm also interested in why it is necessary for you to build a plugin in
order to achieve your goals: what functionality do you need to add to
RabbitMQ?
Cheers,
Tim
On 18/06/2012 11:07, Ashutosh Trivedi wrote:
> Sir,
> I am not able to run the command make checkout and make all .I am running
> all these commands on windows
> Thanks
>
> -----Original Message-----
> From: Tim Watson [mailto:tim at rabbitmq.com]
> Sent: Monday, June 18, 2012 2:56 PM
> To: Ashutosh Trivedi; rabbitmq-discuss at lists.rabbitmq.com
> Subject: Re: [rabbitmq-discuss] Question Regarding making plugin
>
> On 18/06/2012 10:16, Ashutosh Trivedi wrote:
>> Sir,
>> I move in to the folder
>>
> C:\Users\ashutosh.trivedi\rabbitmq-public-umbrella\rabbitmq-auth-mechanism-s
>> sl to compile the rabbitmqrabbitmq-auth-mechanism-ssl to create .ez file
>> that will finally put in the plugin folder of the rabbitmq server to
> access
>> the plugin.But when I tried to compile through make command in the
>> rabbitmq-auth-mechanism-ssl directory the command prompt show me the msg
>> Input file specified two times but in the rabbitmq_in_action.pdf at page
> no
>> 225 it written that it will shown lot of output
>> On the command prompt
>> Thanks
>
> Ashutosh - please remember to 'reply all' to cc the rest of the list.
> Thanks. Have you tried building everything else (e.g.,
> rabbitmq-client/common/server/etc) that the plugin relies on, before
> building the plugin?
>
> For example:
>
> t4 at malachi:ashutosh $ hg clone
> http://hg.rabbitmq.com/rabbitmq-public-umbrella/
> destination directory: rabbitmq-public-umbrella
> requesting all changes
> adding changesets
> adding manifests
> adding file changes
> added 435 changesets with 555 changes to 47 files (+6 heads)
> updating to branch default
> resolving manifests
> <snip>
> 22 files updated, 0 files merged, 0 files removed, 0 files unresolved
> t4 at malachi:ashutosh $ cd rabbitmq-public-umbrella/
> t4 at malachi:rabbitmq-public-umbrella $
> t4 at malachi:rabbitmq-public-umbrella $ make checkout
> <snip - lots of output>
> t4 at malachi:rabbitmq-public-umbrella $ make all
> <snip - even more output>
> t4 at malachi:rabbitmq-public-umbrella $ cd rabbitmq-auth-mechanism-ssl/
> t4 at malachi:rabbitmq-auth-mechanism-ssl $ make
> rm -rf build/dep-ezs
> mkdir -p build/dep-ezs
> [elided] copy dependent ezs
> touch build/dep-ezs/.done
> rm -rf build/dep-apps
> mkdir -p build/dep-apps
> [elided] unzip ezs
> touch build/dep-apps/.done
> ERL_LIBS=./build/dep-apps erlc -Wall +debug_info -I ./include -pa ebin
> -o ebin src/rabbit_auth_mechanism_ssl.erl
> ERL_LIBS=./build/dep-apps erlc -Wall +debug_info -I ./include -pa ebin
> -o ebin src/rabbit_auth_mechanism_ssl_app.erl
> escript ../generate_app src/rabbitmq_auth_mechanism_ssl.app.src
> ebin/rabbitmq_auth_mechanism_ssl.app ./src
> sed -e 's|{vsn, *\"[^\"]*\"|{vsn,\"0.0.0\"|'
> <ebin/rabbitmq_auth_mechanism_ssl.app
> >build/rabbitmq_auth_mechanism_ssl.app.0.0.0
> rm -rf build/app
> mkdir -p ./build/app/rabbitmq_auth_mechanism_ssl-0.0.0/ebin
> ./build/app/rabbitmq_auth_mechanism_ssl-0.0.0/include
> [elided] copy beams to ebin
> cp -p ./build/rabbitmq_auth_mechanism_ssl.app.0.0.0
> ./build/app/rabbitmq_auth_mechanism_ssl-0.0.0/ebin/rabbitmq_auth_mechanism_s
> sl.app
> touch build/app/.done.0.0.0
> rm -rf dist
> mkdir -p dist
> cd ./build/app/&& zip -q -r
> /Users/t4/work/vmware/assists/ashutosh/rabbitmq-public-umbrella/rabbitmq-aut
> h-mechanism-ssl/dist/rabbitmq_auth_mechanism_ssl-0.0.0.ez
> rabbitmq_auth_mechanism_ssl-0.0.0
> cp -r build/dep-ezs/amqp_client-0.0.0.ez
> build/dep-ezs/rabbit_common-0.0.0.ez ./dist
> touch dist/.done.0.0.0
> touch dist/.done
> t4 at malachi:rabbitmq-auth-mechanism-ssl $
>
>>
>> -----Original Message-----
>> From: Tim Watson [mailto:tim at rabbitmq.com]
>> Sent: Monday, June 18, 2012 2:38 PM
>> To: Ashutosh Trivedi; rabbitmq-discuss at lists.rabbitmq.com
>> Subject: Re: [rabbitmq-discuss] Question Regarding making plugin
>>
>> On 18/06/2012 10:02, Ashutosh Trivedi wrote:
>>> Sir,
>>> Using hg clone http://hg.rabbitmq.com/rabbitmq-public-umbrella/ I
>>> obtain rabbitmq-public-umbrella and after moving in this folder I use the
>>> command make co
>>> Thanks
>>>
>>
>> Hi Ashutosh,
>>
>> That commands simply checks out the repositories below the umbrella.
>> What are you doing next, and what is going wrong (i.e., what does the
>> output from make look like)?
>>
>> Cheers,
>> Tim
>>
>
More information about the rabbitmq-discuss
mailing list