Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

I have installed Padre via cpan on my gentoo linux. The installation inclusive test was successful after installing packages wxperl-0.82, Alien-wxWidget-0.34, and other depending cpan modules like PPI, ORLite ...
But I am not able to start the editor. I found following information on cpan.org: "You should be able to just type in padre and get the editor working.". It doesn't work on my box. There is no command padre.
I found that there is a new Padre.pm and Padre directory in /usr/lib/perl5/site_perl/5.8.8.
How do I start Padre? I guess the answer is really simple.

Thanks, Andreas

Replies are listed 'Best First'.
Re: Start Padre on gentoo box
by Corion (Patriarch) on Oct 30, 2008 at 21:41 UTC

    In theory, the padre script gets installed into the same directory as your perl binary, so you should be able to run it by finding the place of Perl via which perl and then use that path:

    $ which perl /opt/perl/bin/perl $ /opt/perl/bin/padre

    But if Perl were in your path, then padre would also be. So do a find / -name 'padre', wait some time, and then hopefully your computer will have found where the padre script lies.

    Alternatively, just copy padre to a file on your machine, make it executable and you have your own, personal padre, provided that the rest of the installation worked.

      Thanks Corion!

      The padre script isn't in my perl binary directory:

      ~ $ which perl /usr/bin/perl ~ $ ls /usr/bin/padre ls: /usr/bin/padre: Datei oder Verzeichnis nicht gefunden

      So I tried to copy the file in my home directory. After executing this script I realized that I have to compile perl with USE flag ithreads. So hopefully it's solved after recompiling perl.

      Thanks again, Andreas