| Version 46 (modified by szabgab, 5 years ago) (diff) |
|---|
Recent release history:
| Padre version | from SVN revision |
| v0.18 | r1247 |
| v0.17 | r1034 |
| v0.16 | r858 |
| v0.15 | r665 |
See also http://svn.perlide.org/padre/trunk/Changes
CPAN
Normally you could just install it as any other Perl module using the CPAN or CPANPLUS shell.
$ cpan cpan> install Padre
You can try that or see further details here:
Binary
Linux in general
There is an experimental executable for Linux that can be downloaded from http://www.perlide.org/download/ it has an initial warning popup but then it seems to work.
Ubuntu
This are the steps to install Ubuntu Hardy packages (originally published in PerlMonks):
- Add these sources in your /etc/apt/sources.list:
deb http://ppa.launchpad.net/alex.muntada/ubuntu hardy main deb-src http://ppa.launchpad.net/alex.muntada/ubuntu hardy main
- Optionally, add package author's GPG signature into APT:
$ wget 'http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0x2DDC42192DF36811' -O- | sudo apt-key add -
- Update APT:
sudo apt-get update
- Install Padre:
sudo apt-get install libpadre-perl
Wx is to be in the Intrepid (8.10 ?) release of Ubuntu: http://packages.ubuntu.com/intrepid/libwx-perl
Mandriva
Mandriva 2009.0 comes with pre-packaged Padre 0.10. New releases of Padre are quickly backported.
Fedora
Fedora 10 is going to include Padre. Currently they have v0.10 packaged.
https://admin.fedoraproject.org/pkgdb/packages/name/perl-Padre
Windows
There is an experimental beta Portable Strawberry Perl with Padre 0.14 in it:
you can download it from here: http://www.perlide.org/download/ Once you unzip the file you can then double click on DIR\perl\bin\portablepadre.bat and it should work.
You might need to make sure the PATH does not contain any other perl installation.
Source code
Padre is released as a CPAN package. You can download and install it using CPAN.pm or CPANPLUS. The released versions can be seen here http://search.cpan.org/dist/Padre/ and here http://kobesearch.cpan.org/dist/Padre.
As Padre has many dependencies probably the easies is, to install the binary distribution where available from the distributions (Mandriva, Fedora) and then use CPAN.pm to upgrade.
If this is not possible read on:
The difficult part will be to install some of the prerequisites:
- Installing wxWidgets (that Alien::wxWidgets tries to solved)
- Installing wxPerl (the Wx distro) from CPAN.
Mattia Barbon did a great job with them but they are still difficult to install. Any help with this would be welcome. See the wxPerl web site and mailing list.
Additional help can be provided by:
- Describing the results you have on various operating systems
- Asking the various downstream distributors to include Padre
- Creating a stand-alone version using PAR
Help in any of those is appreciated. Please post links to any conversation you might have with the distro maintainers so others can follow up.
MS Windows
Strawberry Perl
Download Strawberry Perl from here: http://www.strawberryperl.com/
On Strawberry Perl 5.10, starting from version 5.10.0.3 you can install Padre by starting the CPAN shell and typing
cpan> install Padre
On previous releases of Strawberry Perl 5.10 you can install it following these steps
cpan> look Alien::wxWidgets $ perl Makefile.PL $ dmake $ dmake test $ dmake install $ exit cpan> look Wx $ perl Makefile.PL $ dmake $ dmake test $ dmake install $ exit cpan> install Padre
Once it is installed you can start Padre either by
Start/Run and type in padre
or by creating a shortcut and then clicking on it.
When creating the shortcut use the following as command:
C:\strawberry\perl\bin\wperl.exe C:\strawberry\perl\bin\padre
note we are using wperl here instead of perl in order to avoid the extra command shell window.
Active Perl
For Active Perl there are prebuilt PPM versions of Alien::wxWidgets and Wx (aka. wxPerl) and can be installed from http://wxperl.co.uk/
Actually you should install as many of the dependencies of Padre as you can using ppm. then open the cpan client and
cpan> install Padre
Oren Maurer reported that you might need to force it:
cpan> force install Padre
at some point you might encounter an error like this:
Running install for module 'Padre' Running make for S/SZ/SZABGAB/Padre-0.06.tar.gz CPAN: Digest::SHA loaded ok (v5.45) Fetching with LWP: http://ppm.activestate.com/CPAN/authors/id/S/SZ/SZABGAB/CHECKSUMS Alert: While trying to 'parse' YAML file 'D:\ActiveState\Perl\cpan\FTPstats.yml' with 'YAML::XS' the following error was encountered: Usage: YAML::XS::LibYAML::Load(yaml_str) at D:\ActiveState\Perl\lib/YAML/XS.pm line 70.
The reported solution was this:
[reach the cpan shell:] C:\>cpan cpan> o conf yaml_module '' cpan> o conf commit commit: wrote 'C:\Perl\lib/CPAN/Config.pm' cpan> q
(See: http://groups.google.com/group/de.comp.lang.perl.misc/browse_thread/thread/3a347d02a1ebf464 and http://perl.org.il/pipermail/perl/2008-September/009779.html )
Debian
The next Debian release will have wxPerl in it, albeit with an old version of wxWidgets
Ubuntu
Installation of Alien::wxWidgets fails, because configure can't find gtk.h. Simply do:
apt-get install libwxgtk2.8-0 libwxgtk2.8-dev libwxbase2.8-dev libwxbase2.8-0
and then proceed to "install Wx" with CPAN, and everything should be fine.
Fedora
Fedora has wxPerl since at least FC8
- http://www.redhat.com/archives/fedora-perl-devel-list/2008-July/msg00311.html
- http://www.redhat.com/archives/fedora-perl-devel-list/2008-August/msg00000.html
Fedora 8 has
- wxGTK-2.8.7
- perl-Wx-0.74
- perl-Alien-wxWidgets-0.31
This should be sufficient:
# rpm -ivh perl-Wx perl-Alien-wxWidgets
Fedora 9 has
- wxGTK-2.8.7
- perl-Wx-0.81
- perl-Alien-wxWidgets-0.32
This should be sufficient:
# rpm -ivh perl-Wx perl-Alien-wxWidgets
Mandriva/Mandrake?
Mandriva 2008.1
has these:
- perl-Alien-wxWidgets Version: 0.33-2mdv2008.1
- perl-Wx Version: 0.81-1mdv2008.1
To install Padre follow these:
$ urpmi perl-Alien-wxWidgets $ urpmi perl-Wx $ cpan cpan> install Padre
FreeBSD
http://lists.freebsd.org/mailman/listinfo/freebsd-perl
http://lists.freebsd.org/pipermail/freebsd-perl/2008-August/001928.html
Open Suse
On the wish list: http://en.opensuse.org/Wishlist_Development#P
https://build.opensuse.org/project/show?project=home:jnweiger:perl
Suse
http://www.nntp.perl.org/group/perl.wxperl.users/2008/08/msg6056.html
Gentoo
Has Wx version 0.82
http://www.nntp.perl.org/group/perl.wxperl.users/2008/07/msg5993.html
g-cpan -i Padre
should work but you need a threaded perl. If you have trouble installing please file a bug here or on http://bugs.gentoo.org depending where do you think the problem is.
More detailed instructions:
- Make sure your perl is compiled with USE="ithreads" ( generally in /etc/make.conf ) and emerge perl
- If you don't have g-cpan installed, emerge app-portage/g-cpan
- g-cpan -i Padre
OSX
OS X 10.4 has wxPerl 0.22, 10.5 has a more recent version (0.6x for some x)
see this thread http://www.nntp.perl.org/group/perl.wxperl.users/2008/07/msg5978.html
