fipes icon indicating copy to clipboard operation
fipes copied to clipboard

Can't compile or run fipes

Open josch opened this issue 11 years ago • 6 comments

Hi, I'm using Debian testing (jessie) and am unable to compile and run either the master or develop branch of fipes.

In the master branch I run make app and get this:

src/cowboy_cookies.erl: undefined parse transform 'eunit_autoexport'

In the develop branch I run make (which works fine) and then make start which succeeds but I guess it only did because it forked off into the background. When I checked with top I could not find fipes running. So I tried to run make dev and got:

{"init terminating in do_boot",{{badmatch,{error,{"no such file or directory","ranch.app"}}},[{fipes,start,0,[{file,"src/fipes.erl"},{line,24}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

Also: what happened to https://fipelines.org/ ?

josch avatar Mar 04 '14 21:03 josch

I just did the following procedure and it worked for me:

git clone https://github.com/tOkeshu/fipes.git
cd fipes
make
make dev # visit http://localhost:3473/

Maybe it's an Erlang version problem. I use Erlang R15B01 on Ubuntu 13.04, Raring Ringtail. What is your version?

tOkeshu avatar Mar 05 '14 11:03 tOkeshu

Hi,

Quoting Romain Gauthier (2014-03-05 12:09:43)

I just did the following procedure and it worked for me:

git clone https://github.com/tOkeshu/fipes.git cd fipes make make dev # visit http://localhost:3473/

Maybe it's an Erlang version problem. I use Erlang R15B01 on Ubuntu 13.04, Raring Ringtail. What is your version?

I'm using Debian testing with erlang 1:16.b.3.1-dfsg-2 which corresponds to erlang R16B03-1

cheers, josch

josch avatar Mar 05 '14 11:03 josch

The cowboy snapshot seems to be rotten :

compile: warnings being treated as errors
src/cowboy_http_websocket.erl:593: crypto:sha/1 is deprecated and will be removed in in a future release; use crypto:hash/2
make: *** [compile] Error 1

Erlang R16B03-1

athoune avatar Mar 05 '14 12:03 athoune

Debian offers the package erlang-cowboy which ships all *.app and *.beam files in /usr/lib/erlang/lib/cowboy-0.8.6/ebin/ but the fipes build system does not seem to make use of that (neither in the master nor in the develop branch).

josch avatar Mar 06 '14 10:03 josch

@josch I recently released a 0.1.0 which is the last deployed version on https://fipelines.org. Is your problem fixed now?

tOkeshu avatar May 15 '14 11:05 tOkeshu

Thanks, it compiles fine now.

The error I get now is when starting it:

{"init terminating in do_boot",{{badmatch,{error,{"no such file or directory","cowlib.app"}}},[{fipes,start,0,[{file,"src/fipes.erl"},{line,18}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

But that's of course a different issue and needs packaging of cowlib for Debian :)

josch avatar May 15 '14 12:05 josch