Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

View Poll Results: how do you feel about perl jam?
mmmmmm it's delicious! 8 61.54%
uhhh, i'm not gay. (sorry, ladies) 5 38.46%
Voters: 13. You may not vote on this poll

Reply
 
Thread Tools Search this Thread
Old 02-17-2012, 08:37 AM   #31
JustAMan
Groupie
JustAMan doesn't litterJustAMan doesn't litter
 
JustAMan's Avatar
 
Posts: 153
Karma: 113
Join Date: Jan 2012
Location: Russia
Device: Kindle Touch
Thanks a lot, I'll give it a try.
JustAMan is offline   Reply With Quote
Old 02-18-2012, 02:53 PM   #32
sjheiss
Connoisseur
sjheiss began at the beginning.
 
Posts: 58
Karma: 26
Join Date: Dec 2011
Device: K3G, KF2
Huzzah! Finally got it to work.

I don't know what I did, except use Telnet on Windows after resetting my Kindle. Other than that, I used the exact same commands I did last time. Happy to finally get it to work!

Last edited by sjheiss; 02-19-2012 at 08:48 PM.
sjheiss is offline   Reply With Quote
Old 02-19-2012, 09:03 PM   #33
sjheiss
Connoisseur
sjheiss began at the beginning.
 
Posts: 58
Karma: 26
Join Date: Dec 2011
Device: K3G, KF2
What would one have to do to get a module like Fcntl to work on the Kindle?

EDIT: Nevermind, got it.

EDIT: No, XSLoader fails for some reason.

Code:
/mnt/us/www/cgi-bin$ ./poll.cgi
[Sun Feb 19 18:28:47 2012] poll.cgi: Can't load '/opt/perl/lib/perl/auto/Fcntl/Fcntl.so' for module Fcntl: /opt/perl/lib/perl/auto/Fcntl/Fcntl.so: cannot open shared object file: No such file or directory at /opt/perl/lib/perl/XSLoader.pm line 70.
[Sun Feb 19 18:28:47 2012] poll.cgi:  at /opt/perl/lib/perl/Fcntl.pm line 215
[Sun Feb 19 18:28:47 2012] poll.cgi: BEGIN failed--compilation aborted at /opt/perl/lib/perl/Fcntl.pm line 216.
[Sun Feb 19 18:28:47 2012] poll.cgi: Compilation failed in require at ./poll.cgi line 4.
[Sun Feb 19 18:28:47 2012] poll.cgi: BEGIN failed--compilation aborted at ./poll.cgi line 4.
I don't need it, but Perl feels less complete without it.

Last edited by sjheiss; 02-19-2012 at 09:33 PM.
sjheiss is offline   Reply With Quote
Old 10-16-2012, 07:49 AM   #34
qlob
Official Lurker
qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.
 
qlob's Avatar
 
Posts: 1,048
Karma: 7096675
Join Date: Apr 2012
Device: Kindle 3.4
@twobob: Didn't you need perl for something?
qlob is offline   Reply With Quote
Old 10-16-2012, 08:05 AM   #35
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021142
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
hi Yep. spent quite a bit of time building up some supporting libraries IIRC too.

I note that much of that work has now been mirrored in the main Buildroot tree, so perl and a few other interpreters build as standard with some supporting extensions.

There is a little bit of make fiddling required to make it perfect on FAT but it's doable.
AFAICR it's all still installed on my 3. More people should be grabbing down buildroot and having a play IMHO. it's fun : )
twobob is offline   Reply With Quote
Old 10-16-2012, 08:08 AM   #36
qlob
Official Lurker
qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.
 
qlob's Avatar
 
Posts: 1,048
Karma: 7096675
Join Date: Apr 2012
Device: Kindle 3.4
Quote:
Originally Posted by twobob View Post
hi Yep. spent quite a bit of time building up some supporting libraries IIRC too.
I note that much of that work has now been mirrored in the main Buildroot tree, so perl and a few other interpreters build as standard with some supporting extensions.
There is a little bit of make fiddling required to make it perfect on FAT but it's doable.
AFAICR it's all still installed on my 3. More people should be grabbing down buildroot and having a play IMHO. it's fun : )
I would, If had time..... I also need to write the k3flasher noobs guide...
qlob is offline   Reply With Quote
Old 11-10-2013, 09:15 PM   #37
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021142
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
I rebuilt this again.

