Re: CPAN modules on Leopard

2008-02-11 Thread Timothy Bailey
Just to post a resolution...  I manually downloaded the 
Class::MethodMaker module from CPAN, and manually installed it. 
Oddly enough, then everything worked fine.


So, I guess the moral of the story is... if the CPAN interface 
doesn't install things correctly, try doing it manually; that may 
work.


--
   Tim Bailey   |\/  Of all tyrannies, a tyranny exercised for the
[EMAIL PROTECTED]|\/  good of its victims may be the most oppressive.
   [EMAIL PROTECTED]   | It may be better to live under robber barons
 http://www.moonrise.org than under omnipotent moral busybodies.
--'--,--@   The robber baron's cruelty may sometimes sleep,
   his cupidity may at some point be satiated;
  but those who torment us for our own good will torment us without end,
 for they do so with the approval of their own conscience.
 -- C.S. Lewis


Re: CPAN modules on Leopard

2008-02-06 Thread Timothy Bailey

At 8:34 AM -0800 2/5/08, John Baldwin wrote:
That's very strange. I'm running on a Macbook. I just ran the make 
and test on Class::MethodMaker within cpan and all tests passed (2 
subtests skipped).


I'd try cleaning out your CPAN directory to see if that helps.


I assume that by my CPAN directory, you mean:

/Users/timothybailey/.cpan

I cleaned it out entirely, and tried doing some installs, but I am 
still getting errors - the same as before with running my test 
scripts.


--
   Tim Bailey   |\/  Of all tyrannies, a tyranny exercised for the
[EMAIL PROTECTED]|\/  good of its victims may be the most oppressive.
   [EMAIL PROTECTED]   | It may be better to live under robber barons
 http://www.moonrise.org than under omnipotent moral busybodies.
--'--,--@   The robber baron's cruelty may sometimes sleep,
   his cupidity may at some point be satiated;
  but those who torment us for our own good will torment us without end,
 for they do so with the approval of their own conscience.
 -- C.S. Lewis


Re: CPAN modules on Leopard

2008-02-05 Thread Timothy Bailey

At 10:38 PM -0800 2/3/08, John Baldwin wrote:
My guess is a dependency wasn't set up right. Try installing the 
module it's complaining about:


http://search.cpan.org/~schwigon/Class-MethodMaker/lib/Class/MethodMaker.pm

And see if Term::ProgressBar installs properly then.


I've tried installing that as well, but it complains that it wasn't 
in the path either.  (Seems somewhat recursive...)  After forcing the 
install, I still get the same error (MethodMaker not in path) when 
running my test program or trying to install ProgressBar.



cpan[1] install 
Class::MethodMaker  
CPAN: Storable loaded ok (v2.15)

Going to read /Users/timothybailey/.cpan/Metadata
  Database was generated on Mon, 04 Feb 2008 23:30:56 GMT
CPAN: YAML loaded ok (v0.66)
Going to read /Users/timothybailey/.cpan/build/
DONE
Found 2 old builds, restored the state of 2
Running install for module 'Class::MethodMaker'
Running Build for S/SC/SCHWIGON/class-methodmaker/Class-MethodMaker-2.10.tar.gz
  Has already been unwrapped into directory 
/Users/timothybailey/.cpan/build/Class-MethodMaker-2.10-eW3hgm

  Has already been made
Running Build test
Use of uninitialized value in concatenation (.) or string at 
/Library/Perl/5.8.8/Module/Build/Base.pm line 2237.
Use of uninitialized value in concatenation (.) or string at 
/Library/Perl/5.8.8/Module/Build/Base.pm line 2368.
Use of uninitialized value in concatenation (.) or string at 
/Library/Perl/5.8.8/Module/Build/Base.pm line 2374.
Use of uninitialized value in concatenation (.) or string at 
/Library/Perl/5.8.8/Module/Build/Base.pm line 2237.
Use of uninitialized value in concatenation (.) or string at 
/Library/Perl/5.8.8/Module/Build/Base.pm line 2368.
Use of uninitialized value in concatenation (.) or string at 
/Library/Perl/5.8.8/Module/Build/Base.pm line 2374.
t/0-signatureok  
t/array..ok  
t/basic..ok  
t/diffclass..ok
t/hash...ok  
t/newok
t/redefine-warnings..ok  
t/scalar.ok  
t/v1_abstractok  
t/v1_boolean.Can't locate Class/MethodMaker.pm in 
@INC (@INC contains: 
/Users/timothybailey/.cpan/build/Class-MethodMaker-2.10-eW3hgm/blib/lib 
/Users/timothybailey/.cpan/build/Class-MethodMaker-2.10-eW3hgm/blib/arch 
/Users/timothybailey/.cpan/build/Class-MethodMaker-2.10-eW3hgm/_build/lib 
/System/Library/Perl/5.8.8/darwin-thread-multi-2level 
/System/Library/Perl/5.8.8 
/Library/Perl/5.8.8/darwin-thread-multi-2level /Library/Perl/5.8.8 
/Library/Perl /Network/Library/Perl/5.8.8/darwin-thread-multi-2level 
/Network/Library/Perl/5.8.8 /Network/Library/Perl 
/System/Library/Perl/Extras/5.8.8/darwin-thread-multi-2level 
/System/Library/Perl/Extras/5.8.8 /Library/Perl/5.8.6 
/Library/Perl/5.8.1 .) at t/v1_boolean.t line 7.

