Text-Trac
view release on metacpan or search on metacpan
t/expected/padre_download_ubuntu.html view on Meta::CPAN
$sudo cpan
....
cpan<a class="changeset" href="/changeset/1">[1]</a>> 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 class="wiki">
sudo apt-get install padre
</pre>
<p>
Because of a packaging error, <a class="ext-link" href="https://bugs.launchpad.net/ubuntu/+source/padre/+bug/485012"><span class="icon"></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 class="wiki">
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 class="ext-link" href="http://search.cpan.org/dist/local-lib/"><span class="icon"></span>http://search.cpan.org/dist/local-lib/</a> )</li></ul>
<pre class="wiki">
# 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 && make install
cd $HOME
# Add local::lib to your .bashrc
echo 'eval $(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)' >>~/.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 class="ext-link" href="http://cpan.yahoo.com/"><span class="icon"></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 "is just needed temporarily during building or testing. Do you want to install it permanently (y/n) [yes]".
</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 aft...
<tt>#!sh
perl -MAlien::wxWidgets -e 'print Alien::wxWidgets->version, "\n"'
</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...
</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 ...
</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 class="ext-link" href="http://padre.perlide.org/contact.html"><span class="icon"></span>Contact us</a>.
</p>
( run in 0.427 second using v1.01-cache-2.11-cpan-d7f47b0818f )