Difference between revisions of "Perl"

From Chumby Wiki
Jump to: navigation, search
 
Line 1: Line 1:
 +
'''NOTE: Ironforge production chumbys already have Perl installed'''
 +
 
=Setting up ssh for cross compiling=
 
=Setting up ssh for cross compiling=
 
* Copy arm-linux '''scp''' and '''ssh''' binaries to the root of a usb drive and mount it on chumby.
 
* Copy arm-linux '''scp''' and '''ssh''' binaries to the root of a usb drive and mount it on chumby.

Revision as of 11:15, 9 August 2007

NOTE: Ironforge production chumbys already have Perl installed

Setting up ssh for cross compiling

  • Copy arm-linux scp and ssh binaries to the root of a usb drive and mount it on chumby.
  • If one doesn't already exist, create a symbolic link to scp on chumby
# ln -s /mnt/usb/scp /usr/bin/scp

Building

Download

# wget http://www.perl.com/CPAN/src/stable.tar.gz

Configure

  • Run Configure with the following paramters (replace targethost with the IP address of your chumby):
sh ./Configure -des -Dusecrosscompile \
   -Dtargethost=192.168.1.102 \
   -Dtargetdir=/mnt/usb \
   -Dtargetuser=root \
   -Dtargetarch=arm-linux \
   -Dcc=arm-linux-gcc \
   -Dusrinc=/usr/arm-linux/include \
   -Dincpth=/usr/arm-linux/include \
   -Dlibpth=/usr/arm-linux/lib

Compile

  • run make
  • an arm-elf miniperl binary should be created
  • if you strip the binary, miniperl should be around 830K in size
# arm-linux-strip miniperl

Too Lazy?

You can download miniperl already cross-compiled for chumby, here - http://files.chumby.com/languages/perl/miniperl