BEGIN failed--compilation aborted at t/v1_boolean.t line 7.
t/v1_boolean. Dubious, test returned 2 (wstat 512, 0x200)
 No subtests run


... and so on ...


--
   Tim Bailey   |\/  Of all tyrannies, a tyranny exercised for the
[EMAIL PROTECTED]|\/  good of its victims may be the most oppressive.
   [EMAIL PROTECTED]   | It may be better to live under robber barons
 http://www.moonrise.org than under omnipotent moral busybodies.
--'--,--@   The robber baron's cruelty may sometimes sleep,
   his cupidity may at some point be satiated;
  but those who torment us for our own good will torment us without end,
 for they do so with the approval of their own conscience.
 -- C.S. Lewis


CPAN modules on Leopard

2008-02-03 Thread Timothy Bailey
I've just bought a new Mac with Leopard preinstalled, and am getting 
it set up, including my Perl programs.  (I've actually skipped Tiger 
entirely; the old computer is on Panther.)  They depend on a number 
of CPAN modules, and I am having trouble getting the modules 
installed.  I've installed the Developer Tools, updated CPAN, and it 
sort of installed Term::ProgressBar (the first module one I tried). 
However, it's giving me some complaints about being unable to find 
Class/MethodMaker.pm both when I try installs in CPAN and when I try 
to run my test programs.  Below is an excerpt.  Does anyone have any 
guidance?  I'm not finding anything useful on the Web.  Thanks your 
your help.



cpan[4] force install Term::ProgressBar
Running install for module 'Term::ProgressBar'
Running Build for F/FL/FLUFFY/Term-ProgressBar-2.09.tar.gz
  Has already been unwrapped into directory 
/Users/timothybailey/.cpan/build/Term-ProgressBar-2.09-l4oWzH

  Has already been made
Running Build test
t/0-signature..ok
t/compat...Can't locate Class/MethodMaker.pm in @INC (@INC 
contains: 
/Users/timothybailey/.cpan/build/Term-ProgressBar-2.09-l4oWzH/blib/lib 
/Users/timothybailey/.cpan/build/Term-ProgressBar-2.09-l4oWzH/blib/arch 
/System/Library/Perl/5.8.8/darwin-thread-multi-2level 
/System/Library/Perl/5.8.8 
/Library/Perl/5.8.8/darwin-thread-multi-2level /Library/Perl/5.8.8 
/Library/Perl /Network/Library/Perl/5.8.8/darwin-thread-multi-2level 
/Network/Library/Perl/5.8.8 /Network/Library/Perl 
/System/Library/Perl/Extras/5.8.8/darwin-thread-multi-2level 
/System/Library/Perl/Extras/5.8.8 /Library/Perl/5.8.6 
/Library/Perl/5.8.1 .) at 
/Users/timothybailey/.cpan/build/Term-ProgressBar-2.09-l4oWzH/blib/lib/Term/ProgressBar.pm 
line 195.
BEGIN failed--compilation aborted at 
/Users/timothybailey/.cpan/build/Term-ProgressBar-2.09-l4oWzH/blib/lib/Term/ProgressBar.pm 
line 195.

Compilation failed in require at t/compat.t line 73.
BEGIN failed--compilation aborted at t/compat.t line 73.
t/compat... Dubious, test returned 2 (wstat 512, 0x200)
 Failed 5/5 subtests


... and so on ...



--
   Tim Bailey   |\/  Of all tyrannies, a tyranny exercised for the
