Erlang Cook Book

- windows

build with rebar

install rebar
git clone git://github.com/basho/rebar.git
cd rebar
.\bootstrap.bat

http://alancastro.org/2010/05/01/erlang-application-management-with-rebar.html

if rebar complains crypto is not working during generate phase as described,

Uncaught error in rebar_core: {'EXIT',
                                  {undef,
                                      [{crypto,start,[]},
                                       {rebar,run_aux,1},
                                       {rebar,main,1},
                                       {escript,run,2},
                                       {escript,start,1},
                                       {init,start_it,1},
                                       {init,start_em,1}]}}
make: *** [deps] Error 1

you need to install Win32OpenSSL-1_0_0g lib from here , vc 2008 redistribution is also needed if necessary.

steps to create projects

steps to create projects

Erlang: Solving undef Error

http://www.richvigorito.com/code/erlang-solving-undef-error

Sometimes you'll get this error:

Error in process <0.37.0> with exit value: {undef,[{file,some_function,[]}]}

From erlang site we get this def:
"undef: The function cannot be found when evaluating a function call."

Things to check out:
1) obviously is it defined, perhaps misspelled correctly?
2) are you exporting it correctly?
ie -export([some_function/0]).

Other thing you might want to check out that aren't always as straight forward
1) if this is from an included package are you including correctly and/or is the pathing correct?
2) if this is a function you created does you're file compile correctly?

REFERENCE: http://www.erlang.org/doc/reference_manual/errors.html

couch db

http://blog.railsware.com/2012/03/12/couchdb-and-couchapp-part-1/

Add a New Comment
or Sign in as Wikidot user
(will not be published)
- +
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License