Greetings,
I'm new to integrating C with Perl as well as the Event module.
Trying the example:
--------------
use strict;
use Inline with => 'Event';
use Inline C => <<'EOC';
void c_callback(pe_event * event)
{
printf("Here is the C callback!\n");
}
EOC
Event->timer( desc => 'Perl timer with C callback.',
interval => 2,
cb => \&c_callback,
);
Event::loop;
----------------
I get the following error:
$ perl event_timer.pl
make: *** No rule to make target `/opt/local/lib/perl5/site_perl/
5.10.0/darwin-2level/auto/Event/Event.dylib', needed by `subdirs'.
Stop.
A problem was encountered while attempting to compile and install your
Inline
C code. The command that failed was:
make > out.make 2>&1
------------------
There does not seem to be an Event.dylib at the expected location:
$ ls -l /opt/local/lib/perl5/site_perl/5.10.0/darwin-2level/auto/Event/
total 184
-r--r--r-- 1 root admin 0 Nov 20 08:43 Event.bs
-r-xr-xr-x 1 root admin 92992 Nov 20 08:43 Event.bundle
Your help would be greatly appreciated.
regards,
Tom Keller
Thomas J Keller, PhD
MMI Shared Resource Facility
Oregon Health & Science University
Portland, OR 97239
503-494-2442
[EMAIL PROTECTED]