Batland



Home
GeneralNewsPerlProFTPd
Archives

Batland's Code
Batland's Photos

Login
Jul
05
Padre on Mac OS X Leopard

Hi,

Padre is becoming an open source IDE for perl which is under heavy development. It is written in Perl with wxwidgets for the GUI. Therefore, it is (almost) platform independent and, as far as I know, the only free perl IDE still being actively developed (no, I neither count vi nor emacs as an IDE, even though you can use it as such). So I tried to installed Padre on my macbook pro. The Padre download pages have detailed instructions on that topic, but for me they never worked. So I’ll document my way, maybe someone else doesn’t need to spend one complete evening to install an IDE.

First of all we need to upgrade wxwidgets because leopard uses version 2.8.4. and Padre requires at least version 2.8.8. Therefore, download a source tarball from here. After extracting the file, run the following commands after changing into the newly created directory

mkdir osx-build
cd osx-build
../configure --prefix=/usr/ --enable-mediactrl --enable-listctrl --with-opengl
make
make install

Now you’ve got an up-to-date version of wxwidgets. The next step is to install some requirements of Wx and Padre. I had to install the following modules before installing Wx because Wx depends on them, but cpan doesn’t resolve the dependency for some unknown reason. So you install the following three modules first:

Some tests of File::HomeDir failed, therefore I forced the installation in the cpan shell via

force install File::HomeDir

I could not use the newest version of Wx supplied by cpan, because it failed to compile (some XS bugs) and cpan onyl provides the newest version of a module, you need to download an older version, I chose 0.95. Before, installed this version by hand, give cpan a try and even if it fails, all dependencies are installed. Then extract the tar file and change in the newly created directory to run:

perl MakeFile.pl
make
make install

Now I suggest to change you cpan settings so that cpan will stop an installation if an required module does not install.This makes life simpler to track down modules which need to be installed by force. In the last step you need to start cpan witht the wxperl executable which is done by:

wxPerl -MCPAN -eshell

And you can now install Padre. After an successful installation you can start padre via /usr/local/bin/padre. Enjoy it. And here some screenshots of padre 0.66.

Padre on OS X

Padre on OS X

Bye
Dennis

Posted by: DP

Comments Mar
02
christian louboutin wrote:

keep up your work

Add Comment  


« Newer items | Older items »
Impressum | RSS | Powered by NucleusCMS | Ported by VinhBoy | Designed by DemusDesign