On 25/05/14 08:16, Steve Cookson - gmail wrote:
How do you install? Mine is a humongous script that takes all morning to run! I'll try to post a simplified version here in due course.
I promised to post mine.

I've just upgraded to Kubuntu 14.04 lts and I'm still bedding it down. It has perl 5.18, and against all the advice, I'm afraid I still use the system perl.

14.04 drops gnomeprintui, but printing still works, I guess with gtk-print.

I've also got Wx 3.0.0, which looks very nice, but still has a few glitches in it, such as wxStaticBox, which has layout problems.

The script installs many other things like prolog and firefox, so I've simplified it a lot. I hope I didn't miss out anything critical.

Script follows,

Regards

Steve.

#!/bin/bash

cd ~
dpkg --configure -a                     # Restart in case of crash.
apt-get -y update
apt-get -y upgrade

#Development environment.
apt-get -y install make                 # Needed for cpan
apt-get -y install g++
apt-get -y install gcc
apt-get -y install subversion                 # Needed for Alien-wxWidgets

apt-get -y install libgconf2-dev libgtk2.0-dev # Needed as wxMediaCtrl dependency apt-get -y install libexpat1-dev libtiff4-dev libpng12-dev libjpeg-dev libcairo2-dev libxmu-dev libwebkitgtk-dev

#Video enviroment
apt-get -y install libgstreamer0.10-dev # Needed for wxMediaCtrl
apt-get -y install libgstreamer-plugins-base0.10-dev # Needed for wxMediaCtrl

# Printing environment
apt-get -y install cups-pdf  #
apt-get -y install apparmor-utils
aa-complain cupsd

# Perl modules

cpan -i ExtUtils::XSpp         # Needed by wxPerl/Alien install
cpan -i ExtUtils::ParseXS    # Needed by wxPerl Makefile.PL
cpan -i XSLoader          # Needed by wxPerl/Alien install
cpan -i Encode            # Needed for utf-8
cpan -i Test::Pod
cpan -i ExtUtils::MakeMaker
cpan -i Pod::Coverage
cpan -i Test::Pod::Coverage

# Download and install Alien-wxWidgets, which downloads and compiles wxWidgets
# More dependencies.
apt-get -y install libglu1-mesa-dev freeglut3-dev mesa-common-dev libsdl1.2-dev # Install OpenGL
apt-get -y install libwxgtk3.0-dev

#
cd ~
rm -rf Alien-wxWidgets
svn co https://wxperl.svn.sourceforge.net/svnroot/wxperl/Alien-wxWidgets/trunk Alien-wxWidgets
cd Alien-wxWidgets
perl Build.PL \
--wxWidgets-build=1 \
--wxWidgets-graphicscontext \
--wxWidgets-build-opengl=1 \
--wxWidgets-version=3.0.0 \
--wxWidgets-source=tar.bz2 \
--wxWidgets-unicode=1 --wx-unicode='yes' --wxWidgets-build-opengl=1 \
--wxWidgets-extraflags="--enable-graphics_ctx \
                        --disable-compat26 \
                        --enable-mediactrl \
                        --with-libjpeg=builtin \
                        --with-libpng=builtin \
                        --with-regex=builtin \
                        --with-libtiff=builtin \
                        --with-zlib=builtin \
                        --with-expat=builtin \
                        --with-libxpm=builtin \
                        --with-gtk=2\
                        --with-gtkprint "

perl Build  # Download and compile wxWidgets.
perl Build install
ldconfig
cd ..


cpan -i Wx

# Install predecessor for Wx::PdfDocuments
cpan -i Wx::GLCanvas
cpan -i Text::Patch
cpan -if Wx::PdfDocument

# apt-get -y install python-wxglade
# apt-get -y install padre
#Perl environment
cpan -i Wx::Demo # Padre # Need to press enter

Reply via email to