[EMAIL PROTECTED]|\/  good of its victims may be the most oppressive.
   [EMAIL PROTECTED]   | It may be better to live under robber barons
 http://www.moonrise.org than under omnipotent moral busybodies.
--'--,--@   The robber baron's cruelty may sometimes sleep,
   his cupidity may at some point be satiated;
  but those who torment us for our own good will torment us without end,
 for they do so with the approval of their own conscience.
 -- C.S. Lewis


Re: CPAN Question

2004-06-06 Thread Timothy Bailey
On Sat, 05 Jun 2004 14:15:11 -0400, someone going by the name of 
Sherm Pendley [EMAIL PROTECTED] stopped listening to the Beatles 
long enough to say:

On Jun 4, 2004, at 11:40 PM, Timothy Bailey wrote:
To provide closure on the issue, I did install 1.76 (replaced 
/System/Library/Perl/CPAN.pm and the /System/Library/Perl/CPAN 
folder with the corresponding files out of the archive)
Doubleplusungood. That is *not* the correct way to install Perl 
modules. Nor is that the procedure outlined in *any* of the relevant 
documentation, or in any book I'm aware of. What's more, it is 
incomplete - there is more to the CPAN module than the single 
CPAN.pm file, not to mention the fact that you copied it into the 
wrong location for a user-installed module.

In a nutshell, you should have unpacked the archive, and then run 
the following commands:

perl Makefile.PL
make
make test
sudo make install
Complete instructions are in 'perldoc perlmodinstall'. Please, read 
and follow the instructions - and keep in mind that you are working 
with vanilla Perl on UNIX, *not* MacPerl on MacOS.
Fair enough, however I will note that CPAN 1.76 =has= no install 
instructions (for itself, that is) in it.  Nor is there such on 
CPAN.org, whose install instructions in general seem to be type 
'install modulename' in CPAN, which of course does not work in this 
circumstance, as we have discussed.  If I would have found the 
instructions, I would have used them.  It's entirely possible I 
missed them on CPAN.org, but I looked at all of the pages I could 
find related to the CPAN 1.76 version, and I didn't see anything 
relevant.

http://search.cpan.org/~andk/CPAN-1.76/lib/CPAN.pm
OK, technically, I did find this page:
http://www.cpan.org/modules/INSTALL.html
I unfortunately had to decide to ignore this, since the whole make 
sequence was =not= working for me; I had tried to run some manual 
installs of modules I had downloaded with the old version of CPAN, 
and the perl Makefile.PL command was failing.  (The copious errors 
are about missing semicolons and operators.)  I deduce now that it 
may be something in the way CPAN.pm downloads modules, since while 
perl Makefile.PL is still failing for those modules in the ~/.cpan 
directory, it is working for the CPAN.pm I downloaded manually.

So, since the documentation was not helping, I had to improvise with 
replacing the few files that seemed to correspond.

The main reason I didn't check perlmodinstall is I didn't think of 
it; I would have thought that CPAN.org would give that information. 
In any case, now that I look at it, I see that perlmodinstall is 
subtitled Perl modules: how to install from CPAN, which is of 
course not relevant, since I'm not using CPAN to install something, 
I'm doing it manually.  Of course, it doesn't seem to actually give 
information about installing CPAN modules specifically (that is, 
using the CPAN module).  Since it gives information about installing 
generic modules (like the second URL above), it ironically turns out 
to be relevant.

Why is /System/Library/Perl not the right place for CPAN 1.76?  It 
apparently is the right place for CPAN 1.52.  Did Apple put it in the 
wrong place?  (Yes, I'm technically a user installing 1.76, but Apple 
isn't the purveyor of Perl either.  They're sort of a user as well.) 
I would still need to get the old version out of there, right?

I'll put the old version back in and try this the right way when I 
get a chance later this week.

