Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Can't locate installed module

by arnauldvm (Novice)
on Oct 15, 2018 at 22:28 UTC ( [id://1224078]=perlquestion: print w/replies, xml ) Need Help??

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

Installed Text::Unidecode (with no error message).

Then:

$ perl -e 'use Text::Unidecode' Can't locate Text/Unidecode.pm in @INC (you may need to install the Te +xt::Unidecode module) (@INC contains: ~/perl5/lib/perl5 ~/perl5/lib/p +erl5 /usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl/5.28.0/darwin- +thread-multi-2level /usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl +/5.28.0 /usr/local/Cellar/perl/5.28.0/lib/perl5/5.28.0/darwin-thread- +multi-2level /usr/local/Cellar/perl/5.28.0/lib/perl5/5.28.0 /usr/loca +l/lib/perl5/site_perl/5.28.0/darwin-thread-multi-2level /usr/local/li +b/perl5/site_perl/5.28.0) at -e line 1. BEGIN failed--compilation aborted at -e line 1.

But:

$ ls -lF ~/perl5/lib/perl5/Text total 56 drwxr-xr-x 258 xxx staff 8772 Oct 15 23:02 Unidecode/ -r--r--r-- 1 xxx staff 28162 Nov 26 2016 Unidecode.pm

Tried 3 different installation methods (cpan -i, cpanm, manual install).

(And this module used to work on the same host few years ago. Lot's of system updates since then, though.)

I've read numerous posts on similar topics, but couldn't find any hint to debug this.

Context: MacOS Sierra 10.12.16, perl installed with homebrew

$ uname -a Darwin Drogon.local 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 21 20 +:07:39 PDT 2018; root:xnu-3789.73.14~1/RELEASE_X86_64 x86_64 $ perl -e 'print $];' 5.028000

Thanx in advance!

Replies are listed 'Best First'.
Re: Can't locate installed module
by choroba (Cardinal) on Oct 15, 2018 at 22:37 UTC
    @INC doesn't do tilde expansion. Use $HOME or full path when assigning to PERL5LIB.

    ($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,

      Wow, I missed that.

      It works now.

      Thank you so much!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-03-29 00:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found