QNAPedia Community Wiki

Skip to content

Perl 5.8.8 Installation

From QNAPedia

Jump to: navigation, search

This installation is substituted by a series of new QPKG, currently in Beta testing. Please refer to this <a href="http://forum.qnap.com/viewforum.php?f=150&p=39615">QNAP Forum Tread</a>. Follow up any issues in the forum.



Contents

Download and install Perl


Download the pre-compiled Perl CLI (5.8.8) and the required libraries from <a href="ftp://csdread:csdread@ftp.qnap.com/NAS/perl5/perl-5.8.8.tar.gz">here</a> to your /share/Public.
(please note that due to the root filesystem size limitation, the installation path and associated files are not the same as the standard Perl installation.)


Untar the archive and copy all the Perl binaries to /usr/bin



Untar the file archive to /mnt/HDA_ROOT:

# cd /share/Public
# tar -C /mnt/HDA_ROOT -zxvf perl-5.8.8.tar.gz


Next copy all the files under the 'perl' directory which we have just untarred.

# cd /mnt/HDA_ROOT/perl
# cp -af bin/* /usr/bin


Creating symbolic links under /usr/lib pointing to the Perl libraries


# ln -sf /mnt/HDA_ROOT/perl/5.8.8 /usr/lib


# ln -sf /mnt/HDA_ROOT/perl/site_perl /usr/lib


# ln -sf /lib/ld-2.3.4.so /lib/ld.so.1


Preserving your symbolic link to survive on reboot


Refer to the guide on <a href="Autorun.sh">editing the Autorun.sh</a> file which will preserve your changes made above. Add the following line at the bottom of autorun.sh file:

## Perl required symblic link
ln -sf /lib/ld-2.3.4.so /lib/ld.so.1


Test your installation


To test to see if Perl can locate the libararies it needs and run successfully:

# perl -V

you should get something like below:

Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
Platform:
osname=linux, osvers=2.6.21.1-qnap, archname=armv5tejl-linux-thread-multi
uname='linux ts-409-pro 2.6.21.1-qnap #5 wed mar 19 12:46:47 cst 2008 armv5tejl unknown '
config_args='-Dusethreads -Duselargefiles -Dcccdlflags=-fPIC -Dprefix=/mnt/HDA_ROOT/perl -Dman1dir=/mnt/HDA_ROOT/perl/man/man1 -Dman3dir=/mnt/HDA_ROOT/perl/man/man3 -Dman1ext=1 -Dman3ext=3perl -Uusesfio -Uusenm -Duseshrplib -Dlibperl=libperl.so.5.8.8 -Dcc=gcc -Doptimize=-O2 -Dfirstmakefile=GNUmakefile -Dlibs=-ldl -lm -lpthread -lc -lcrypt -Dperllibs=-ldl -lm -lpthread -lc -lcrypt -Dcf_by=QNAPAndy -Dcf_email=andychuo@qnap.com -Dperladmin=andychuo@qnap.com -des -Dusedl -Dlibpth=/mnt/HDA_ROOT/perl/lib_sdk //mnt/HDA_ROOT/perl/lib -Dldflags=-L/mnt/HDA_ROOT/perl/lib_sdk:/mnt/HDA_ROOT/perl/lib -Wl,-rpath,/mnt/HDA_ROOT/perl/lib_sdk:/mnt/HDA_ROOT/perl/lib -Wl,-dynamic-linker,/mnt/HDA_ROOT/perl/lib_sdk/ld.so.1'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include'
ccversion='', gccversion='4.1.1', 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='gcc', ldflags ='-L/mnt/HDA_ROOT/perl/lib_sdk:/mnt/HDA_ROOT/perl/lib -Wl,-rpath,/mnt/HDA_ROOT/perl/lib_sdk:/mnt/HDA_ROOT/perl/lib -Wl,-dynamic-linker,/mnt/HDA_ROOT/perl/lib_sdk/ld.so.1'
libpth=/mnt/HDA_ROOT/perl/lib_sdk //mnt/HDA_ROOT/perl/lib
libs=-ldl -lm -lpthread -lc -lcrypt
perllibs=-ldl -lm -lpthread -lc -lcrypt
libc=/lib/libc-2.3.6.so, so=so, useshrplib=true, libperl=libperl.so.5.8.8
gnulibc_version='2.3.6'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath, thread-multi/CORE'
cccdlflags='-fPIC', lddlflags='-shared -L/mnt/HDA_ROOT/perl/lib_sdk:/mnt/HDA

<p><p><p>Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP THREADS_HAVE_PIDS USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API Built under linux Compiled at Mar 30 2008 03:11:41 @INC: /mnt/HDA_ROOT/perl/lib/5.8.8/armv5tejl-linux-thread-multi /mnt/HDA_ROOT/perl/lib/5.8.8 /mnt/HDA_ROOT/perl/lib/site_perl/5.8.8/armv5tejl-linux-thread-multi /mnt/HDA_ROOT/perl/lib/site_perl/5.8.8 /mnt/HDA_ROOT/perl/lib/site_perl . </p><p><br /> </p> </p> </p>


Personal tools
Language