(As in painfully obvious, while I =have= programmed Perl under UNIX 
before (a while back), I have not had to install anything under UNIX. 
It's certainly a new experience.)

--
   Tim Bailey   |\/  Of all tyrannies, a tyranny exercised for the
[EMAIL PROTECTED]|\/  good of its victims may be the most oppressive.
   [EMAIL PROTECTED]   | It may be better to live under robber barons
 http://www.moonrise.org than under omnipotent moral busybodies.
--'--,--@   The robber baron's cruelty may sometimes sleep,
   his cupidity may at some point be satiated;
  but those who torment us for our own good will torment us without end,
 for they do so with the approval of their own conscience.
 -- C.S. Lewis


Re: CPAN Question

2004-06-04 Thread Timothy Bailey
On Sun, 30 May 2004 09:07:24 +0100, someone going by the name of Phil 
Dobbin [EMAIL PROTECTED] scribbled:

The CPAN you need is v.1.76. It's the one I use on 10.2.8 and it 
behaves itself as you'd like :-)
To provide closure on the issue, I did install 1.76 (replaced 
/System/Library/Perl/CPAN.pm and the /System/Library/Perl/CPAN folder 
with the corresponding files out of the archive), and I was able to 
install modules using CPAN.  I still need to modify my scripts so 
that they deal with the differences between Macintosh and UNIX, but 
otherwise, the ones I have tested work as they should.  Thanks for 
all your help.

--
   Tim Bailey   |\/  Of all tyrannies, a tyranny exercised for the
[EMAIL PROTECTED]|\/  good of its victims may be the most oppressive.
   [EMAIL PROTECTED]   | It may be better to live under robber barons
 http://www.moonrise.org than under omnipotent moral busybodies.
--'--,--@   The robber baron's cruelty may sometimes sleep,
   his cupidity may at some point be satiated;
  but those who torment us for our own good will torment us without end,
 for they do so with the approval of their own conscience.
 -- C.S. Lewis


Re: CPAN Question

2004-05-29 Thread Timothy Bailey
On Thu, 27 May 2004 20:24:28 -0700, someone going by the name of 
Bruce Van Allen [EMAIL PROTECTED] spoke:

You can also download it from Apple. You have to join as a developer,
but that's no big deal. Then just make sure you get the Developer Tools
appropriate for your version of OS X.
I downloaded the December 2002 version, and installed it. I am still 
getting make errors - it's returning a bad status, despite reboots 
and a second install attempt of the tools.

(Trying install Bundle::libnet, among other things, attempted an 
install of Perl 5.8.4 - I'm not certain if it was successful, but I 
have tried it several times, primarily using the defaults.)

Any other ideas?  Do I blank out the ~/.cpan directory?  How do I 
determine that the Developer Tools took?  The errors seem to be 
slightly different now, but I'm not certain of the specifics.

--
   Tim Bailey   |\/  Of all tyrannies, a tyranny exercised for the
[EMAIL PROTECTED]|\/  good of its victims may be the most oppressive.
   [EMAIL PROTECTED]   | It may be better to live under robber barons
 http://www.moonrise.org than under omnipotent moral busybodies.
--'--,--@   The robber baron's cruelty may sometimes sleep,
   his cupidity may at some point be satiated;
  but those who torment us for our own good will torment us without end,
 for they do so with the approval of their own conscience.
 -- C.S. Lewis


CPAN Question

2004-05-27 Thread Timothy Bailey
I've been playing around with CPAN, to get some modules installed. 
Unfortunately, something seems to be not working.  Perhaps it was 
because I tried to install LWP before its dependencies.  Or it could 
be that the CPAN update failed.  But anyway, the make section is 
failing.  Any ideas how I can fix it?

Here is an excerpt:
Error: Unable to locate installed Perl libraries or Perl source code.
It is recommended that you install perl in a standard location before
building extensions. Some precompiled versions of perl do not contain
these header files, so you cannot build extensions. In such a case,
please build and install your perl from a fresh perl distribution. It
usually solves this kind of problem.
(You get this message, because MakeMaker could not find 
/System/Library/Perl/darwin/CORE/perl.h)
That particular file does not seem to exist.  So maybe there's some 
setting I need to change.

And make returns status 512 often.  Whatever that means. ;)
--
   Tim Bailey   |\/  Of all tyrannies, a tyranny exercised for the
[EMAIL PROTECTED]|\/  good of its victims may be the most oppressive.
   [EMAIL PROTECTED]   | It may be better to live under robber barons
 http://www.moonrise.org than under omnipotent moral busybodies.
--'--,--@   The robber baron's cruelty may sometimes sleep,
   his cupidity may at some point be satiated;
  but those who torment us for our own good will torment us without end,
 for they do so with the approval of their own conscience.
 -- C.S. Lewis


Re: CPAN Question

2004-05-27 Thread Timothy Bailey
On Fri, 28 May 2004 12:12:44 +1000, someone going by the name of Rick 
Measham [EMAIL PROTECTED] typed:

