having troubles with cpan. I'm trying to install QtCore4.

It's been a few months since i setup perl with perlbrew, maybe i goofed up. I seemed to build perl fine, but then using cpan, i wanted to install qt4 bindings on lubuntu 13.10. I installed some qt4 stuff through the package manager, then did

$cpan install QtCore4

eventually i get some linker error. I guess maybe the ubuntu libs aren't compiled correctly i really donno. i'm new.

Linking CXX shared library ../../blib/arch/auto/QtCore4/QtCore4.so /usr/bin/ld: /home/anliot/perl5/perlbrew/perls/perl-5.16.0/lib/5.16.0/ +x86_64-linux/CORE/libperl.a(op.o): relocation R_X86_64_32S against `P +L_sv_yes' can not be used when making a shared object; recompile with + -fPIC /home/anliot/perl5/perlbrew/perls/perl-5.16.0/lib/5.16.0/x86_64-linux/ +CORE/libperl.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status make[2]: *** [blib/arch/auto/QtCore4/QtCore4.so] Error 1 make[1]: *** [qtcore/src/CMakeFiles/perlqtcore4.dir/all] Error 2 make: *** [all] Error 2 CBUREL/Qt4-0.99.0.tar.bz2 /usr/bin/make -- NOT OK
full build log at http://paste.debian.net/plain/100535 TIA

In reply to Using cpan to install QtCore4 on perlbrew perl 5.16, but getting link error by kanliot

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.