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

Dear mongers!

have troubles with running h2xs in mageia's terminal. just installed mageia 4 and use Gnome as GUI. i entered the console, but even under root it doesnt want to somehow react even on my

h2xs -h

it reports the "h2xs - command wasnt found" how can i solve this? plz, help, just messed up, how can it happen when with perl -v i see installed Perl 5.18.1 and no h2xs commands available in shell?

Replies are listed 'Best First'.
Re: h2xs in mageia
by Anonymous Monk on Jul 16, 2014 at 01:18 UTC

    how can it happen when with perl -v i see installed Perl 5.18.1 and no h2xs commands available in shell?

    Either h2xs is not in your $PATH or its not installed

    Some linux distros still call it "perl" after they remove lots of files (strip it down) that ship with perl

    They may have an option to install the missing stuff (??? sudo apt-get install libperl-dev ???)

    You can always install a perl in your ~/home, sh Configure -Dprefix=~/p-5.8.1/ .... or install a Portable aka relocatable perl like http://www.citrusperl.com/

      mageia is mandriva's fork. there is no such thing as

      sudo apt-get install

      =)

      That is the thing I've got on Mageia's forum:

      $ urpmf h2xs perl:/usr/share/man/man1/h2xs.1.xz perl-devel:/usr/bin/h2xs
      You need to install perl-devel

      I haven't tried this due to immediate need in h2xs and replaced Mageia 4 by Ubuntu 14.04

      But hope to come back to mageia soon - i appreciate it, and if this hack works it will be just wonderful

      If the real problem is the system perl is effectively broken, I STRONGLY recommend perlbrew.