Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Shouldn't enc2xs always be included as part of Encode?

by BeneSphinx (Sexton)
on Oct 04, 2017 at 23:08 UTC ( [id://1200696]=perlquestion: print w/replies, xml ) Need Help??

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

Given the hierarchical nature of the listing in CPAN, I would think that enc2xs is always included in Encode, and therefore is always included in every Perl distribution.

However, it seems this is not the case. I am deploying a Perl app on Heroku, which to make a long story short means I have an application using System perl on these boxes. The system is RHEL 7. On this system, enc2xs is not found: It isn't in the filesystem as far as I can tell (using find), and the command isn't available from the commandline.

Contrast this with my laptop, where I am running Windows and have Strawberry Perl. On this laptop, enc2xs is a recognized command.

So I guess my question is: Given that enc2xs wasn't included, what do you think the best way of getting it is?

  • Comment on Shouldn't enc2xs always be included as part of Encode?

Replies are listed 'Best First'.
Re: Shouldn't enc2xs always be included as part of Encode?
by choroba (Cardinal) on Oct 05, 2017 at 07:49 UTC
    In RedHat up to 7, core perl is different to core perl anywhere else. See Redhat perl != perl for details. Install the package perl-core to get the full installation.

    There's good news, though. They're going to fix it.

    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
Re: Shouldn't enc2xs always be included as part of Encode?
by hippo (Bishop) on Oct 05, 2017 at 08:25 UTC

    Further to choroba's reply, the specific RHEL7 package for Encode is perl-Encode and for enc2xs is perl-Encode-devel. You can install these individually but if you install perl-core instead you will only get perl-Encode, AIUI.

Re: Shouldn't enc2xs always be included as part of Encode?
by BeneSphinx (Sexton) on Oct 05, 2017 at 00:20 UTC

    In the end, I was able to solve this problem by explicitly installing Encode before processing the other dependencies in the cpanfile. I'm still not sure why enc2xs wasn't present earlier even though Encode was, but I'm glad to have it working.

Re: Shouldn't enc2xs always be included as part of Encode?
by Anonymous Monk on Oct 05, 2017 at 01:40 UTC

    Hi,

    Is this a system perl?

    Encode is core a long time and enc2xs comes with perl since 2002-Mar-05 ... but some operating systems don't distribute perl, they remove core files ... some make them available in a -dev package

A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1200696]
Approved by beech
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (12)
As of 2024-04-16 07:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found