[IMPORTANT] Issues using Perl API client installation

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[IMPORTANT] Issues using Perl API client installation

Vilas Reddy
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 [hidden email].
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 | Threaded
Open this post in threaded view
|

Re: [IMPORTANT] Issues using Perl API client installation

joergprante@gmail.com
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 <[hidden email]> 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 [hidden email].
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.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEDz6mdd1e0JQ0xD-SJ5EeJPE1O%2ByedHMMpkmM%2BpTe7ag%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [IMPORTANT] Issues using Perl API client installation

Vilas Reddy
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/a8d16219-beb9-4cdc-9abc-422efbfe7b3a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [IMPORTANT] Issues using Perl API client installation

joergprante@gmail.com
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.


Jörg

On Mon, Dec 29, 2014 at 11:25 PM, Vilas Reddy <[hidden email]> 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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/a8d16219-beb9-4cdc-9abc-422efbfe7b3a%40googlegroups.com.

For more options, visit 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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE3qAL_WAfroTRcp1j6zBQAbuFQJGz18hEsPWj-3umdEQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [IMPORTANT] Issues using Perl API client installation

Clinton Gormley-3
In reply to this post by Vilas Reddy


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