librelist archives

« back to archive

Can't build efene

Can't build efene

From:
bulat
Date:
2011-08-26 @ 03:50
Hi!

This morning I've got acquainted with the language. I really like ideas
behind it and syntax is quite nice (I like python and using it at work).
But I can't build it. I've cloned repo from github, run ./build.sh and it
says:

Submodule 'lib/thirdparty/ibrowse'
(git://github.com/cmullaparthi/ibrowse.git) registered for path
'lib/thirdparty/ibrowse'
Submodule 'lib/thirdparty/mochiweb' (git://github.com/mochi/mochiweb.git)
registered for path 'lib/thirdparty/mochiweb'
Submodule 'lib/thirdparty/simple_bridge'
(git://github.com/nitrogen/simple_bridge.git) registered for path
'lib/thirdparty/simple_bridge'
Initialized empty Git repository in
/home/bulat/prg/efene/lib/thirdparty/ibrowse/.git/
remote: Counting objects: 571, done.
remote: Compressing objects: 100% (220/220), done.
remote: Total 571 (delta 363), reused 499 (delta 299)
Receiving objects: 100% (571/571), 229.61 KiB | 280 KiB/s, done.
Resolving deltas: 100% (363/363), done.
Submodule path 'lib/thirdparty/ibrowse': checked out
'7958fc2f6b141759c5a046bbf7fa647e1ca115cc'
Initialized empty Git repository in
/home/bulat/prg/efene/lib/thirdparty/mochiweb/.git/
remote: Counting objects: 1613, done.
remote: Compressing objects: 100% (624/624), done.
remote: Total 1613 (delta 1086), reused 1439 (delta 958)
Receiving objects: 100% (1613/1613), 720.46 KiB | 548 KiB/s, done.
Resolving deltas: 100% (1086/1086), done.
Submodule path 'lib/thirdparty/mochiweb': checked out
'ff2cdc9b05aa93022f19b0562f99dffc44ff40ed'
Initialized empty Git repository in
/home/bulat/prg/efene/lib/thirdparty/simple_bridge/.git/
remote: Counting objects: 387, done.
remote: Compressing objects: 100% (178/178), done.
remote: Total 387 (delta 219), reused 342 (delta 199)
Receiving objects: 100% (387/387), 210.81 KiB | 198 KiB/s, done.
Resolving deltas: 100% (219/219), done.
Submodule path 'lib/thirdparty/simple_bridge': checked out
'5330631c39077518c2c1271719818c1f448849ac'
gcc  -Wall   -c -o fnc.o fnc.c
gcc    fnc.o   -o fnc
mv fnc ../bin/fnc

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
{"init terminating in

do_boot",{undef,[{leex,file,[fn_lexer]},{fn_build,build,0},{init,start_it,1},{init,start_em,1}]}}
rm: cannot remove `fn_lexer.erl': No such file or directory
rm: cannot remove `fn_parser.erl': No such file or directory
Compiling spec.ifn
exception error: undefined function fn_lexer:string/1
     in function  fn:get_lex_from_str/2
     in call from fn:get_lex/3
     in call from fn:get_tree/2
     in call from fn:tree_to_ast/2
     in call from fn:build_module/1
     in call from fn:compile/2
     in call from fn:compile_files/2
Compiling rec.ifn
exception error: undefined function fn_lexer:string/1
     in function  fn:get_lex_from_str/2
     in call from fn:get_lex/3
     in call from fn:get_tree/2
     in call from fn:tree_to_ast/2
     in call from fn:build_module/1
     in call from fn:compile/2
     in call from fn:compile_files/2
Compiling ast.ifn
exception error: undefined function fn_lexer:string/1
     in function  fn:get_lex_from_str/2
     in call from fn:get_lex/3
     in call from fn:get_tree/2
     in call from fn:tree_to_ast/2
     in call from fn:build_module/1
     in call from fn:compile/2
     in call from fn:compile_files/2
(cd src ; make)
make[1]: Entering directory
`/home/bulat/prg/efene/lib/thirdparty/ibrowse/src'
erlc -W +warn_unused_vars +nowarn_shadow_vars +warn_unused_import -I./  -o
../ebin ibrowse.erl
./ibrowse.erl:115: can't find include lib "stdlib/include/ms_transform.hrl"
make[1]: *** [../ebin/ibrowse.beam] Error 1
make[1]: Leaving directory
`/home/bulat/prg/efene/lib/thirdparty/ibrowse/src'
make: *** [all] Error 2
cp: cannot stat `ebin/*.beam': No such file or directory
(cd src;make all)
make[1]: Entering directory
`/home/bulat/prg/efene/lib/thirdparty/mochiweb/src'
erlc -W -I ../include  +debug_info -o ../ebin mochifmt.erl
./mochifmt.erl:372: can't find include lib "eunit/include/eunit.hrl"
make[1]: *** [../ebin/mochifmt.beam] Error 1
make[1]: Leaving directory
`/home/bulat/prg/efene/lib/thirdparty/mochiweb/src'
make: *** [all] Error 2
cp: cannot stat `ebin/*.beam': No such file or directory
./rebar compile
==> simple_bridge (compile)
Compiled src/simple_bridge_response.erl
Compiled src/simple_bridge_request.erl
Compiled src/yaws_bridge_modules/yaws_response_bridge.erl
Compiled src/simple_bridge_multipart.erl
Compiled src/yaws_bridge_modules/yaws_request_bridge.erl
Compiled src/mochiweb_bridge_modules/mochiweb_response_bridge.erl
Compiled src/mochiweb_bridge_modules/mochiweb_request_bridge.erl
Compiled src/simple_bridge_response_wrapper.erl
Compiled src/webmachine_bridge_modules/webmachine_response_bridge.erl
Compiled src/simple_bridge_request_wrapper.erl
include/httpd_r12b5.hrl:21: can't find include lib
"kernel/include/file.hrl"
make: *** [compile] Error 1


The version of erlang is:
Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:2:2] [rq:2]
[async-threads:0] [kernel-poll:false]

Eshell V5.8.4  (abort with ^G)


May be someone in the list knows how to fix this?
Thanks.

Re: [efene] Can't build efene

From:
Mariano Guerra
Date:
2011-08-26 @ 08:00
On Fri, Aug 26, 2011 at 4:50 AM, bulat <bulatshfglh@gmail.com> wrote:
>
> Hi!
>
> This morning I've got acquainted with the language. I really like ideas
> behind it and syntax is quite nice (I like python and using it at work).
> But I can't build it. I've cloned repo from github, run ./build.sh and it
> says:
>
> Crash dump was written to: erl_crash.dump
> init terminating in do_boot ()
> {"init terminating in
> 
do_boot",{undef,[{leex,file,[fn_lexer]},{fn_build,build,0},{init,start_it,1},{init,start_em,1}]}}
>
>
> The version of erlang is:
> Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:2:2] [rq:2]
> [async-threads:0] [kernel-poll:false]
>
> Eshell V5.8.4  (abort with ^G)
>
>
> May be someone in the list knows how to fix this?
> Thanks.

you don't seem to have leex installed.

which operating system/distribution do you have?

if it's ubuntu or debian, you need to install all the packages from
erlang, not just the base ones

in fact you need only one that contains leex and yecc but it's healthy
to have the other ones

I think the package is called

erlang-dev

or something like that

tell me how it went!

Re: [efene] Can't build efene

From:
bulat
Date:
2011-08-26 @ 10:02
Many thanks for quick answer!

I use ubuntu 10.04 and as you assumed only erlang-base package was  
installed. I've installed erlang metapackage and it successfully built!
Yay!


On Fri, 26 Aug 2011 12:00:44 +0400, Mariano Guerra  
<luismarianoguerra@gmail.com> wrote:

> On Fri, Aug 26, 2011 at 4:50 AM, bulat <bulatshfglh@gmail.com> wrote:
>>
>> Hi!
>>
>> This morning I've got acquainted with the language. I really like ideas
>> behind it and syntax is quite nice (I like python and using it at work).
>> But I can't build it. I've cloned repo from github, run ./build.sh and  
>> it
>> says:
>>
>> Crash dump was written to: erl_crash.dump
>> init terminating in do_boot ()
>> {"init terminating in
>> 
do_boot",{undef,[{leex,file,[fn_lexer]},{fn_build,build,0},{init,start_it,1},{init,start_em,1}]}}
>>
>>
>> The version of erlang is:
>> Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:2:2] [rq:2]
>> [async-threads:0] [kernel-poll:false]
>>
>> Eshell V5.8.4  (abort with ^G)
>>
>>
>> May be someone in the list knows how to fix this?
>> Thanks.
>
> you don't seem to have leex installed.
>
> which operating system/distribution do you have?
>
> if it's ubuntu or debian, you need to install all the packages from
> erlang, not just the base ones
>
> in fact you need only one that contains leex and yecc but it's healthy
> to have the other ones
>
> I think the package is called
>
> erlang-dev
>
> or something like that
>
> tell me how it went!

Re: [efene] Can't build efene

From:
Mariano Guerra
Date:
2011-08-26 @ 10:11
On Fri, Aug 26, 2011 at 11:02 AM, bulat <bulatshfglh@gmail.com> wrote:
> Many thanks for quick answer!
>
> I use ubuntu 10.04 and as you assumed only erlang-base package was
> installed. I've installed erlang metapackage and it successfully built!
> Yay!

any feedback or question you may have, just ask, I'm here to help :)