The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
<h1 id="UbuntuInstallationInstructions">Ubuntu Installation Instructions</h1>
<p>
Apparently Ubuntu 11.04 also comes with <a  href="https://bugs.launchpad.net/ubuntu/+source/padre/+bug/761782"><span ></span>broken wxWidgets or broken Wx</a>. 
<a  href="http://ubuntuforums.org/showthread.php?t=1745375"><span ></span>see here too</a>
</p>
<p>
Please follow the instructions below to manually install (again) the wx related modules.
Probably the best way is to use local::lib so your installation won't interfere with the system installation.
</p>
<p>
=== If you have upgraded to **natty**(11.04) from mavrick(10.10), 
* to install the wx library files you can
<tt>#!sh
$sudo apt-get install libwxbase2.8-0 libwxgtk2.8-0 libwxbase2.8-dev libwxgtk2.8-dev libgtk2.0-dev
</tt>
* Install <tt>gtk2-engines-pixbuf</tt> to get rid of the annoying warning on Ubuntu 11.10: <tt>Gtk-WARNING **: Unable to locate theme engine in module_path: &quot;pixmap&quot;</tt>
</p>
<blockquote>
<p>
  <tt>
</p>
</blockquote>
<p>
sudo apt-get install gtk2-engines-pixbuf
<tt>
* you can check the library files are installed with
</tt>#!sh
$ dpkg -l |grep -i libwx |awk '{ print $2 }'
libwxbase2.8-0
libwxbase2.8-dev
libwxgtk2.8-0
libwxgtk2.8-dev
</p>
<p>
$ dpkg -l |grep -i libgtk2.0-dev |awk '{ print $2 }'
libgtk2.0-dev
<tt>
* you will need to reinstall WX.
</tt>#!sh
$sudo cpan
....
cpan<a  href="/changeset/1">[1]</a>&gt; force install Wx
Going to read '/root/.cpan/Metadata'
</p>
<blockquote>
<p>
  Database was generated on Wed, 04 May 2011 04:32:25 GMT
