maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Perl packages for the n900 (https://talk.maemo.org/showthread.php?t=66068)

extendedping 2010-11-23 15:21

Perl packages for the n900
 
Hi I recently purchased an oreilly book (learning perl) and would like to really dig in. I do see that perl base is on the n900 by default. I also see via apt-cache search perl (see output below) lots of other perl related stuff. So can I just bulk install these things or will a brute force perl attack on my n900 break apps. Basically I want to have perl as though I had installed it on say a fedora or ubuntu workstation, so I can learn as much as I can. So what should I be installing? help a guy trying to learn programming :)

Nokia-N900:~# dpkg -l | grep -i perl
ii liblocale-gettext-perl 1.01-17osso2 Using libc functions for internationalization in Perl
ii libpcre3 6.7-1osso1+r1 Perl 5 Compatible Regular Expression Library - runtime files
ii perl-base 5.8.3-3osso13+0m5 The Pathologically Eclectic Rubbish Lister.


Nokia-N900:~# apt-cache search perl |grep -i perl
perl-base - The Pathologically Eclectic Rubbish Lister.
libpcre3 - Perl 5 Compatible Regular Expression Library - runtime files
libpcrecpp0 - Perl 5 Compatible Regular Expression Library - C++ runtime files
perl - Larry Wall's Practical Extraction and Report Language.
libperl5.8 - Shared Perl library.
perl-modules - Core Perl modules.
liblocale-gettext-perl - Using libc functions for internationalization in Perl
advancedcaching - AGTL, the all-in-one solution for on- and offline geocaching, makes geocaching paperless!
libalien-wxwidgets-perl - Perl module for locating wxWidgets binaries
libnet-ssleay-perl - Perl module for Secure Sockets Layer (SSL)
libnet-libidn-perl - Perl bindings for GNU Libidn
libwx-perl - interface to wxWidgets cross-platform GUI toolkit
libgv-perl - Perl bindings for graphviz
libhtml-parser-perl - A collection of modules that parse HTML text documents
libcompress-raw-zlib-perl - low-level interface to zlib compression library
libcompress-zlib-perl - Perl module for creation and manipulation of gzip files
libfilter-perl - Perl source filters
libsdl-perl - SDL bindings for the Perl language
libdigest-sha1-perl - NIST SHA-1 message digest algorithm
eperl - Embedded Perl 5 Language
libtest-pod-perl - Test::Pod - check for POD errors in files
libtest-differences-perl - Test string and data structure differences in perl
libtest-base-perl - A data driven testing framework for Perl
libtap-parser-perl - transitional dummy package
libtest-harness-perl - Run Perl standard test scripts with statistics
libtest-simple-perl - Basic utilities for writing tests in Perl
libtree-dagnode-perl - Tree::DAG_Node - (super)class for representing nodes in a tree
libtest-pod-coverage-perl - Check for pod coverage in your distribution
libtext-diff-perl - Perform diffs on files and record sets in perl
libarray-compare-perl - Array::Compare - easily compare arrays
libarchive-zip-perl - Module for manipulation of ZIP archives
libalgorithm-diff-perl - a perl library for finding Longest Common Sequences in text
libmodule-pluggable-perl - Automatically provide your module the ability to accept plugins
libmodule-depends-perl - identify the dependencies of a distribution
libwww-mechanize-perl - Automate interaction with websites
libwww-perl - WWW client/server library for Perl (aka LWP)
libhtml-tagset-perl - Data tables pertaining to HTML
libhtml-tree-perl - represent and create HTML syntax trees
libspiffy-perl - Spiffy Perl Interface Framework For You
libcommon-sense-perl - module that implements some sane defaults for Perl programs
libclass-accessor-perl - Automated accessor generator
libclass-accessor-chained-perl - make chained accessors
libfile-chdir-perl - A more sensible way to change directories
libfont-ttf-perl - Perl module for TrueType font hacking
libfile-which-perl - Perl module for searching paths for executable programs
libdevel-symdump-perl - Perl module for inspecting perl's symbol table
libio-socket-ssl-perl - Perl module implementing object oriented interface to SSL sockets
libio-compress-base-perl - Base Class for IO::Compress modules
libio-compress-zlib-perl - Perl interface to zlib
libparent-perl - establish an ISA relationship with base classes at compile time
libpod-simple-perl - Perl framework for parsing files in Pod markup language
libpod-escapes-perl - CPAN's Pod::Escapes -- for resolving Pod E<...> sequences
libpod-coverage-perl - Checks perl module documentation for comprehensiveness
libpar-dist-perl - perl module to create and manipulate PAR distributions
libemail-date-format-perl - Module to generate RFC-2822-valid date strings
libextutils-parsexs-perl - Perl utility to process Perl XS code into C code
libextutils-cbuilder-perl - Compile and link C code for Perl modules
libextutils-xspp-perl - helper module to use Perl XS with C++ code
liberror-perl - Perl module for error/exception handling in an OO-ish way
liburi-perl - Manipulates and accesses URI strings
libxml-regexp-perl - Perl module for regular expressions for XML tokens
libxml-perl - Perl modules for working with XML
libxml-dom-perl - Perl module for building DOM Level 1 compliant doc structures
libio-stringy-perl - Perl modules for IO from scalars and arrays
dh-make-perl - Create Debian packages from perl modules
libappconfig-perl - Perl module for configuration file and command line handling
Nokia-N900:~#

