merlinsdemon has asked for the wisdom of the Perl Monks concerning the following question:
Hello Experts,
I'm having the oddest experience. I tried installing:
cpanm Search::Elasticsearch
And it installed...something to that affect...
/Users/my_user/perl5/man/man3/Search::Elasticsearch.3pm
But of course, this file looks odd, at a minimum because I've never noticed a perl module ending in ".3pm" before.My code can't find it:
my_user@merlinsdemon-mbp:~$ ./test.pl
Can't locate Search/Elasticsearch.pm in @INC (you may need to install the Search::Elasticsearch module) (@INC contains: /Users/my_user/perl5/man/man3/ /Library/Perl/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Library/Perl/Updates/5.18.4 /System/Library/Perl/5.18/darwin-thread-multi-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level /System/Library/Perl/Extras/5.18 .) at ./test.pl line 7.
My code looks like this:
#!/usr/bin/perl use strict; use warnings; use lib qw(/Users/my_user/perl5/man/man3/); print "Hello World\n"; use Search::Elasticsearch; # Connect to localhost:9200: my $e = Search::Elasticsearch->new(); $e->index( index => 'my_app', type => 'blog_post', id => 1, body => { title => 'Elasticsearch clients', content => 'Interesting content...', date => '2014-09-24' } ); 1;
What is going on with my installation dependencies?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: cpan installing .3pm files?
by choroba (Cardinal) on Jun 02, 2019 at 20:58 UTC | |
by ikegami (Patriarch) on Jun 02, 2019 at 22:40 UTC | |
by merlinsdemon (Novice) on Jun 02, 2019 at 21:06 UTC | |
|
Re: cpan installing .3pm files?
by dsheroh (Monsignor) on Jun 03, 2019 at 13:10 UTC |