You're missing the perl headers. These are installed when you 
install the developers tools (which came with your OS or are 
available freely from Apple's website)

I can't remember which package in particular you need, if you can't 
work it out and don't want to just install everything off the disk, 
I'm sure someone else will chip in shortly with exactly which 
package it is.
Hmm, I did buy the computer used, and reinstalled the OS that came 
with it (10.2, two CDs), and I thought I had installed everything off 
of them.  (Of course, this =is= my first experience with OSX.)  Is 
there a third CD I should have gotten with Jaguar?

--
   Tim Bailey   |\/  Of all tyrannies, a tyranny exercised for the
[EMAIL PROTECTED]|\/  good of its victims may be the most oppressive.
   [EMAIL PROTECTED]   | It may be better to live under robber barons
 http://www.moonrise.org than under omnipotent moral busybodies.
--'--,--@   The robber baron's cruelty may sometimes sleep,
   his cupidity may at some point be satiated;
  but those who torment us for our own good will torment us without end,
 for they do so with the approval of their own conscience.
 -- C.S. Lewis


Re: Basic question

2004-05-23 Thread Timothy Bailey
On Sat, 22 May 2004 12:50:47 -0600, someone going by the name of Doug 
McNutt [EMAIL PROTECTED] spake in tongues thusly:

You do have the execute bit set don't you?
Oh, yeah, I know about the permissions.  That's fine.  It turned out 
to be the ./ at the front of the line.  . must have been part of 
the path for the previous UNIX boxes I was working on.

Thanks for all your help.
--
   Tim Bailey   |\/  Of all tyrannies, a tyranny exercised for the
[EMAIL PROTECTED]|\/  good of its victims may be the most oppressive.
   [EMAIL PROTECTED]   | It may be better to live under robber barons
 http://www.moonrise.org than under omnipotent moral busybodies.
--'--,--@   The robber baron's cruelty may sometimes sleep,
   his cupidity may at some point be satiated;
  but those who torment us for our own good will torment us without end,
 for they do so with the approval of their own conscience.
 -- C.S. Lewis


Basic question

2004-05-22 Thread Timothy Bailey
I recently got a new(er) computer, and I did a fresh install of 
Jaguar and Perl, etc. on it.  Unfortunately, I'm having a very basic 
problem, and I'm not finding
guidance online for it.

Now, I have used MacPerl extensively, and have used Perl on UNIX 
systems as well, but have not installed it there.  Basically, it 
looks like Perl is installed correctly, but it will not recognize the 
shebang first line.  (I understand from online tutorials that I 
have it set up correctly for OSX, and Perl does exist at that path.) 
The program runs if I pass it directly to Perl.

Oddly enough, shell scripts (which I am less familiar with) don't 
seem to pay attention to the shebang line either.  I am guessing 
that the problems are related.

I have played with the ownership and permissions, but it doesn't seem 
to fix the problem.  Do need to change some other setting?  If so, 
where?


[Fujisawa:~/Documents/MacPerl] tim% ls -l test.pl
-rwxrwxrwx  1 root  staff  45 May 21 23:16 test.pl
[Fujisawa:~/Documents/MacPerl] tim% cat test.pl
#!/usr/bin/perl -w
print Hello World!\n;
[Fujisawa:~/Documents/MacPerl] tim% test.pl
test.pl: Command not found.
[Fujisawa:~/Documents/MacPerl] tim% perl test.pl
Hello World!
[Fujisawa:~/Documents/MacPerl] tim%

[Fujisawa:~/Documents/MacPerl] tim% ls -l *.sh
-rwxrwxrwx  1 tim  staff  24 May 21 22:54 d.sh
[Fujisawa:~/Documents/MacPerl] tim% cat d.sh
#!/bin/sh
echo 'Hello'
[Fujisawa:~/Documents/MacPerl] tim% d.sh
d.sh: Command not found.
[Fujisawa:~/Documents/MacPerl] tim% /bin/sh d.sh
Hello
[Fujisawa:~/Documents/MacPerl] tim%
--
   Tim Bailey   |\/  Of all tyrannies, a tyranny exercised for the
[EMAIL PROTECTED]|\/  good of its victims may be the most oppressive.
   [EMAIL PROTECTED]   | It may be better to live under robber barons
 http://www.moonrise.org than under omnipotent moral busybodies.
--'--,--@   The robber baron's cruelty may sometimes sleep,
   his cupidity may at some point be satiated;
  but those who torment us for our own good will torment us without end,
 for they do so with the approval of their own conscience.
 -- C.S. Lewis