Showing revision 3

Perl Client on Maemo

Difference between revision 2 and revision 3

Changed:

< {{{curl -k -L http://install.perlbrew.pl | bash}}} -k option is necessary, otherwise it will throw errors about https

to

> {{{
> curl -k -L http://install.perlbrew.pl | bash
> }}}
> -k option is necessary, otherwise it will throw errors about https

Changed:

< {{{perlbrew --notest v5.16}}} tests will run for two hours if you don't disable them. There are many failed tests, but it seems like perl is fully functional anyway.

to

> {{{
> perlbrew --notest v5.16
> }}}
> tests will run for two hours if you don't disable them. There are many failed tests, but it seems like perl is fully functional anyway.

Changed:

< {{{perlbrew list}}} If everything went well, you will see ##perl-5.16.0##

to

> {{{
> perlbrew list
> }}}
> If everything went well, you will see ##perl-5.16.0##

Changed:

< {{{perlbrew switch perl-5.16.0}}}

to

> {{{
> perlbrew switch perl-5.16.0
> }}}

Changed:

< {{{perlbrew install-cpanm}}}

to

> {{{
> perlbrew install-cpanm
> }}}

Changed:

< {{{cpanm --no-wget --verbose Device::SerialPort}}}

to

> {{{
> cpanm --no-wget --verbose Device::SerialPort
> }}}

Changed:

< {{{cpanm --no-wget --verbose Hook::LexWrap}}}

to

> {{{
> cpanm --no-wget --verbose Hook::LexWrap
> }}}

Changed:

< {{{~/perl5/perlbrew/bin/perlbrew}}}

to

> {{{
> ~/
perl5/perlbrew/bin/perlbrew
> }}}

Changed:

< {{{~/perl5/perlbrew/bin/cpanm}}}

to

> {{{
> ~/
perl5/perlbrew/bin/cpanm
> }}}

Changed:

< {{{~/perl5/perlbrew/perls/perl-5.16.0/bin/perl}}}

to

> {{{
> ~/
perl5/perlbrew/perls/perl-5.16.0/bin/perl
> }}}


The biggest problem is that Perl is too outdated (v5.8.3). You should install a newer version by using perlbrew.

Install perlbrew:

sh: 1: pygmentize: not found

curl -k -L http://install.perlbrew.pl | bash

-k option is necessary, otherwise it will throw errors about https

Install perl:

sh: 1: pygmentize: not found

perlbrew --notest v5.16

tests will run for two hours if you don't disable them. There are many failed tests, but it seems like perl is fully functional anyway.

Show installed versions:

sh: 1: pygmentize: not found

perlbrew list

If everything went well, you will see perl-5.16.0

Switch to the newer version:

sh: 1: pygmentize: not found

perlbrew switch perl-5.16.0

Install cpanm:

sh: 1: pygmentize: not found

perlbrew install-cpanm

Install Device::SerialPort

sh: 1: pygmentize: not found

cpanm --no-wget --verbose Device::SerialPort

Install Hook::LexWrap

sh: 1: pygmentize: not found

cpanm --no-wget --verbose Hook::LexWrap

Sometimes you will have to provide full path to some binaries:

perlbrew is located at

sh: 1: pygmentize: not found

~/perl5/perlbrew/bin/perlbrew

cpanm is located at

sh: 1: pygmentize: not found

~/perl5/perlbrew/bin/cpanm

perl v5.16 is located at

sh: 1: pygmentize: not found

~/perl5/perlbrew/perls/perl-5.16.0/bin/perl

However, once you perlbrew switch to your new perl, you wont have to provide full paths.