kanliot has asked for the wisdom of the Perl Monks concerning the following question:

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
  • Comment on Using cpan to install QtCore4 on perlbrew perl 5.16, but getting link error
  • Download Code

Replies are listed 'Best First'.
Re: Using cpan to install QtCore4 on perlbrew perl 5.16, but getting link error
by Anonymous Monk on May 19, 2014 at 07:16 UTC