Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Failed to link while building XS code

by syphilis (Chancellor)
on Jan 06, 2014 at 13:58 UTC ( #1069518=note: print w/ replies, xml ) Need Help??


in reply to Failed to link while building XS code

But the cairo library is out there. I manually run the link command, it runs successful

Take a close look at the output from the ./Build.PL step - mainly checking to see if there's any mention of a problem locating "-lcairo".

I'm wondering whether perl, having not been able to find -lcairo, might then do something to the environment that ensures that the linker won't find it either.
Then, when you run the command manually, it works because you're now running in an environment that perl has not corrupted.

Just a guess ... I'm not all that familiar with Module::Build ... and firmly committed to staying that way.

Cheers,
Rob
  • Comment on Re: Failed to link while building XS code

Replies are listed 'Best First'.
Re^2: Failed to link while building XS code
by llancet (Friar) on Jan 07, 2014 at 01:12 UTC
    Build.PL does not output anything strange. The cairo library is indexed by ldconfig:
    # ldconfig -p | grep cairo.so libcairo.so.2 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libcairo +.so.2 libcairo.so.2 (libc6) => /usr/lib/i386-linux-gnu/libcairo.so.2 libcairo.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libcairo.s +o

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1069518]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2016-07-24 01:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (221 votes). Check out past polls.