[rabbitmq-discuss] RabbitMQ 2.1.1: Building from sources: No rule to make target deps.mk ?!

Frank Gönninger frank.goenninger at consequor.de
Sun Nov 28 14:31:40 GMT 2010


Hi Matthew, 

Am 28.11.2010 um 15:12 schrieb Matthew Sackman:

> Hi Frank,
> 
> On Sun, Nov 28, 2010 at 02:55:19PM +0100, Frank Gönninger wrote:
>> Am 28.11.2010 um 14:49 schrieb Matthew Sackman:
>> 
>>> On Sun, Nov 28, 2010 at 02:42:44PM +0100, Frank Gönninger wrote:
>>>> I am trying to build 2.1.1 from sources. I am using GNU make version 3.81. Still I am getting a "no rule to make target deps.mk" error. I checked the Makefile and it clearly has such a rule. Hmm - anybody seen this before? Any ideas ? TIA!
>>> 
>>> Can you just confirm you have codegen and server directories as siblings
>>> within the public-umbrella repo?
>> 
>> $ cd rabbitmq-server-2.1.1/
>> ... that's what I'm seeing. If thatÄs the "public-umbrella repo" I don't know.
> 
> 
> Agh, my mistake, sorry - I'd failed to remember how our source releases
> work. However, when I download
> http://www.rabbitmq.com/releases/rabbitmq-server/v2.1.1/rabbitmq-server-2.1.1.tar.gz
> and unpack, and issue make in there, I get:
> 
> $ make
> python codegen.py body codegen/amqp-rabbitmq-0.9.1.json src/rabbit_framing_amqp_0_9_1.erl
> python codegen.py body codegen/amqp-rabbitmq-0.8.json src/rabbit_framing_amqp_0_8.erl
> xsltproc --stringparam modulename "`basename src/rabbit_ctl_usage.erl .erl`" \
>                docs/usage.xsl docs/rabbitmqctl.1.xml > src/rabbit_ctl_usage.erl.tmp
> sed -e 's/"/\\"/g' -e 's/%QUOTE%/"/g' src/rabbit_ctl_usage.erl.tmp > src/rabbit_ctl_usage.erl.tmp2
> fold -s src/rabbit_ctl_usage.erl.tmp2 > src/rabbit_ctl_usage.erl.tmp3
> mv src/rabbit_ctl_usage.erl.tmp3 src/rabbit_ctl_usage.erl
> rm src/rabbit_ctl_usage.erl.tmp src/rabbit_ctl_usage.erl.tmp2
> xsltproc --stringparam modulename "`basename src/rabbit_multi_usage.erl .erl`" \
>                docs/usage.xsl docs/rabbitmq-multi.1.xml > src/rabbit_multi_usage.erl.tmp
> sed -e 's/"/\\"/g' -e 's/%QUOTE%/"/g' src/rabbit_multi_usage.erl.tmp > src/rabbit_multi_usage.erl.tmp2
> fold -s src/rabbit_multi_usage.erl.tmp2 > src/rabbit_multi_usage.erl.tmp3
> mv src/rabbit_multi_usage.erl.tmp3 src/rabbit_multi_usage.erl
> rm src/rabbit_multi_usage.erl.tmp src/rabbit_multi_usage.erl.tmp2
> python codegen.py --ignore-conflicts header codegen/amqp-rabbitmq-0.9.1.json codegen/amqp-rabbitmq-0.8.json include/rabbit_framing.hrl
> rm -f deps.mk
> escript generate_deps include src \$\(EBIN_DIR\) deps.mk
> erlc -I include -o ebin -Wall -v +debug_info -Duse_specs -pa ebin src/bpqueue.erl
> ...
> 
> What output do you get?

After downloading and unpacking I get:

$ cd rabbitmq-server-2.1.1
frgo at ccde007 /opt/rabbitmq/src/rabbitmq-server-2.1.1
$ ll
total 208
-rw-r--r--@  1 frgo  admin  23936 19 Okt 18:23 INSTALL
-rw-r--r--@  1 frgo  admin    195 19 Okt 18:23 LICENSE
-rw-r--r--@  1 frgo  admin  25561 19 Okt 18:23 LICENSE-MPL-RabbitMQ
-rw-r--r--@  1 frgo  admin  11200 19 Okt 18:23 Makefile
-rw-r--r--@  1 frgo  admin   3180 19 Okt 18:23 README
-rwxr-xr-x@  1 frgo  admin   1719 19 Okt 18:23 calculate-relative
drwxr-xr-x@ 10 frgo  admin    340 19 Okt 18:23 codegen
-rw-r--r--@  1 frgo  admin  19919 19 Okt 18:23 codegen.py
drwxr-xr-x@ 11 frgo  admin    374 19 Okt 18:23 docs
drwxr-xr-x@  3 frgo  admin    102 19 Okt 18:23 ebin
-rw-r--r--@  1 frgo  admin    494 19 Okt 18:23 generate_app
-rw-r--r--@  1 frgo  admin   2343 19 Okt 18:23 generate_deps
drwxr-xr-x@  7 frgo  admin    238 19 Okt 18:23 include
drwxr-xr-x@ 10 frgo  admin    340 19 Okt 18:23 scripts
drwxr-xr-x@ 81 frgo  admin   2754 19 Okt 18:23 src
frgo at ccde007 /opt/rabbitmq/src/rabbitmq-server-2.1.1
$ make
make: *** No rule to make target `deps.mk', needed by `ebin/bpqueue.beam'.  Stop.

So, no call to codegen.

Python version:

$ python --version
Python 2.6.1

Erlang:

$ erl
Erlang R14B (erts-5.8.1) [source] [smp:4:4] [rq:4] [async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.8.1  (abort with ^G)
1> 

I did succeed in earlier versions (1.8.x) of RabbitMQ ... 

Thanks for your suppport!!!

Cheers
  Frank



More information about the rabbitmq-discuss mailing list