MohammadAG 2010-11-23 15:42

Re: Perl packages for the n900
 
perl and perl-modules should work fine, frozen-bubble uses them :)

lma 2010-11-23 15:44

Re: Perl packages for the n900
 
Quote:

Originally Posted by extendedping (Post 881194)
Hi I recently purchased an oreilly book (learning perl) and would like to really dig in.

Cool :-)

Quote:

Basically I want to have perl as though I had installed it on say a fedora or ubuntu workstation, so I can learn as much as I can. So what should I be installing?
The perl-base package is quite minimai, as its name implies. To start with, install perl-modules which contains the rest of the vanilla Perl distribution and should be enough to get you through the llama book.

jeremiah 2010-11-24 11:07

Re: Perl packages for the n900
 
Hi extendedping,

The Perl version on Maemo, while a little old, is a fully functional and flexible Perl installation. I've written a bit about the Perl environment on Maemo here: http://wiki.maemo.org/Perl (Mostly technical stuff like packages available, etc.)

You can learn a great deal about Perl just using the installation out of the box on Maemo. A lot of the inner workings of Maemo are based on Perl because Maemo is based on Debian and Debian is essentially C libraries held together with Perl glue. :-) I'm taking liberties of course, but there is lots and lots of working perl code that is a fundamental part of Maemo.

Should you need a specific library you can fairly easily take a Debian package and compile it on your N900, or even submit the package with modifications to Maemo itself. Perl packages are generally quite portable.

Following the Llama book should be easy and fun on the N900! :)

sjgadsby 2010-11-24 11:42

Re: Perl packages for the n900
 
Another option, particularly if you eventually find yourself needing to pull in obscure CPAN modules, is to install Easy Debian and use that Perl.

extendedping 2010-11-24 14:02

Re: Perl packages for the n900
 
thanks everyone I installed perl and perl modules and am eble to follow the llama so far.

Captwheeto 2010-11-25 17:39

Re: Perl packages for the n900
 
Don't jump into modules and stuff until you've got a lot of the basics hammered down and you've got bored of them ;) It helps. The llama book is one of the best, perl is a really fun language. Good luck!

extendedping 2010-11-25 18:25

Re: Perl packages for the n900
 
Quote:

Originally Posted by Captwheeto (Post 883110)
Don't jump into modules and stuff until you've got a lot of the basics hammered down and you've got bored of them ;) It helps. The llama book is one of the best, perl is a really fun language. Good luck!

Thanks I do wonder if I should be trying python seems to be a lot more popular then perl these days from what I can tell. btw, is there any reason I would need to use easy debian to download and work with cpan modules as opposed to maemo?

lma 2010-11-25 21:05

Re: Perl packages for the n900
 
Perl and Python are both excellent languages, why not try each and see which one you like (possibly both, they are not mutually exclusive).

Captwheeto 2010-11-26 09:19

Re: Perl packages for the n900
 
Quote:

Originally Posted by extendedping (Post 883155)
Thanks I do wonder if I should be trying python seems to be a lot more popular then perl these days from what I can tell. btw, is there any reason I would need to use easy debian to download and work with cpan modules as opposed to maemo?