</p>
</blockquote>
<p>
Running install for module 'Wx'
Running make for M/MB/MBARBON/Wx-0.98.tar.gz
Fetching with LWP:
....
</p>
<p>
<tt>
</p>
<h2 id="InstallationusingthePackageManager">Installation using the Package Manager</h2>
<p>
Ubuntu 10.10 contains Padre 0.63, Ubuntu 10.04 contains Padre 0.50
</p>
<pre >
sudo apt-get install padre
</pre>
<p>
Because of a packaging error, <a  href="https://bugs.launchpad.net/ubuntu/+source/padre/+bug/485012"><span ></span>padre does not work out of the box on Ubuntu 10.10</a>.
One possible workaround is to install wx-perl from CPAN:
<tt>
sudo cpan Alien::wxWidgets
sudo cpan Wx
</tt>
</p>
<p>
Use <tt>apt-cache</tt> to find out which plug-ins are available:
<tt>
apt-cache -n search padre
</tt>
</p>
<p>
On Ubuntu 10.04, you can install the following plug-ins:
<tt>
sudo apt-get install libpadre-plugin-css-perl libpadre-plugin-html-perl libpadre-plugin-spellcheck-perl libpadre-plugin-xml-perl libpadre-plugin-autoformat-perl libpadre-plugin-vi-perl libpadre-plugin-nopaste-perl
</tt>
</p>
<h2 id="InstallationfromCPAN">Installation from CPAN</h2>
<p>
This was checked for Ubuntu 9.04 and 10.10 but it should work for later versions as well.
</p>
<ul><li>Install required development packages </li></ul>
<pre >
sudo apt-get install libwxgtk2.8-0 libwxgtk2.8-dev libwxbase2.8-dev libwxbase2.8-0 libgtk2.0-dev g++
</pre>
<ul><li>download and setup local::lib ( <a  href="http://search.cpan.org/dist/local-lib/"><span ></span>http://search.cpan.org/dist/local-lib/</a> )</li></ul>
<pre >
# in your $HOME
cd $HOME

perl -v
# This is perl, v5.10.1 (*) built for i686-linux-gnu-thread-multi
# This is called system perl

# Install local::lib into your $HOME
wget http://search.cpan.org/CPAN/authors/id/G/GE/GETTY/local-lib-1.006007.tar.gz
tar xfz local-lib-1.006007.tar.gz
cd local-lib-1.006007/
perl Makefile.PL --bootstrap
make test &amp;&amp; make install
cd $HOME

# Add local::lib to your .bashrc
echo 'eval $(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)' &gt;&gt;~/.bashrc

# Optional step if you do not want to close your terminal
eval $(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)

# Optional: remove local::lib folder
rm -rf local-lib-1.006007

</pre>
<ul><li>configure the cpan client setting the prerequisite_policy to 'follow' and to add a CPAN server in the urllist:
<li><tt>cpan</tt>
</li><li><tt>conf prerequisites_policy follow</tt>
</li><li><tt>conf urllist <a  href="http://cpan.yahoo.com/"><span ></span>http://cpan.yahoo.com/</a></tt>
</li><li><tt>conf save</tt>
<li><tt>cpan App::cpanminus</tt>
</li><li><tt>cpanm Alien::wxWidgets</tt>
</li><li><tt>cpanm Wx</tt>
</li><li><tt>cpanm Padre</tt></li></ul>
<p>
There are certain places where CPAN.pm is still asking for confirmation &quot;is just needed temporarily during building or testing. Do you want to install it permanently (y/n) [yes]&quot;.
</p>
<p>
This can be eliminated by setting build_requires_install_policy  to 'yes' in the CPAN client:
 * <tt>conf build_requires_install_policy  yes</tt>
 * <tt>conf save</tt>
</p>
<p>
=== If you accidentally tried to install with wx-2.6 libs
This can happen if you blindly try to install Padre using cpan without checking for library dependencies. In that case, the installation will die at some point during the Wx compilation phase. Alien::wxWidgets will think that you have v 2.6 (even after you install 2.8), so you must remove it before moving forward with the install. To check if Alien::wxWidgets is incorrect, run this at your command line:
<tt>#!sh
perl -MAlien::wxWidgets -e 'print Alien::wxWidgets-&gt;version, &quot;\n&quot;'
</tt>
If the output says 2.006### then Alien::wxWidgets needs to be fixed. If it says 2.008###, then this is not a problem.
</p>
<p>
Before doing any of the following steps, ensure that you have the wx-2.8 dev libs installed via apt-get, as detailed above. The steps that I have tried to fix this problem, in increasing levels of severity, are as follows. After you try each one, you can test if Alien::wxWidgets is properly configured by running the one-liner shown above and checking that the output says 2.008###.
</p>
<p>
* Force-install Alien::wxWidgets. (This didn't work for me for some reason.)
* Install App::pmuninstall via CPAN and use it to remove Alien::wxWidgets. Then reinstall Alien::wxWidgets.
* Remove the Alien::wxWidgets files by hand, then re-install Alien::wxWidgets from cpan. If you are using local::lib, you will find these in ~/perl5/lib/perl5/Alien and ~/perl5/lib/perl5/i686-linux-gnu-thread-multi/Alien. If you are installing these into your system perl, you will find these under similar folders at /usr/local/lib/perl5/..., I believe.
</p>
<h2 id="StillNotWorking?">Still Not Working?</h2>
<p>
Following the instructions on this page did not lead to a successful installation?
</p>
<p>
<a  href="http://padre.perlide.org/contact.html"><span ></span>Contact us</a>.
</p>
<p>
We will do our best to help you.
By letting us know that something does not work you will help us, too.
When we know about it, we can improve this documentation and Padre itself.
</p>