| Version 23 (modified by run4flat, 17 months ago) (diff) |
|---|
Ubuntu Installation Instructions
Apparently Ubuntu 11.04 also comes with broken wxWidgets or broken Wx. see here too
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.
If you have upgraded to natty(11.04) from mavrick(10.10),
- to install the wx library files you can
$sudo apt-get install libwxbase2.8-0 libwxgtk2.8-0 libwxbase2.8-dev libwxgtk2.8-dev - you can check the library files are installed with
$ dpkg -l |grep -i libwx |awk '{ print $2 }' libwxbase2.8-0 libwxbase2.8-dev libwxgtk2.8-0 libwxgtk2.8-dev
- you will need to reinstall WX.
$sudo cpan .... cpan[1]> force install Wx Going to read '/root/.cpan/Metadata' Database was generated on Wed, 04 May 2011 04:32:25 GMT Running install for module 'Wx' Running make for M/MB/MBARBON/Wx-0.98.tar.gz Fetching with LWP: ....
If you accidentally tried to install with wx-2.6 libs,
then the installation will die at some point during the Wx compilation phase. In that case, 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. (I tried simply force-installing Alien::wxWidgets and it didn't work, for reasons not clear to me.) Here's what you should do:
- install the wx-2.8 libraries through apt-get, as listed above
- install App::pmuninstall via CPAN, i.e.
cpan App::pmuninstall # or if you're more modern: cpanm App::pmuninstall - uninstall Alien::wxWidgets:
pm-uninstall Alien::wxWidgets
- reinstall Wx, as discussed above.
Installation using the Package Manager
Ubuntu 10.10 contains Padre 0.63, Ubuntu 10.04 contains Padre 0.50
sudo apt-get install padre
Because of a packaging error, padre does not work out of the box on Ubuntu 10.10. One possible workaround is to install wx-perl from CPAN:
sudo cpan Alien::wxWidgets sudo cpan Wx
Use apt-cache to find out which plug-ins are available:
apt-cache -n search padre
On Ubuntu 10.04, you can install the following plug-ins:
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
Installation from CPAN
This was checked for Ubuntu 9.04 and 10.10 but it should work for later versions as well.
- Install required development packages
sudo apt-get install libwxgtk2.8-0 libwxgtk2.8-dev libwxbase2.8-dev libwxbase2.8-0 g++
- download and setup local::lib ( http://search.cpan.org/dist/local-lib/ )
# 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
- configure the cpan client setting the prerequisite_policy to 'follow' and to add a CPAN server in the urllist:
- cpan
- conf prerequisites_policy follow
- conf urllist http://cpan.yahoo.com/
- conf save
- cpan App::cpanminus
- cpanm Alien::wxWidgets
- cpanm Wx
- cpanm Padre
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]".
This can be eliminated by setting build_requires_install_policy to 'yes' in the CPAN client:
- conf build_requires_install_policy yes
- conf save
Still Not Working?
Following the instructions on this page did not lead to a successful installation?
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.
