Event.dylib issue
[email protected] ("Thomas Keller") Thu, 20 Nov 2008 10:49:57 -0800
| Newsgroups | perl.loop |
|---|---|
| Message-ID | <[email protected]> |
--Apple-Mail-15--208305038
Content-Type: text/plain;
charset=us-ascii;
format=flowed;
delsp=yes
Content-Transfer-Encoding: 7bit
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]
--Apple-Mail-15--208305038
Content-Type: text/html;
charset=us-ascii
Content-Transfer-Encoding: quoted-printable
<html><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space; ">Greetings,<div>I'm new to =
integrating C with Perl as well as the Event module.</div><div>Trying =
the example:</div><div>--------------</div><div><div>use =
strict;</div><div>use Inline with =3D> 'Event';</div><div>use Inline C =
=3D> <<'EOC'; </div><div>void c_callback(pe_event * =
event) </div><div>{ </div><div>printf("Here is the C =
callback!\n"); </div><div>} </div><div>EOC</div><div>Event->time=
r( desc =3D> 'Perl timer with C =
callback.',</div><div> =
interval =3D> =
2,</div><div> =
cb =3D> =
\&c_callback,</div><div> =
=
);</div><div>Event::loop;</div><div>----------------</div></div><div=
>I get the following error:</div><div><div>$ perl =
event_timer.pl </div><div>make: *** No rule to make target =
`/opt/local/lib/perl5/site_perl/5.10.0/darwin-2level/auto/Event/Event.dyli=
b', needed by `subdirs'. Stop.</div><div><br></div><div>A problem =
was encountered while attempting to compile and install your =
Inline</div><div>C code. The command that failed =
was:</div><div> make > out.make =
2>&1</div><div>------------------</div><div><br></div><div>There =
does not seem to be an Event.dylib at the expected =
location:</div><div><div>$ ls -l =
/opt/local/lib/perl5/site_perl/5.10.0/darwin-2level/auto/Event/</div><div>=
total 184</div><div>-r--r--r-- 1 root admin =
0 Nov 20 08:43 Event.bs</div><div>-r-xr-xr-x 1 root =
admin 92992 Nov 20 08:43 =
Event.bundle</div><div><br></div><div><br></div><div>Your help would be =
greatly appreciated.</div><div>regards,</div><div>Tom =
Keller</div></div></div><br><br><div apple-content-edited=3D"true"> =
<span class=3D"Apple-style-span" style=3D"border-collapse: separate; =
border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Verdana; =
font-size: 12px; font-style: normal; font-variant: normal; font-weight: =
normal; letter-spacing: normal; line-height: normal; text-align: auto; =
-khtml-text-decorations-in-effect: none; text-indent: 0px; =
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; =
white-space: normal; widows: 2; word-spacing: 0px; "><div =
style=3D"word-wrap: break-word; -khtml-nbsp-mode: space; =
-khtml-line-break: after-white-space; "><span class=3D"Apple-style-span" =
style=3D"border-collapse: separate; border-spacing: 0px 0px; color: =
rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: =
normal; font-variant: normal; font-weight: normal; letter-spacing: =
normal; line-height: normal; text-align: auto; =
-khtml-text-decorations-in-effect: none; text-indent: 0px; =
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; =
white-space: normal; widows: 2; word-spacing: 0px; "><span =
class=3D"Apple-style-span" style=3D"border-collapse: separate; =
border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; =
font-size: 12px; font-style: normal; font-variant: normal; font-weight: =
normal; letter-spacing: normal; line-height: normal; text-align: auto; =
-khtml-text-decorations-in-effect: none; text-indent: 0px; =
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; =
white-space: normal; widows: 2; word-spacing: 0px; "><span =
class=3D"Apple-style-span" style=3D"border-collapse: separate; =
border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; =
font-size: 12px; font-style: normal; font-variant: normal; font-weight: =
normal; letter-spacing: normal; line-height: normal; text-align: auto; =
-khtml-text-decorations-in-effect: none; text-indent: 0px; =
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; =
white-space: normal; widows: 2; word-spacing: 0px; "><span =
class=3D"Apple-style-span" style=3D"border-collapse: separate; =
border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; =
font-size: 12px; font-style: normal; font-variant: normal; font-weight: =
normal; letter-spacing: normal; line-height: normal; text-align: auto; =
-khtml-text-decorations-in-effect: none; text-indent: 0px; =
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; =
white-space: normal; widows: 2; word-spacing: 0px; "><div =
style=3D"font-family: Helvetica; "><span class=3D"Apple-style-span" =
style=3D"font-family: Helvetica; ">Thomas J Keller, PhD</span></div><div =
style=3D"font-family: Helvetica; "><a =
href=3D"http://www.ohsu.edu/research/core"><font =
class=3D"Apple-style-span" face=3D"Verdana"><span =
class=3D"Apple-style-span" style=3D"color: rgb(0, 0, 238); =
-khtml-text-decorations-in-effect: underline; ">MMI Shared Resource =
Facility</span></font></a></div><div style=3D"font-family: Helvetica; =
"><span class=3D"Apple-style-span" style=3D"font-family: Helvetica; =
">Oregon Health & Science University</span></div><div =
style=3D"font-family: Helvetica; "><span class=3D"Apple-style-span" =
style=3D"font-family: Helvetica; ">Portland, OR 97239</span></div><div =
style=3D"font-family: Helvetica; "><br =
class=3D"khtml-block-placeholder"></div><div style=3D"font-family: =
Helvetica; "><span class=3D"Apple-style-span" style=3D"font-family: =
Helvetica; ">503-494-2442</span></div><div style=3D"font-family: =
Helvetica; "><span class=3D"Apple-style-span" style=3D"font-family: =
Helvetica; "><a =
href=3D"mailto:[email protected]">[email protected]</a></span></div><br =
class=3D"Apple-interchange-newline"></span></span></span></span></div></sp=
an> </div><br></body></html>=
--Apple-Mail-15--208305038--