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

Hello, Recently i start using fedora 22 but now i can not use CPAN. Every time i am using CPAN it gives me Segmentation fault (core dumped) error message. Also, LWP is no longer working.
localhost ~]$ cpan Segmentation fault (core dumped)
I also try to rebuild LWP for there is no response from http and ua-get.
t/local/http.t .......... HTTP Server terminated t/local/http.t .......... Failed 63/63 subtests t/local/protosub.t ...... ok t/net/http-get.t ........ skipped: no net config file t/net/http-post.t ....... skipped: no net config file t/net/http-timeout.t .... skipped: no net config file t/net/mirror.t .......... skipped: no net config file t/net/moved.t ........... skipped: no net config file t/net/proxy.t ........... skipped: no net config file
Also when i try to compile LWP
perl Makefile.PL Checking if your kit is complete... Segmentation fault (core dumped)
Everything is working fine in Fedora 21 but not in fedora 22. Any help? Thanks in advance

Replies are listed 'Best First'.
Re: CPAN problem in F22
by choroba (Cardinal) on Jun 17, 2015 at 17:48 UTC
    Please, use <code>...</code> tags for the log, it's almost unreadable without them.

    Where did you get LWP? You can't use the LWP from an older version of the system with the new one. There should be a package providing it (perl-libwww-perl or similar).

    Update: Also, can you run Perl at all without a segfault?

    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
      I am sorry for the <code> etc. Yes, i can run perl without any problem. But all packages related to CPAN produce segmentation fault. Even after reinstalling perl-libwww-perl, cpan and perl itself it again produces segmentation fault. Still CPAN and most of the packages related to it with produces segmentation fault. Thanks
        For more information, I am using dnf updates and reinstall in fedora 22. Even locally i try to recompile perl-libwww-perl but http.t and ua-get no longer working. Even perl Makefile.PL produces segmentation fault. So this problem is centered only at CPAN.
Re: CPAN problem in F22
by Corion (Patriarch) on Jun 18, 2015 at 13:00 UTC

    You mixed different Perl versions and installed/overwrote C modules from one version of Perl with C modules from another version of Perl. This often happens if you "upgrade" Perl by compiling your own and then overwriting the vendor supplied Perl, or when installing modules using CPAN into the vendor provided Perl instead of using the vendor package manager.

    The best approach to this problem is to reinstall the vendor supplied Perl using the vendor packages and then to compile your own Perl for your own application, where you can then install packages from CPAN into. Use the vendor tools for the vendor Perl and the Perl tools for your own Perl.

      Even after removing all version of perl and reinstalling them from fedora repo. I am still getting CAPN segmentation fault. this is strange.. Some module are working but only those need http like LWP producing seg. fault.

        The only advice I can give you is to not combine CPAN and the vendor Perl. Use the vendor tools for the vendor Perl.

Re: CPAN problem in F22
by BrowserUk (Patriarch) on Jun 17, 2015 at 18:23 UTC

    {groan} how disappointing.

    From the title I thought you were having trouble doing fly-by downloads from a Raptor(*); and was going to suggest it might be something to do with the stealth. :)

    the tail slide at 50 seconds has to be seen to be believed.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
    In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked