On Mar 21, 2005, at 8:58 PM, Sherm Pendley wrote:
On Mar 21, 2005, at 6:35 PM, Lola Lee wrote:
Unfortunately I'm stuck with the "Open" button when I'm at 5.8.6. It thinks I need to go into the subdirectories within this directory. There's no "Select" button so I can explicitly select /usr/local/bin/lib/perl5/5.8.6 directory.
Out of curiosity, just what kind of directory structure *is* that? You mean to tell me that you installed *all* of Perl - binaries, modules, man pages, everything - under /usr/local/bin? That's... bizarre. Why on Earth did you do that?
Sorry, that came out a lot harsher than I'd intended it to be. :-(
When you build a Perl from source, you specify a "prefix". The default prefix is "/usr/local". Under this prefix, there are several important subdirectories - 'bin' and 'lib' are the ones that are important to Perl. The former is where binaries and scripts such as 'perl' and 'perldoc' are installed. The latter has subdirectories into which core and CPAN modules are installed.
For the directory /usr/local/bin/lib/perl5/5.8.6 to exist at all, you would have needed to specify a prefix of /usr/local/bin when you built your Perl - which is odd enough in itself. With such a prefix, your perl binary would be at "/usr/local/bin/bin/perl". For it to be in the directory you named, you would have had to *also* override that, and told the installation script to install its binaries in a location that would ordinarily only be used for modules.
So anyway - I hope you can see why I describe what you've told me as "bizarre". I can't even begin to imagine why you'd want to configure a Perl that way.
Anyway, to answer your question - just navigate to the directory that contains the "perl" binary, and click "Open".
But, regardless of how your Perl is configured, it's fairly obvious that the "select a Perl" sheet needs quite a bit of work. To be frank, I'm looking at it now and wondering "what the f**k was I thinking???"
It's not at all clear that a directory should be selected, for one thing. For another, choosing a directory and assuming the binary name is "perl" probably isn't the best choice anyway - if you want to choose /usr/local/bin/perl5.8.4, for instance, you're out of luck. A better solution would be to require a file selection, and only allow files that match either "perl" or "perlx.y.z" to be selected. If no file is selected, the "OK" button shouldn't be left active while clicks on it are ignored - instead, it should be grayed out in that situation.
I'll hammer it into better shape for Friday's "beta-2" release.
sherm--
Cocoa programming in Perl: http://camelbones.sourceforge.net Hire me! My resume: http://www.dot-app.org