Python is a lot more popular these days but as posted above, try both. I think a lot more modules are ready for easy debian so I guess that's why it's recommended.

extendedping 2010-11-30 01:37

Re: Perl packages for the n900
 
Thanks I am going to install easy debian, I thought that the modules installed on any linux not on specific distributions, am I wrong there?

sjgadsby 2010-11-30 01:53

Re: Perl packages for the n900
 
Quote:

Originally Posted by extendedping (Post 883155)
btw, is there any reason I would need to use easy debian to download and work with cpan modules as opposed to maemo?

If you need to install modules that pull in, configure, and compile shared libraries or the like, trying to get gcc, make, and the rest into the root filesystem on the N900 can be a headache. I'm sure it can be done, but I take the easy way out use Easy Debian.

visiting01 2011-06-26 09:10

Perl LibXSLT on N900 Re: Perl packages for the n900
 
I would like to execute perl scripts with following modules:

use XML::LibXML;
use XML::LibXSLT;

Are those available somehow on n900?

Would any of those be in libxml-perl?
I tried to check libxml-perl, but it does not get installed. There are missing dependencies:
# apt-get install libxml-perl
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libxml-perl: Depends: libxml-parser-perl but it is not installable
E: Broken packages

libxml-parser-perl has been mentioned to be missing, on the following page too:
http://talk.maemo.org/showthread.php?t=39937

lma 2011-06-26 16:38

Re: Perl packages for the n900
 
According to http://maemo.org/packages/view/libxml-parser-perl/ it's in the SDK repository. I wouldn't recommend adding that on the device, but you could download and install the .deb manually.

visiting01 2011-06-26 19:28

Re: Perl packages for the n900
 
Quote:

Originally Posted by lma (Post 1039474)
According to http://maemo.org/packages/view/libxml-parser-perl/ it's in the SDK repository. I wouldn't recommend adding that on the device, but you could download and install the .deb manually.

Thanks for the link! I am new to these.
The "SDK" version does not seem to install on the N900 device, if that was meant:
"Fremantle SDK free armel"

N900 rejects the packet. There does not seem to be any packets for the real N900 device? Regarding libxml-parser-perl.
I searched from the mentioned page and with an Internet search engine too.


Following libxml-perl page notificies about the missing dependency, libxml-parser-perl missing (red):
http://maemo.org/packages/package_in.../0.08-1maemo0/
"Warning: This package has missing dependencies!"

lma 2011-06-26 22:01

Re: Perl packages for the n900
 
Quote:

Originally Posted by visiting01 (Post 1039556)
Thanks for the link! I am new to these.
The "SDK" version does not seem to install on the N900 device, if that was meant:
"Fremantle SDK free armel"

N900 rejects the packet.

Does it say why? Anything interesting in the application manager's log?

You could also try setting up the SDK repository temporarily (but make sure you disable it afterwards). The details are:

Code:

deb http://repository.maemo.org/ fremantle/sdk free non-free
Quote:

There does not seem to be any packets for the real N900 device? Regarding libxml-parser-perl.
I searched from the mentioned page and with an Internet search engine too.
Probably not. IIRC extras-devel won't accept packages that already exist in Nokia repositories, so this case is a bit unfortunate. Normally you would file a bug for libxml-parser-perl to be copied to the device repository, but it's probably too late now.

visiting01 2011-06-27 04:31

Re: Perl packages for the n900
 
Quote:

Originally Posted by lma (Post 1039635)
Does it say why? Anything interesting in the application manager's log?

I did not check the logs from any directories. GUI just rejected it with simple words.

I tried to install it from command line. I found some errors from there: There were only some dependency problems. Those were easily solved.
Then libxml-parser-perl and libxml-perl got installed. So, I am happy regarding that now. :)

