| 1 |
<h1>CPAN Installation Instructions</h1> |
| 2 |
<p> |
| 3 |
Padre is released as a CPAN package. You can download and install it using <tt>cpan</tt>, <tt>cpanm</tt> or CPANPLUS. |
| 4 |
The released versions can be seen here <a href="http://search.cpan.org/dist/Padre/">http://search.cpan.org/dist/Padre/</a> here <a href="http://kobesearch.cpan.org/dist/Padre">http://kobesearch.cpan.org/dist/Padre</a> |
| 5 |
and here <a href="https://metacpan.org/release/Padre">https://metacpan.org/release/Padre</a> depending on your preferences. |
| 6 |
</p> |
| 7 |
<p> |
| 8 |
As Padre has many dependencies probably the easiest is to install the binary distribution |
| 9 |
where available from the vendor (Mandriva, Fedora, Debian, FreeBSD) and then use <tt>cpanm</tt> to upgrade. |
| 10 |
</p> |
| 11 |
<p> |
| 12 |
If this is not possible read on. |
| 13 |
</p> |
| 14 |
<h2>Install from CPAN</h2> |
| 15 |
<h3>Strawberry Perl on Windows</h3> |
| 16 |
<p> |
| 17 |
On Strawberry Perl you should be able to install/upgrade Padre by just opening the "cmd" |
| 18 |
and typing |
| 19 |
</p> |
| 20 |
<pre> |
| 21 |
c:> cpan Padre |
| 22 |
</pre> |
| 23 |
<h3>Active Perl in Windows</h3> |
| 24 |
<p> |
| 25 |
Probably the same as for Strawberry Perl but you might first need to install the C compiler they supply. |
| 26 |
</p> |
| 27 |
<h3>Linux</h3> |
| 28 |
<p> |
| 29 |
On Linux you should probably start by installing from the binary repository of your distribution |
| 30 |
(see below) and then upgrading from CPAN using local::lib. |
| 31 |
</p> |
| 32 |
<p> |
| 33 |
That part starts by installing local::lib using the <a href="https://metacpan.org/module/local::lib#The-bootstrapping-technique">Bootstrapping technique</a> |
| 34 |
and once that's done type |
| 35 |
</p> |
| 36 |
<pre> |
| 37 |
$ cpan Padre |
| 38 |
</pre> |
| 39 |
<h2>Common Problems</h2> |
| 40 |
<h3>Corporate Proxy</h3> |
| 41 |
<p> |
| 42 |
People behind a (corporate) proxy will not be able to access the CPAN servers directly. |
| 43 |
First they need to tell the CPAN client which proxy to use. |
| 44 |
For this, launch the cpan client by typing <strong>cpan</strong> on the command line. |
| 45 |
You should get a cpan> prompt and in there type the following: (obviously replace |
| 46 |
the address of the proxy server with the one you have in your company). |
| 47 |
</p> |
| 48 |
<pre> |
| 49 |
cpan> o conf http_proxy http://proxy.corporate.com:8080 |
| 50 |
cpan> o conf commit |
| 51 |
cpan> q |
| 52 |
</pre> |
| 53 |
<p> |
| 54 |
Once you did this the cpan command should work. |
| 55 |
</p> |
| 56 |
<h3><a href="/wiki/WxWidgets">WxWidgets</a> and <a href="/wiki/WxPerl">WxPerl</a></h3> |
| 57 |
<p> |
| 58 |
The difficult part is sometimes to install some of the prerequisites: |
| 59 |
</p> |
| 60 |
<ul><li>Installing wxWidgets (that <a href="http://search.cpan.org/dist/Alien-wxWidgets/">Alien::wxWidgets</a> tries to solve) |
| 61 |
</li><li>Installing wxPerl (the <a href="http://search.cpan.org/dist/Wx/">Wx</a> distro) from CPAN.</li></ul> |
| 62 |
<p> |
| 63 |
Mattia Barbon did a great job with them but they still may be difficult to install in some cases. |
| 64 |
</p> |
| 65 |
<h2>Platform-specific Instructions</h2> |
| 66 |
<ul><li><a href="/wiki/DownloadDebian#Installation_from_CPAN">Debian</a> |
| 67 |
</li><li><a href="/wiki/DownloadFedora#Installation_from_CPAN">Fedora</a> |
| 68 |
</li><li><a href="/wiki/DownloadFreeBSD#Installation_from_CPAN">FreeBSD</a> |
| 69 |
</li><li><a href="/wiki/DownloadMandriva#Installation_from_CPAN">Mandriva</a> |
| 70 |
</li><li><a href="/wiki/DownloadNetBSD#Installation_from_CPAN">NetBSD</a> |
| 71 |
</li><li><a href="/wiki/DownloadUbuntu#Installation_from_CPAN">Ubuntu</a> |
| 72 |
</li><li><a href="/wiki/DownloadWindows#Installation_from_CPAN">Windows</a></li></ul> |