[erlang-questions] not able to compile log4erl on Ubuntu 8.04

Ahmed Ali <>
Wed May 6 23:04:49 CEST 2009


Hi,

I'm glad it worked. I'll fix this in next release. I've included
Log4erl group for reference.

Best regards,

Ahmed

On Wed, May 6, 2009 at 5:45 PM, Xue Yong Zhi <> wrote:
> Thank you very much. I followed your instruction and got it compiled.
> And yes, Ubuntu 8.0.4 shipped with an older version of erlang (I installed
> it with apt-get):
> $ erl
> Erlang (BEAM) emulator version 5.5.5 [source] [64-bit] [async-threads:0]
> [kernel-poll:false]
>
> Eshell V5.5.5 (abort with ^G)
> 1> init:script_id().
> {"OTP APN 181 01","R11B"}
>
>
> On Wed, May 6, 2009 at 3:27 AM, Ahmed Ali <> wrote:
>>
>> Hi,
>>
>> Actually, this file (log4erl_parser) is automatically generated by
>> yeec. I think the best thing to do is to go to src directory and run
>> the following and recompile:
>>
>> #> cd src/
>> #> erl
>> Erlang (BEAM) emulator version 5.6.4 [source] [smp:2]
>> [async-threads:0] [hipe] [kernel-poll:false]
>>
>> Eshell V5.6.4  (abort with ^G)
>> 1> yecc:file("log4erl_parser.yrl").
>> {ok,"log4erl_parser.erl"}
>>
>> There a possibility that you're using an old version of yecc (older
>> erlang/OTP version). So, in case this failed, please let me know what
>> erlang/OTP version are you using. I'm using R12B
>>
>> I hope this works. Thanks for the feedback. I'll try to add yecc
>> generation instead of just compiling in the next release.
>>
>> Good luck,
>>
>> Ahmed
>>
>> On Wed, May 6, 2009 at 10:12 AM, Xue Yong Zhi <>
>> wrote:
>> > Hello ahmed,
>> > I was trying to play with log4erl but can not get it compiled. I noticed
>> > I
>> > do not have
>> > '/opt/erlang/lib/erlang/lib/parsetools-1.4.5/include/yeccpre.hrl', so I
>> > replaced it with
>> > /usr/lib/erlang/lib/parsetools-1.4.1.1/include/yeccpre.hrl:
>> >
>> > --file("/opt/erlang/lib/erlang/lib/parsetools-1.4.5/include/yeccpre.hrl",
>> > 0).
>> > +-file("/usr/lib/erlang/lib/parsetools-1.4.1.1/include/yeccpre.hrl", 0).
>> >
>> > But I still not able to compile it:
>> > $ make
>> > cd src; make
>> > make[1]: Entering directory
>> > `/home/yong/workspace/ejabberd/feedfetcher/log4erl/src'
>> >>> compiling: console_appender.erl
>> >>> compiling: dummy_appender.erl
>> >>> compiling: email_msg.erl
>> >>> compiling: error_logger_log4erl_h.erl
>> >>> compiling: file_appender.erl
>> >>> compiling: log4erl_conf.erl
>> >>> compiling: log4erl.erl
>> >>> compiling: log4erl_lex.erl
>> >>> compiling: log4erl_parser.erl
>> > /usr/lib/erlang/lib/parsetools-1.4.1.1/include/yeccpre.hrl:22: syntax
>> > error
>> > before: _
>> > /usr/lib/erlang/lib/parsetools-1.4.1.1/include/yeccpre.hrl:24: syntax
>> > error
>> > before: _
>> > /usr/lib/erlang/lib/parsetools-1.4.1.1/include/yeccpre.hrl:29: syntax
>> > error
>> > before: '{'
>> > /usr/lib/erlang/lib/parsetools-1.4.1.1/include/yeccpre.hrl:36: syntax
>> > error
>> > before: any
>> > /usr/lib/erlang/lib/parsetools-1.4.1.1/include/yeccpre.hrl:48: syntax
>> > error
>> > before: integer
>> > make[1]: *** [log4erl_parser.beam] Error 1
>> >
>> > Do you have any suggestions? Thanks.
>> >
>
>
>



More information about the erlang-questions mailing list