PDA

View Full Version : Install Chart::Clicker Perl Module



davegee
09-Jan-2013, 08:43
Hello to everyone!

I'm here to share my experience intalling Chart::Clicker module under SLES 10 SP2/SP3

URL: http://search.cpan.org/~gphat/Chart-Clicker-2.83/lib/Chart/Clicker.pm (URL: http://search.cpan.org/~gphat/Chart-Clicker-2.83/lib/Chart/Clicker.pm)

PRINCIPAL ISSUE: Chart::Clicker need lib Cairo >= 1.10 and suse provide version 1.0.2. Solved by compiling Cairo by source

SOLUTION:


yast --install pkgconfig gcc gcc-c++ libpng-devel

wget http://cairographics.org/releases/pixman-0.26.0.tar.gz
tar -xzf pixman-0.26.0.tar.gz
cd pixman-0.26.0/
./configure
make
make install
cd ../

wget http://cairographics.org/releases/cairo-1.12.0.tar.gz
tar -xzf cairo-1.12.0.tar.gz
cd cairo-1.12.0/
./configure --disable-gobject
make
make install

perl -MCPAN -e 'install Attribute::Handlers' 2>> errors
perl -MCPAN -e 'install Params::Validate' 2>> errors
perl -MCPAN -e 'install DateTime::Locale' 2>> errors
perl -MCPAN -e 'install DateTime::TimeZone' 2>> errors
perl -MCPAN -e 'install DateTime' 2>> errors

perl -MCPAN -e 'install Chart::Clicker' 2>>errors


Have fun!

davegee
10-Jan-2013, 10:36
WARNING: If you are using a graphical interface (es. gnome) the above script not work, use this instead



yast --install pkgconfig gcc gcc-c++ libpng-devel fontconfig-devel freetype2-devel

wget http://cairographics.org/releases/pixman-0.26.0.tar.gz
tar -xzf pixman-0.26.0.tar.gz
cd pixman-0.26.0/
./configure
make
make install

reboot

wget http://cairographics.org/releases/cairo-1.12.0.tar.gz
tar -xzf cairo-1.12.0.tar.gz
cd cairo-1.12.0/
./configure --disable-gobject --prefix=/root/cairo-bin/
make
make install

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/root/cairo-bin/lib/pkgconfig/

perl -MCPAN -e 'install Attribute::Handlers' 2>> errors
perl -MCPAN -e 'install Module::Implementation' 2>> errors
perl -MCPAN -e 'install Params::Validate' 2>> errors
perl -MCPAN -e 'install DateTime::Locale' 2>> errors
perl -MCPAN -e 'install DateTime::TimeZone' 2>> errors
perl -MCPAN -e 'install DateTime' 2>> errors

perl -MCPAN -e 'install Chart::Clicker' 2>>errors