diff options
author | Loïc Hoguin <[email protected]> | 2016-08-29 12:39:49 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2016-08-29 12:40:03 +0200 |
commit | c807880f7ac73f813b2660ea81a00f7712a4e793 (patch) | |
tree | ba1d09e9b177f230665a80513b33fbd532000ce4 /archives/extend/2014-March/000355.html | |
parent | b1df25a7d9cda697513650659b781b55b40898f8 (diff) | |
download | ninenines.eu-c807880f7ac73f813b2660ea81a00f7712a4e793.tar.gz ninenines.eu-c807880f7ac73f813b2660ea81a00f7712a4e793.tar.bz2 ninenines.eu-c807880f7ac73f813b2660ea81a00f7712a4e793.zip |
Add old mailing list archives
Diffstat (limited to 'archives/extend/2014-March/000355.html')
-rw-r--r-- | archives/extend/2014-March/000355.html | 186 |
1 files changed, 186 insertions, 0 deletions
diff --git a/archives/extend/2014-March/000355.html b/archives/extend/2014-March/000355.html new file mode 100644 index 00000000..819e76e1 --- /dev/null +++ b/archives/extend/2014-March/000355.html @@ -0,0 +1,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ï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: +><i> Hi, +</I>><i> +</I>><i> That fixed it! +</I>><i> +</I>><i> But where can I go to understand why and prevent it in future? +</I>><i> +</I>><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>><i> +</I>><i> Many thanks! +</I>><i> +</I>><i> Lloyd +</I>><i> +</I>><i> -----Original Message----- +</I>><i> From: "Loïc Hoguin" <<A HREF="https://lists.ninenines.eu/listinfo/extend">essen at ninenines.eu</A>> +</I>><i> Sent: Wednesday, March 12, 2014 6:57pm +</I>><i> To: <A HREF="https://lists.ninenines.eu/listinfo/extend">lloyd at writersglen.com</A> +</I>><i> Cc: <A HREF="https://lists.ninenines.eu/listinfo/extend">extend at lists.ninenines.eu</A> +</I>><i> Subject: Re: [99s-extend] Getting started error: behaviour cowboy_http_handler undefined +</I>><i> +</I>><i> Can you try again after running "unset ERL_LIBS"? +</I>><i> +</I>><i> On 03/12/2014 11:51 PM, <A HREF="https://lists.ninenines.eu/listinfo/extend">lloyd at writersglen.com</A> wrote: +</I>>><i> Hi Loïc, +</I>>><i> +</I>>><i> Thanks for help. +</I>>><i> +</I>>><i> I'm running cowboy master from GitHub and Erlang R16B02. +</I>>><i> +</I>>><i> $ echo $ERL_LIBS +</I>>><i> +</I>>><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>>><i> +</I>>><i> E.g.: /home/lloyd/Programming/Erlang/zippity/apps +</I>>><i> +</I>>><i> I've looked in .erlang and tried $ export ERL_LIBS=<my path to hello_erlang/ebin>. +</I>>><i> +</I>>><i> Thanks again, +</I>>><i> +</I>>><i> LRP +</I>>><i> +</I>>><i> -----Original Message----- +</I>>><i> From: "Loïc Hoguin" <<A HREF="https://lists.ninenines.eu/listinfo/extend">essen at ninenines.eu</A>> +</I>>><i> Sent: Monday, March 10, 2014 4:36pm +</I>>><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>>><i> Subject: Re: [99s-extend] Getting started error: behaviour cowboy_http_handler undefined +</I>>><i> +</I>>><i> Try updating Erlang or Cowboy, this isn't the first time this happens +</I>>><i> and I fixed something at some point. +</I>>><i> +</I>>><i> Also see if you have ERL_LIBS already defined, in which case there might +</I>>><i> be a bug in Cowboy. +</I>>><i> +</I>>><i> On 03/10/2014 08:44 PM, <A HREF="https://lists.ninenines.eu/listinfo/extend">lloyd at writersglen.com</A> wrote: +</I>>>><i> Hello, +</I>>>><i> +</I>>>><i> I've slavishly emulated the "Getting started" example in the guide: +</I>>>><i> +</I>>>><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>>>><i> +</I>>>><i> But, when I compile I get this error: +</I>>>><i> +</I>>>><i> yada yada +</I>>>><i> ERLC hello_erlang_app.erl hello_handler.erl hello_erlang_sup.erl +</I>>>><i> compile: warnings being treated as errors +</I>>>><i> src/hello_handler.erl:2: behaviour cowboy_http_handler undefined +</I>>>><i> make: *** [ebin/hello_erlang.app] Error 1 +</I>>>><i> +</I>>>><i> Cowboy seems to be correctly loaded and compiled as a dependency. I can see .../cowboy/ebin/cowboy_http_handler.beam +</I>>>><i> +</I>>>><i> However, when I remove the line -behavior(cowboy_http_handler) from hello_handler.erl, system compiles and creates release just fine. +</I>>>><i> +</I>>>><i> % -behavior(cowboy_http_handler). +</I>>>><i> +</I>>>><i> Could this be a bug in Getting started or some dunder-headed thing on my end? +</I>>>><i> +</I>>>><i> Thanks, +</I>>>><i> +</I>>>><i> LRP +</I>>>><i> +</I>>>><i> +</I>>>><i> ********************************************* +</I>>>><i> My books: +</I>>>><i> +</I>>>><i> THE GOSPEL OF ASHES +</I>>>><i> <A HREF="http://thegospelofashes.com">http://thegospelofashes.com</A> +</I>>>><i> +</I>>>><i> Strength is not enough. Do they have the courage +</I>>>><i> and the cunning? Can they survive long enough to +</I>>>><i> save the lives of millions? +</I>>>><i> +</I>>>><i> FREEIN' PANCHO +</I>>>><i> <A HREF="http://freeinpancho.com">http://freeinpancho.com</A> +</I>>>><i> +</I>>>><i> A community of misfits help a troubled boy find his way +</I>>>><i> +</I>>>><i> AYA TAKEO +</I>>>><i> <A HREF="http://ayatakeo.com">http://ayatakeo.com</A> +</I>>>><i> +</I>>>><i> Star-crossed love, war and power in an alternative +</I>>>><i> universe +</I>>>><i> +</I>>>><i> Available through Amazon or by request from your +</I>>>><i> favorite bookstore +</I>>>><i> +</I>>>><i> +</I>>>><i> ********************************************** +</I>>>><i> +</I>>>><i> _______________________________________________ +</I>>>><i> Extend mailing list +</I>>>><i> <A HREF="https://lists.ninenines.eu/listinfo/extend">Extend at lists.ninenines.eu</A> +</I>>>><i> <A HREF="https://lists.ninenines.eu/listinfo/extend">https://lists.ninenines.eu/listinfo/extend</A> +</I>>>><i> +</I>>><i> +</I>><i> +</I> +-- +Loï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> |