Re: [Citrus Perl] Installing Lib::Event on CitrusPerl for Mac OS X

36 views
Skip to first unread message

Citrus Support

unread,
Feb 8, 2013, 7:11:03 PM2/8/13
to citru...@googlegroups.com
Hi Greg,

Taking a look at Event::Lib, it has not been updated for four and a half
years.

I would guess that your best chance is to:

Install libevent 1.4.x-stable to /your/chosen/prefix

Patch the Event::Lib source with the patch at
https://rt.cpan.org/Public/Bug/Display.html?id=80644

Build Event::Lib with

perl Makefile.PL INC=-I/your/chosen/prefix/include
LIBS="-L/your/chosen/prefix/lib -levent"


Hope it helps

Mark



On 08/02/2013 21:33, Greg Thorne wrote:
>
>
> I'm working on a Perl project that requires Event::Lib. I'm on MacOS 10.7,
> and am running Citrus Perl <http://www.citrusperl.com/> instead of the
> system Perl. I installed libevent <http://libevent.org/> from source and it
> compiled fine. But, when I go to install Event::Lib, I run into some errors:
>
> cp Lib/Event/Lib.pm blib/lib/Event/Lib.pmSkip blib/lib/Event/Lib.pm (unchanged)/Users/username/code/CitrusPerl/bin/perl /Users/username/code/CitrusPerl/lib/ExtUtils/xsubpp -typemap /Users/username/code/CitrusPerl/lib/ExtUtils/typemap -typemap typemap Lib.xs > Lib.xsc && mv Lib.xsc Lib.c
> gcc -c -I/usr/local/include -fno-common -DPERL_DARWIN -no-cpp-precomp -arch i386 -B/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/gcc -B/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/lib/gcc -isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks -mmacosx-version-min=10.6 -DUSE_SITECUSTOMIZE -Duselargefiles -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe -fstack-protector -O3 -DVERSION=\"1.03\" -DXS_VERSION=\"1.03\" "-I/Users/username/code/CitrusPerl/lib/CORE" -DHAVE_CONFIG_H Lib.cLib.xs: In function �boot_Event__Lib�:Lib.xs:275: error: �LOG_LEVEL� undeclared (first use in this function)Lib.xs:275: error: (Each undeclared identifier is
report
ed only onceLib.xs:275: error: for each function it appears in.)
> make: *** [Lib.o] Error 1
>
> I've tried recompiling libevent multiple times, and doing the install to various directories. libevent seems to compile just fine every time, but Event::Lib keeps giving this error.
>
Reply all
Reply to author
Forward
0 new messages