summaryrefslogtreecommitdiffstats
path: root/archives/extend/2014-March/000355.html
blob: 819e76e132e6b229018b38de9355b427d5a5e455 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
 <HEAD>
   <TITLE> [99s-extend] Getting started error: behaviour cowboy_http_handler undefined
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20Getting%20started%20error%3A%20behaviour%0A%20cowboy_http_handler%20undefined&In-Reply-To=%3C5320F1F1.9000506%40ninenines.eu%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <style type="text/css">
       pre {
           white-space: pre-wrap;       /* css-2.1, curent FF, Opera, Safari */
           }
   </style>
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="000354.html">
   <LINK REL="Next"  HREF="000356.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[99s-extend] Getting started error: behaviour cowboy_http_handler undefined</H1>
    <B>Lo&#239;c Hoguin</B> 
    <A HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20Getting%20started%20error%3A%20behaviour%0A%20cowboy_http_handler%20undefined&In-Reply-To=%3C5320F1F1.9000506%40ninenines.eu%3E"
       TITLE="[99s-extend] Getting started error: behaviour cowboy_http_handler undefined">essen at ninenines.eu
       </A><BR>
    <I>Thu Mar 13 00:46:57 CET 2014</I>
    <P><UL>
        <LI>Previous message: <A HREF="000354.html">[99s-extend] Getting started error: behaviour cowboy_http_handler undefined
</A></li>
        <LI>Next message: <A HREF="000356.html">[99s-extend] Updating Cowboy applications
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#355">[ date ]</a>
              <a href="thread.html#355">[ thread ]</a>
              <a href="subject.html#355">[ subject ]</a>
              <a href="author.html#355">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>It's explained here: <A HREF="http://www.erlang.org/doc/man/code.html">http://www.erlang.org/doc/man/code.html</A>

I am not sure why it caused issues on your system, possibly Erlang 
ignored it because there was an invalid folder in there. I don't really 
know.

