X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8fcba3783d9a79bb18a00d339f9b3222f1eccd7f..5f642789f87c1f0cefbb878cbb031c9b71fc7a09:/doc/sdk/perl/index.html.textile.liquid diff --git a/doc/sdk/perl/index.html.textile.liquid b/doc/sdk/perl/index.html.textile.liquid index 448cbb1ede..e28d02011b 100644 --- a/doc/sdk/perl/index.html.textile.liquid +++ b/doc/sdk/perl/index.html.textile.liquid @@ -15,24 +15,46 @@ It should be treated as alpha/experimental. Currently, limitations include: h3. Installation +h4. Option 1: Install from distribution packages + +First, "add the appropriate package repository for your distribution":{{ site.baseurl }}/install/install-manual-prerequisites.html#repos. + +On Debian-based systems: + -
-$ sudo apt-get install libjson-perl libio-socket-ssl-perl libwww-perl libipc-system-simple-perl
-$ git clone https://github.com/curoverse/arvados.git
-$ cd arvados/sdk/perl
-$ perl Makefile.PL
-$ sudo make install
-
+
~$ sudo apt-get install libjson-perl libio-socket-ssl-perl libwww-perl libipc-system-simple-perl libarvados-perl
+
+
+ +On Red Hat-based systems: + + +
~$ sudo yum install perl-ExtUtils-MakeMaker perl-JSON perl-IO-Socket-SSL perl-Crypt-SSLeay perl-WWW-Curl libarvados-perl
+
+
+ +h4. Option 2: Install from source + +First, install dependencies from your distribution. Refer to the package lists above, but don't install @libarvados-perl@. + +Then run the following: + + +
~$ git clone https://github.com/curoverse/arvados.git
+~$ cd arvados/sdk/perl
+~$ perl Makefile.PL
+~$ sudo make install
+
-h4. Test installation +h3. Test installation If the SDK is installed, @perl -MArvados -e ''@ should produce no errors. If your @ARVADOS_API_HOST@ and @ARVADOS_API_TOKEN@ environment variables are set up correctly (see "api-tokens":{{site.baseurl}}/user/reference/api-tokens.html for details), the following test script should work: -
$ perl <<'EOF'
+
~$ perl <<'EOF'
 use Arvados;
 my $arv = Arvados->new('apiVersion' => 'v1');
 my $me = $arv->{'users'}->{'current'}->execute;