expects to live in /mnt/us/extensions/perl

[root@kindle root]# export PATH=$PATH:/mnt/us/extensions/perl/usr/bin
[root@kindle root]# perl --version

Quote:
This is perl, v5.10.0 built for armv6l-linux

Copyright 1987-2007, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
(probably runs on everything)

[root@kindle root]# perl -V
Quote:
Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
Platform:
osname=linux, osvers=2.6.26-rt-lab126, archname=armv6l-linux
uname='linux dev 3.2.0-35-generic #55-ubuntu smp wed dec 5 17:45:18 utc 2012 armv7l gnulinux '
config_args='-Dprefix=/mnt/us/extensions/perl -Dvendorprefix=/mnt/us/extensions/perl -Dman1dir=/mnt/us/extensions/perl/share/man/man1 -Dman3dir=/mnt/us/extensions/perl/share/man/man3 -Duseshrplib -Dpager=/usr/bin/less'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-fno-strict-aliasing -pipe -I/usr/local/include'
ccversion='', gccversion='4.3.2', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='cc', ldflags ='-Wl,-rpath,/mnt/us/extensions/system/usr/lib -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lc -lcrypt
perllibs=-ldl -lm -lc -lcrypt
libc=/lib/libc-2.7.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.7'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-rpath,/mnt/us/extensions/system/usr/lib -Wl,-E -Wl,-rpath,/mnt/us/extensions/perl/usr/lib/5.10.0/armv6l-linux/CORE'
cccdlflags='-fPIC', lddlflags='-Wl,-rpath,/mnt/us/extensions/system/usr/lib -shared -O2 -L/usr/local/lib'


Characteristics of this binary (from libperl):
Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP
USE_LARGE_FILES USE_PERLIO
Built under linux
Compiled at Nov 10 2013 23:43:28
@INC:
/mnt/us/extensions/perl/usr/lib/5.10.0/armv6l-linux
/mnt/us/extensions/perl/usr/lib/5.10.0
/mnt/us/extensions/perl/usr/lib/site_perl/5.10.0/armv6l-linux
/mnt/us/extensions/perl/usr/lib/site_perl/5.10.0
/mnt/us/extensions/perl/lib/vendor_perl/5.10.0/armv6l-linux
/mnt/us/extensions/perl/lib/vendor_perl/5.10.0
/mnt/us/extensions/perl/lib/vendor_perl
/mnt/us/extensions/perl/addons
.
Attached Files
File Type: zip perl-kindle3-and-beyond-KUAL-DUMMY.zip (11.88 MB, 32 views)

Last edited by twobob; 11-10-2013 at 09:31 PM.
twobob is offline   Reply With Quote
Old 05-13-2014, 12:11 PM   #38
nandushines
Junior Member
nandushines began at the beginning.
 
Posts: 1
Karma: 10
Join Date: May 2014
Device: Kindle 3 keyboard with wifi
Hi twobob,

I tried your perl build on some test scripts which when run complain about missing modules such as autodie.

How can I add missing modules?

Maybe I need to build them. Can you give me some pointers to set up a compilation chain?

Thanks!
nandushines is offline   Reply With Quote
Old 05-13-2014, 12:46 PM   #39
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,444
Karma: 5840130
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by nandushines View Post
Hi twobob,

I tried your perl build on some test scripts which when run complain about missing modules such as autodie.

How can I add missing modules?

Maybe I need to build them. Can you give me some pointers to set up a compilation chain?

Thanks!
twobob has not been around for awhile.

But since it is a complete Perl system install, I assume just using the Perl CPAN repo should do the trick -
Perl will detect and compile anything that needs compiling.

I.E: The same way you add modules to any other Perl installation.
knc1 is offline   Reply With Quote
Reply

Tags
fbdev, kindle tools

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl and Regex Alexander Turcic Lounge 3 01-25-2011 07:48 PM
Any good Perl scripters out there? Goshzilla Workshop 28 04-09-2010 02:55 PM
perl for the DR800/DR1000? Mr. X iRex 1 03-16-2010 07:47 AM
Perl processing alexxxm Sony Reader 3 11-26-2007 06:13 AM
Any perl or python gurus? jbenny Workshop 0 11-23-2007 03:27 PM


All times are GMT -4. The time now is 08:06 PM.


MobileRead.com is a privately owned, operated and funded community.