bcmvc help

41 views
Skip to first unread message

Stephen Schaefer

unread,
Jun 20, 2012, 9:53:12 AM6/20/12
to erlware-...@googlegroups.com
If this is the wrong place, please redirect me.

bcmvc has a dependency on erlando.

Please mention that in the bcmvc README

Second, it's not obvious to me how to tell sinan to find the .beam files that erlando provides to erlc.

Help?

Stephen Schaefer

unread,
Jun 20, 2012, 1:08:32 PM6/20/12
to erlware-...@googlegroups.com
I'll ask this differently: how does one specify compile time dependencies to sinan?  "sinan build -v" is only reporting run time dependencies:

$ sinan build -vvv
starting: depends
Using the following lib directories to resolve dependencies:

   
    /home/sps/Git/Weave/weave/_build/weave/lib
    /usr/lib64/erlang/lib

compile time dependencies:


runtime dependencies:

    kernel                    2.14.5     : /usr/lib64/erlang/lib/kernel-2.14.5
    stdlib                    1.17.5     : /usr/lib64/erlang/lib/stdlib-1.17.5
    mnesia                    4.5        : /usr/lib64/erlang/lib/mnesia-4.5

project applications:

    bcmvc_db                  0.1.0      : /home/sps/Git/Weave/weave/_build/weave/lib/bcmvc_db-0.1.0
    jiffy                     0.5.2      : /home/sps/Git/Weave/weave/_build/weave/lib/jiffy-0.5.2
    ossp_uuid                 1.1        : /home/sps/Git/Weave/weave/_build/weave/lib/ossp_uuid-1.1
    bcmvc_models              0.1.0      : /home/sps/Git/Weave/weave/_build/weave/lib/bcmvc_models-0.1.0
    cowboy                    0.6.0      : /home/sps/Git/Weave/weave/_build/weave/lib/cowboy-0.6.0
    bcmvc_web                 0.1.0      : /home/sps/Git/Weave/weave/_build/weave/lib/bcmvc_web-0.1.0
    erlando                   %%VSN%%    : /home/sps/Git/Weave/weave/_build/weave/lib/erlando-%%VSN%%
starting: build
Building /home/sps/Git/Weave/weave/lib/erlang-ossp-uuid/src/ossp_uuid.erl
Building /home/sps/Git/Weave/weave/lib/jiffy/src/jiffy_utf8.erl
Building /home/sps/Git/Weave/weave/lib/jiffy/src/jiffy.erl
Building /home/sps/Git/Weave/weave/lib/bcmvc_db/src/bcmvc_db_sup.erl
Building /home/sps/Git/Weave/weave/lib/bcmvc_db/src/bcmvc_db_app.erl
Building /home/sps/Git/Weave/weave/lib/bcmvc_db/src/bcmvc_db.erl
/home/sps/Git/Weave/weave/lib/bcmvc_db/src/bcmvc_db.erl:none:error:error in parse transform 'cut': {undef,
...copious results of missing erlando dependency elided...

Tristan Sloughter

unread,
Jun 20, 2012, 1:12:15 PM6/20/12
to erlware-...@googlegroups.com
Hmm, that is interesting since it finds erlando under your weave/lib directory. Can you send me the contents of that directory? 


--
You received this message because you are subscribed to the Google Groups "erlware-questions" group.
To view this discussion on the web visit https://groups.google.com/d/msg/erlware-questions/-/Sx8oys8GE-kJ.

To post to this group, send email to erlware-...@googlegroups.com.
To unsubscribe from this group, send email to erlware-questi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/erlware-questions?hl=en.

Stephen Schaefer

unread,
Jun 20, 2012, 6:08:51 PM6/20/12
to erlware-...@googlegroups.com


On Wednesday, June 20, 2012 1:12:15 PM UTC-4, Tristan Sloughter wrote:
Hmm, that is interesting since it finds erlando under your weave/lib directory. Can you send me the contents of that directory? 


I'd be grateful for you to look at it.  How/where would you like to receive it?
 

Stephen Schaefer

unread,
Jun 20, 2012, 6:50:17 PM6/20/12
to erlware-...@googlegroups.com
Perhaps it would be useful to describe how the erlando files got there:  I first tried to do a git clone of erlando itself, but couldn't do a "make" because that required "../umbrella.mk".  So I found "umbrella.mk" in "rabbitmq-public-umbrella" and did a git clone of that.  In its top level, "make erlando" pulled erlando from a mercurial repository.  "cd erlando; make" appeared to work, generating ebin/*.beam files.  Then I did a "mkdir $weave_top/weave/lib/erlando; cp -r * $weave_top/weave/lib/erlando".

Tristan Sloughter

unread,
Jun 20, 2012, 7:43:06 PM6/20/12
to erlware-...@googlegroups.com
You could try using agner for erlando, that is how I installed it: https://github.com/agner/agner

On Wed, Jun 20, 2012 at 5:50 PM, Stephen Schaefer <s.schaef...@gmail.com> wrote:
Perhaps it would be useful to describe how the erlando files got there:  I first tried to do a git clone of erlando itself, but couldn't do a "make" because that required "../umbrella.mk".  So I found "umbrella.mk" in "rabbitmq-public-umbrella" and did a git clone of that.  In its top level, "make erlando" pulled erlando from a mercurial repository.  "cd erlando; make" appeared to work, generating ebin/*.beam files.  Then I did a "mkdir $weave_top/weave/lib/erlando; cp -r * $weave_top/weave/lib/erlando".

--
You received this message because you are subscribed to the Google Groups "erlware-questions" group.
To view this discussion on the web visit https://groups.google.com/d/msg/erlware-questions/-/ghjhPcFbZG8J.

Stephen Schaefer

unread,
Jun 20, 2012, 8:57:50 PM6/20/12
to erlware-...@googlegroups.com
I'm running under Fedora 16 with all updates applied, but my erlang isn't good enough for that:

Cloning into '/tmp/agner.PJPjwS'...
remote: Counting objects: 1813, done.
remote: Compressing objects: 100% (630/630), done.
remote: Total 1813 (delta 1271), reused 1710 (delta 1175)
Receiving objects: 100% (1813/1813), 8.16 MiB | 2.11 MiB/s, done.
Resolving deltas: 100% (1271/1271), done.

=ERROR REPORT==== 20-Jun-2012::20:38:00 ===
Loading of /tmp/agner.PJPjwS/rebar/rebar/ebin/rebar.beam failed: badfile
escript: exception error: undefined function rebar:main/1
  in function  escript:run/2
  in call from escript:start/1
  in call from init:start_it/1
  in call from init:start_em/1

=ERROR REPORT==== 20-Jun-2012::20:38:00 ===
beam/beam_load.c(1365): Error loading module rebar:
  use of opcode 153; this emulator supports only up to 152

make: *** [deps] Error 127

I have found a solution, however: "yum -y install erlang-erlando.x86_64".  The package did not include /usr/lib64/erlang/lib/erlando-2.8.2/ebin/erlando.app so I had to gin that up with vi for sinan's sake, but "sinan build -v" is now completing!  Hurray!


On Wednesday, June 20, 2012 7:43:06 PM UTC-4, Tristan Sloughter wrote:
You could try using agner for erlando, that is how I installed it: https://github.com/agner/agner
Reply all
Reply to author
Forward
0 new messages