# \[IMPORTANT\] Issues using Perl API client installation

**URL:** <https://discuss.elastic.co/t/important-issues-using-perl-api-client-installation/21425>\
**Category:** Elasticsearch\
**Created:** [December 29, 2014, 9:26pm UTC](https://discuss.elastic.co/t/important-issues-using-perl-api-client-installation/21425 "2014-12-29T21:26:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vilas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vilas/32/613_2.png) [@vilas](https://discuss.elastic.co/u/vilas)\
**Post date:** [December 29, 2014, 9:26pm UTC](https://discuss.elastic.co/t/important-issues-using-perl-api-client-installation/21425/1 "2014-12-29T21:26:24Z")

</div>

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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/d85b321d-9226-4aae-ac70-4e4d4ace827c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d85b321d-9226-4aae-ac70-4e4d4ace827c%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [December 29, 2014, 9:51pm UTC](https://discuss.elastic.co/t/important-issues-using-perl-api-client-installation/21425/2 "2014-12-29T21:51:16Z")

</div>

You must set environment variables CC, CPP, CXX to the proper gcc programs  
before ES Perl client build is calling the configure/make.

Jörg

On Mon, Dec 29, 2014 at 10:26 PM, Vilas Reddy [pvilasreddy@gmail.com](mailto:pvilasreddy@gmail.com) wrote:

> 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/d85b321d-9226-4aae-ac70-4e4d4ace827c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d85b321d-9226-4aae-ac70-4e4d4ace827c%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/d85b321d-9226-4aae-ac70-4e4d4ace827c%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/d85b321d-9226-4aae-ac70-4e4d4ace827c%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEDz6mdd1e0JQ0xD-SJ5EeJPE1O%2ByedHMMpkmM%2BpTe7ag%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEDz6mdd1e0JQ0xD-SJ5EeJPE1O%2ByedHMMpkmM%2BpTe7ag%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![vilas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vilas/32/613_2.png) [@vilas](https://discuss.elastic.co/u/vilas)\
**Post date:** [December 29, 2014, 10:25pm UTC](https://discuss.elastic.co/t/important-issues-using-perl-api-client-installation/21425/3 "2014-12-29T22:25:52Z")

</div>

Thanks Jörg for your prompt reply.

Can you please elaborate on how to do this. As i mentioned i am using  
cygwin.

Regards,  
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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a8d16219-beb9-4cdc-9abc-422efbfe7b3a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a8d16219-beb9-4cdc-9abc-422efbfe7b3a%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [December 30, 2014, 1:22pm UTC](https://discuss.elastic.co/t/important-issues-using-perl-api-client-installation/21425/4 "2014-12-30T13:22:36Z")

</div>

This is a Cygwin setup problem. Although off-topic, I recommend to run

cygcheck -s -v -r -h \> cygcheck\_output.txt

and post the result text somewhere so Cygwin experts can examine it.

See also [Cygwin Utilities](https://cygwin.com/cygwin-ug-net/using-utils.html)

Jörg

On Mon, Dec 29, 2014 at 11:25 PM, Vilas Reddy [pvilasreddy@gmail.com](mailto:pvilasreddy@gmail.com) wrote:

> Thanks Jörg for your prompt reply.
> 
> Can you please elaborate on how to do this. As i mentioned i am using  
> cygwin.
> 
> Regards,  
> 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/a8d16219-beb9-4cdc-9abc-422efbfe7b3a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a8d16219-beb9-4cdc-9abc-422efbfe7b3a%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/a8d16219-beb9-4cdc-9abc-422efbfe7b3a%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/a8d16219-beb9-4cdc-9abc-422efbfe7b3a%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE3qAL\_WAfroTRcp1j6zBQAbuFQJGz18hEsPWj-3umdEQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE3qAL_WAfroTRcp1j6zBQAbuFQJGz18hEsPWj-3umdEQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [December 30, 2014, 1:48pm UTC](https://discuss.elastic.co/t/important-issues-using-perl-api-client-installation/21425/5 "2014-12-30T13:48:32Z")

</div>

On Monday, 29 December 2014 22:26:24 UTC+1, Vilas Reddy wrote:

> 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_:

You may find it easier to use Strawberry Perl for windows  
[http://strawberryperl.com/](http://strawberryperl.com/) instead of cygwin

> 

--  
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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/54feaf17-ed01-4147-8d68-fed11e35e6cf%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/54feaf17-ed01-4147-8d68-fed11e35e6cf%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:41am UTC](https://discuss.elastic.co/t/important-issues-using-perl-api-client-installation/21425/6 "2017-07-06T00:41:26Z")

</div>