The commands which were executed now:
# dpkg -i libxml-parser-perl_2.34-4osso1_armel.deb
Selecting previously deselected package libxml-parser-perl.
(Reading database ... 32667 files and directories currently installed.)
Unpacking libxml-parser-perl (from libxml-parser-perl_2.34-4osso1_armel.deb) ...
dpkg: dependency problems prevent configuration of libxml-parser-perl:
libxml-parser-perl depends on liburi-perl; however:
Package liburi-perl is not installed.
libxml-parser-perl depends on libwww-perl; however:
Package libwww-perl is not installed.
dpkg: error processing libxml-parser-perl (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libxml-parser-perl



# apt-get install liburi-perl libwww-perl
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
libwww-perl: Depends: libhtml-parser-perl (>= 3.56) but it is not going to be installed
Depends: libhtml-tree-perl (>= 3.23) but it is not going to be installed
Depends: libhtml-tagset-perl (>= 3.20) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


# apt-get install liburi-perl libwww-perl libhtml-parser-perl libhtml-tree-perl libhtml-tagset-perl
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
libio-socket-ssl-perl
Recommended packages:
libmailtools-perl libhtml-format-perl libcompress-zlib-perl
The following NEW packages will be installed:
libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl liburi-perl libwww-perl
0 upgraded, 5 newly installed, 0 to remove and 24 not upgraded.
1 not fully installed or removed.
Need to get 787kB of archives.
After this operation, 2331kB of additional disk space will be used.
Get:1 http://repository.maemo.org fremantle-1.3/free liburi-perl 1.35.dfsg.1-1maemo2 [86,4kB]
Get:2 http://repository.maemo.org fremantle-1.3/free libhtml-tagset-perl 3.20-2maemo2 [13,7kB]
Get:3 http://repository.maemo.org fremantle-1.3/free libhtml-parser-perl 3.56-11maemo6 [107kB]
Get:4 http://repository.maemo.org fremantle-1.3/free libhtml-tree-perl 3.23-1maemo5.1 [209kB]
Get:5 http://repository.maemo.org fremantle-1.3/free libwww-perl 5.813-1maemo3 [371kB]
Fetched 787kB in 1s (494kB/s)
Selecting previously deselected package liburi-perl.
(Reading database ... 32724 files and directories currently installed.)
Unpacking liburi-perl (from .../liburi-perl_1.35.dfsg.1-1maemo2_all.deb) ...
Selecting previously deselected package libhtml-tagset-perl.
Unpacking libhtml-tagset-perl (from .../libhtml-tagset-perl_3.20-2maemo2_all.deb) ...
Selecting previously deselected package libhtml-parser-perl.
Unpacking libhtml-parser-perl (from .../libhtml-parser-perl_3.56-11maemo6_armel.deb) ...
Selecting previously deselected package libhtml-tree-perl.
Unpacking libhtml-tree-perl (from .../libhtml-tree-perl_3.23-1maemo5.1_all.deb) ...
Selecting previously deselected package libwww-perl.
Unpacking libwww-perl (from .../libwww-perl_5.813-1maemo3_all.deb) ...
Setting up liburi-perl (1.35.dfsg.1-1maemo2) ...
Setting up libhtml-tagset-perl (3.20-2maemo2) ...
Setting up libhtml-parser-perl (3.56-11maemo6) ...
Setting up libhtml-tree-perl (3.23-1maemo5.1) ...
Setting up libwww-perl (5.813-1maemo3) ...
Setting up libxml-parser-perl (2.34-4osso1) ...


# dpkg -i libxml-parser-perl_2.34-4osso1_armel.deb
(Reading database ... 32979 files and directories currently installed.)
Preparing to replace libxml-parser-perl 2.34-4osso1 (using libxml-parser-perl_2.34-4osso1_armel.deb) ...
Unpacking replacement libxml-parser-perl ...
Setting up libxml-parser-perl (2.34-4osso1) ...


# apt-get install libxml-perl
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libxml-perl
... 1 newly installed, 0 to remove and 24 not upgraded.
Need to get 117kB of archives.
After this operation, 426kB of additional disk space will be used.
Get:1 http://repository.maemo.org fremantle-1.3/free libxml-perl 0.08-1maemo1 [117kB]
Fetched 117kB in 0s (248kB/s)
Selecting previously deselected package libxml-perl.
(Reading database ... 32979 files and directories currently installed.)
Unpacking libxml-perl (from .../libxml-perl_0.08-1maemo1_all.deb) ...
Setting up libxml-perl (0.08-1maemo1) ...
I will later check what it will bring. I would like to execute xslts too, in perl.


All times are GMT. The time now is 17:23.

vBulletin® Version 3.8.8