On 03/13/2014 12:43 AM, <A HREF="https://lists.ninenines.eu/listinfo/extend">lloyd at writersglen.com</A> wrote:
&gt;<i> Hi,
</I>&gt;<i>
</I>&gt;<i> That fixed it!
</I>&gt;<i>
</I>&gt;<i> But where can I go to understand why and prevent it in future?
</I>&gt;<i>
</I>&gt;<i> I've googled ERL_LIBS, but not found much enlightenment. Should there possibly be a note in Cowboy docs? Or is this something idiosyncratic to my system?
</I>&gt;<i>
</I>&gt;<i> Many thanks!
</I>&gt;<i>
</I>&gt;<i> Lloyd
</I>&gt;<i>
</I>&gt;<i> -----Original Message-----
</I>&gt;<i> From: &quot;Lo&#239;c Hoguin&quot; &lt;<A HREF="https://lists.ninenines.eu/listinfo/extend">essen at ninenines.eu</A>&gt;
</I>&gt;<i> Sent: Wednesday, March 12, 2014 6:57pm
</I>&gt;<i> To: <A HREF="https://lists.ninenines.eu/listinfo/extend">lloyd at writersglen.com</A>
</I>&gt;<i> Cc: <A HREF="https://lists.ninenines.eu/listinfo/extend">extend at lists.ninenines.eu</A>
</I>&gt;<i> Subject: Re: [99s-extend] Getting started error: behaviour cowboy_http_handler undefined
</I>&gt;<i>
</I>&gt;<i> Can you try again after running &quot;unset ERL_LIBS&quot;?
</I>&gt;<i>
</I>&gt;<i> On 03/12/2014 11:51 PM, <A HREF="https://lists.ninenines.eu/listinfo/extend">lloyd at writersglen.com</A> wrote:
</I>&gt;&gt;<i> Hi Lo&#239;c,
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> Thanks for help.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> I'm running cowboy master from GitHub and Erlang R16B02.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> $ echo $ERL_LIBS
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> ...gives me a directory that no longer exists; don't know how it got there, what it should be, or how to change it.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> E.g.: /home/lloyd/Programming/Erlang/zippity/apps
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> I've looked in .erlang and tried $ export ERL_LIBS=&lt;my path to hello_erlang/ebin&gt;.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> Thanks again,
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> LRP
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> -----Original Message-----
</I>&gt;&gt;<i> From: &quot;Lo&#239;c Hoguin&quot; &lt;<A HREF="https://lists.ninenines.eu/listinfo/extend">essen at ninenines.eu</A>&gt;
</I>&gt;&gt;<i> Sent: Monday, March 10, 2014 4:36pm
</I>&gt;&gt;<i> To: <A HREF="https://lists.ninenines.eu/listinfo/extend">lloyd at writersglen.com</A>, <A HREF="https://lists.ninenines.eu/listinfo/extend">extend at lists.ninenines.eu</A>
</I>&gt;&gt;<i> Subject: Re: [99s-extend] Getting started error: behaviour cowboy_http_handler undefined
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> Try updating Erlang or Cowboy, this isn't the first time this happens
</I>&gt;&gt;<i> and I fixed something at some point.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> Also see if you have ERL_LIBS already defined, in which case there might
</I>&gt;&gt;<i> be a bug in Cowboy.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> On 03/10/2014 08:44 PM, <A HREF="https://lists.ninenines.eu/listinfo/extend">lloyd at writersglen.com</A> wrote:
</I>&gt;&gt;&gt;<i> Hello,
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> I've slavishly emulated the &quot;Getting started&quot; example in the guide:
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> <A HREF="http://ninenines.eu/docs/en/cowboy/HEAD/guide/getting_started/">http://ninenines.eu/docs/en/cowboy/HEAD/guide/getting_started/</A>
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> But, when I compile I get this error:
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> yada yada
</I>&gt;&gt;&gt;<i>     ERLC   hello_erlang_app.erl hello_handler.erl hello_erlang_sup.erl
</I>&gt;&gt;&gt;<i> compile: warnings being treated as errors
</I>&gt;&gt;&gt;<i> src/hello_handler.erl:2: behaviour cowboy_http_handler undefined
</I>&gt;&gt;&gt;<i> make: *** [ebin/hello_erlang.app] Error 1
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> Cowboy seems to be correctly loaded and compiled as a dependency. I can see .../cowboy/ebin/cowboy_http_handler.beam
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> However, when I remove the line -behavior(cowboy_http_handler) from hello_handler.erl, system compiles and creates release just fine.
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> % -behavior(cowboy_http_handler).
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> Could this be a bug in Getting started or some dunder-headed thing on my end?
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> Thanks,
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> LRP
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> *********************************************
</I>&gt;&gt;&gt;<i> My books:
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> THE GOSPEL OF ASHES
</I>&gt;&gt;&gt;<i> <A HREF="http://thegospelofashes.com">http://thegospelofashes.com</A>
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> Strength is not enough. Do they have the courage
</I>&gt;&gt;&gt;<i> and the cunning? Can they survive long enough to
</I>&gt;&gt;&gt;<i> save the lives of millions?
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> FREEIN' PANCHO
</I>&gt;&gt;&gt;<i> <A HREF="http://freeinpancho.com">http://freeinpancho.com</A>
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> A community of misfits help a troubled boy find his way
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> AYA TAKEO
</I>&gt;&gt;&gt;<i> <A HREF="http://ayatakeo.com">http://ayatakeo.com</A>
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> Star-crossed love, war and power in an alternative
</I>&gt;&gt;&gt;<i> universe
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> Available through Amazon or by request from your
</I>&gt;&gt;&gt;<i> favorite bookstore
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> **********************************************
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> _______________________________________________
</I>&gt;&gt;&gt;<i> Extend mailing list
</I>&gt;&gt;&gt;<i> <A HREF="https://lists.ninenines.eu/listinfo/extend">Extend at lists.ninenines.eu</A>
</I>&gt;&gt;&gt;<i> <A HREF="https://lists.ninenines.eu/listinfo/extend">https://lists.ninenines.eu/listinfo/extend</A>
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;<i>
</I>&gt;<i>
</I>
-- 
Lo&#239;c Hoguin
<A HREF="http://ninenines.eu">http://ninenines.eu</A>

</PRE>

<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="000354.html">[99s-extend] Getting started error: behaviour cowboy_http_handler undefined
</A></li>
	<LI>Next message: <A HREF="000356.html">[99s-extend] Updating Cowboy applications
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#355">[ date ]</a>
              <a href="thread.html#355">[ thread ]</a>
              <a href="subject.html#355">[ subject ]</a>
              <a href="author.html#355">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://lists.ninenines.eu/listinfo/extend">More information about the Extend
mailing list</a><br>
</body></html>