Hi,

I am trying to use Perl API for retrieving data from Elasticsearch.
I am using Elasticsearch in windows cygwin.

I need help with installing perl api and using it. I tried the following:

*1. Installed cpan in cygwin and tried installing using cpan 
Search::Elasticsearch. I get the following error*:

cpan[3]> install Search::Elasticsearch
Going to read '/home/VILASP/.cpan/Metadata'
  Database was generated on Fri, 26 Dec 2014 11:53:14 GMT
Running install for module 'Search::Elasticsearch'
Running make for D/DR/DRTECH/Search-Elasticsearch-1.16.tar.gz
Checksum for 
/home/VILASP/.cpan/sources/authors/id/D/DR/DRTECH/Search-Elasticsearch-1.16.tar.gz
 
ok
Scanning cache /home/VILASP/.cpan/build for sizes
............................................................................DONE
sh: -d: invalid option
Usage:  sh [GNU long option] [option] ...
        sh [GNU long option] [option] script-file ...
GNU long options:
        --debug
        --debugger
        --dump-po-strings
        --dump-strings
        --help
        --init-file
        --login
        --noediting
        --noprofile
        --norc
        --posix
        --protected
        --rcfile
        --restricted
        --verbose
        --version
        --wordexp
Shell options:
        -irsD or -c command or -O shopt_option          (invocation only)
        -abefhkmnptuvxBCHP or -o option
Uncompressed 
/home/VILASP/.cpan/sources/authors/id/D/DR/DRTECH/Search-Elasticsearch-1.16.tar.gz
 
successfully
Using Tar:/usr/bin/tar xf "Search-Elasticsearch-1.16.tar":
Untarred Search-Elasticsearch-1.16.tar successfully
Package contains both files[Search-Elasticsearch-1.16.tar] and 
directories[Search-Elasticsearch-1.16]; not recognized as a perl package, 
giving up
  Package contains both files[Search-Elasticsearch-1.16.tar] and 
directories[Search-Elasticsearch-1.16]; not recognized as a perl package, 
giving up, won't make
Running make test
  Make had some problems, won't test
Running make install
  Make had some problems, won't install
Could not read metadata file. Falling back to other methods to determine 
prerequisites
Failed during this command:
 DRTECH/Search-Elasticsearch-1.16.tar.gz      : writemakefile NO -- Package 
contains both files[Search-Elasticsearch-1.16.tar] and 
directories[Search-Elasticsearch-1.16]; not recognized as a perl package, 
giving up

*Is there any manual way of installing the perl-api client?*

*2. Installed Elasticsearch-Perl-master as a plugin in elasticsearch. Is it 
correct? What is the use of this Perl-Master?*

*I am struck for few days trying to install the perl client api. Need 
urgent help.*

Thanks,
Vilas

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/d85b321d-9226-4aae-ac70-4e4d4ace827c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to