Re: 10.2 + 5.8 CPAN trouble

2002-10-02 Thread Ken Williams

You can extract the perl stuff directly from the Jaguar 
installation CDs using something like the Pacifist application.  
That's probably preferable to a full re-install of the OS.

  -Ken

On Thursday, October 3, 2002, at 01:39  AM, Richard Jolly wrote:

>
> You've convinced me that overwriting 5.6 was a bad idea, and I 
> should fix it before I go too much further.
>
> Any advice on the best way of doing this (simple directions 
> please!)? I read somewhere that the hints/darwin.sh file had 
> been rewritten - I think to avoid this problem. (Of course I 
> can't find the reference). Do I need to replace that file with 
> a newer version?
>
> Thanks again, this is very very helpful.
>
> Richard
>




Re: 10.2 + 5.8 CPAN trouble

2002-10-02 Thread Pete Prodoehl


I'm too lazy to track it down, but I believe Jordan Hubbard (the 
BSD/Darwin guy) said Apple is waiting for a point release (5.8.1?) 
before upgrading Perl...

Pete


william ross wrote:
> On Wednesday, October 2, 2002, at 04:06 PM, Richard Jolly wrote:
> 
> It would be good to have a semi-official word from apple on this 
> question, though, especially since they published Morbus's article 
> recommending the replacement. I've sent a chirpy enquiry to 
> [EMAIL PROTECTED] - that's the address on the article - but am not 
> holding breath.
> 




Re: 10.2 + 5.8 CPAN trouble

2002-10-02 Thread william ross

On Wednesday, October 2, 2002, at 04:06 PM, Richard Jolly wrote:

>
> On Wednesday, October 2, 2002, at 02:01 PM, william ross wrote:
>>
>> On Wednesday, October 2, 2002, at 01:53 PM, Richard Jolly wrote:
>>
>> here's your immediate problem:
>>
>>> CPAN build and cache directory? [/Users/rjolly/.cpan] y
>>
>> to accept the default, just press return. having answered 'y', your 
>> cache directory is now './y', which doesn't exist. You can correct 
>> that by editing CPAN/MyConfig.pm, but you needn't bother. Having 
>> installed 5.8.0 over the apple default (as i did, and came to 
>> regret), you'll need to run -MCPAN as root to install modules anyway.
>
> Duh! Thanks. I thought "y" was a strange directory name when I saw it 
> in the output, but I didn't make the connection.
>
> Why is it such a bad idea to replace Apple's 5.6? I could reinstall 
> 10.2 just to revert that, I guess. Would it be worth it?

Heh. Probably not. It's just that the air here is full of gloomy 
prognostications that make me wish I'd left things as they were. 5.8.0 
hasn't actually caused any trouble: my main reason for regretting it 
was the two days I spent afterwards building variants of apache and 
mod_perl, but that turned out well in the end.

i _think_ that as long as you check to make sure that the modules which 
make up apple's core distribution are present in your 5.8.0, it will be 
ok. in many cases it won't matter if they're not (eg Apache::*), but 
anything inexplicable should probably be carefully replaced.

It would be good to have a semi-official word from apple on this 
question, though, especially since they published Morbus's article 
recommending the replacement. I've sent a chirpy enquiry to 
[EMAIL PROTECTED] - that's the address on the article - but am not 
holding breath.

best

will





Re: 10.2 + 5.8 CPAN trouble

2002-10-02 Thread Richard Jolly


You've convinced me that overwriting 5.6 was a bad idea, and I should 
fix it before I go too much further.

Any advice on the best way of doing this (simple directions please!)? I 
read somewhere that the hints/darwin.sh file had been rewritten - I 
think to avoid this problem. (Of course I can't find the reference). Do 
I need to replace that file with a newer version?

Thanks again, this is very very helpful.

Richard




Re: 10.2 + 5.8 CPAN trouble

2002-10-02 Thread Dan Sugalski

At 4:06 PM +0100 10/2/02, Richard Jolly wrote:
>Why is it such a bad idea to replace Apple's 5.6? I could reinstall 
>10.2 just to revert that, I guess. Would it be worth it?

A fair amount of Apple's maintenance scripts and some installer 
scripts use it. 5.6.0 has a number of... quirks that are different 
than 5.8.0.

Also, 5.6.0 is *not* binary-compatible with 5.8.0, and can't be made 
so. If you've something that links against the perl shared library 
(like extensions, mod_perl, or CamelBones) you'll find it breaks when 
you upgrade, which can be rather disconcerting. A number of folks 
have found this out already, judging by the list traffic.
-- 
 Dan

--"it's like this"---
Dan Sugalski  even samurai
[EMAIL PROTECTED] have teddy bears and even
   teddy bears get drunk



Re: 10.2 + 5.8 CPAN trouble

2002-10-02 Thread Robin


On Thursday, October 3, 2002, at 12:06 AM, Richard Jolly wrote:

> Why is it such a bad idea to replace Apple's 5.6? I could reinstall 
> 10.2 just to revert that, I guess. Would it be worth it?

in short perl 5.6.1 is not the same code base as 5.8- so any modules 
whch were ompiled to run with 5.6.1 won't work with 5.8.0.
This is a problem when you overwrite the default install of perl because 
many OSX system tasks use perl scripts, which suddenly can't use perl. 
This equates to OSX fubar :-)




Re: 10.2 + 5.8 CPAN trouble

2002-10-02 Thread Chris Devers

On Wed, 2 Oct 2002, Richard Jolly wrote:

> Why is it such a bad idea to replace Apple's 5.6? I could reinstall
> 10.2 just to revert that, I guess. Would it be worth it?

Dunno, maybe. If nothing is acting funny then you can leave it alone, but
a lot of system components (cron jobs, system commands, etc) are written
against the built in version of Perl, and damaging that can lead to errors
with your system overall. It's possible to replace the default Perl, but
convention wisdom seems to be that it's better to avoid messing with the
system version, and put upgrades in /usr/local, /opt, /sw, etc.

-- 
Chris Devers[EMAIL PROTECTED]

Q: What do Winnie the Pooh and John the Baptist have in common?
A: The same middle name.




Re: 10.2 + 5.8 CPAN trouble

2002-10-02 Thread Richard Jolly

Thank you very much.

I "o conf init"'ed (in case I'd pressed 'y' instead of return for 
anything else) and everything worked fine.

Richard

__

On Wednesday, October 2, 2002, at 02:37 PM, Robin wrote:

> You don't need to re-install CPAN, just re-configure it -
>
> So in the terminal type:
> 1) [terminal commandline:]user% cd ~
> 2) [terminal commandline:~]user% sudo mkdir .cpan
> 3) [terminal commandline:~]user% cd ~/.cpan
> 4) [terminal commandline:~/.cpan]user% sudo mkdir build
> 5) [terminal commandline:~/.cpan]user% sudo mkdir sources
> 6) [terminal commandline:~/.cpan]user% sudo perl -MCPAN -e shell
> cpan>o conf
>
>
> What you wrote:
> 1) makes sure you're in your userfolder
> 2) makes a folder called '.cpan' which is the default install name
> 3) moves you into the new .cpan dir
> 4) makes a folder called 'build', used by cpan
> 5) makes a folder called 'sources', used by cpan
> 6) will list the current CPAN configuration
>
> to change the config data so that CPAN can see and use the folders you 
> made, still from the command line
>
>
>
> EITHER:
> i)  cpan>o conf cpan_home =  /User/YOUR USERNAME/cpan
> ii)  cpan>o conf build_dir= /User/YOUR USERNAME/cpan/build
> iii) cpan>o conf keep_source_where= /User/YOUR USERNAME/cpan/sources
> iv) cpan> o conf commit  (save changes to the config info)
>
> What you wrote:
> i)sets the cpan folder to /User/YOUR USERNAME/cpan
> ii)   sets the new  build_dir
> iii)  sets the source dir
> iv)  saves changes tyou just made
>
>
>
> OR :
> cpan> o conf init
>
> which will run the script which asked you for the config info the 
> first time you ran CPAN



> HTH
>
> Robin




Re: 10.2 + 5.8 CPAN trouble

2002-10-02 Thread Richard Jolly


On Wednesday, October 2, 2002, at 02:01 PM, william ross wrote:
>
> On Wednesday, October 2, 2002, at 01:53 PM, Richard Jolly wrote:
>
> here's your immediate problem:
>
>> CPAN build and cache directory? [/Users/rjolly/.cpan] y
>
> to accept the default, just press return. having answered 'y', your 
> cache directory is now './y', which doesn't exist. You can correct 
> that by editing CPAN/MyConfig.pm, but you needn't bother. Having 
> installed 5.8.0 over the apple default (as i did, and came to regret), 
> you'll need to run -MCPAN as root to install modules anyway.

Duh! Thanks. I thought "y" was a strange directory name when I saw it 
in the output, but I didn't make the connection.

Why is it such a bad idea to replace Apple's 5.6? I could reinstall 
10.2 just to revert that, I guess. Would it be worth it?

Richard




Re: 10.2 + 5.8 CPAN trouble

2002-10-02 Thread Robin

You don't need to re-install CPAN, just re-configure it -

So in the terminal type:
1) [terminal commandline:]user% cd ~
2) [terminal commandline:~]user% sudo mkdir .cpan
3) [terminal commandline:~]user% cd ~/.cpan
4) [terminal commandline:~/.cpan]user% sudo mkdir build
5) [terminal commandline:~/.cpan]user% sudo mkdir sources
6) [terminal commandline:~/.cpan]user% sudo perl -MCPAN -e shell
cpan>o conf


What you wrote:
1) makes sure you're in your userfolder
2) makes a folder called '.cpan' which is the default install name
3) moves you into the new .cpan dir
4) makes a folder called 'build', used by cpan
5) makes a folder called 'sources', used by cpan
6) will list the current CPAN configuration

to change the config data so that CPAN can see and use the folders you 
made, still from the command line



EITHER:
i)  cpan>o conf cpan_home =  /User/YOUR USERNAME/cpan
ii)  cpan>o conf build_dir= /User/YOUR USERNAME/cpan/build
iii) cpan>o conf keep_source_where= /User/YOUR USERNAME/cpan/sources
iv) cpan> o conf commit  (save changes to the config info)

What you wrote:
i)sets the cpan folder to /User/YOUR USERNAME/cpan
ii)   sets the new  build_dir
iii)  sets the source dir
iv)  saves changes tyou just made



OR :
cpan> o conf init

which will run the script which asked you for the config info the first 
time you ran CPAN



In the terminal type "perldoc cpan"  for more information about  CPAN.


HTH

Robin

On Wednesday, October 2, 2002, at 09:53 PM, Richard Jolly wrote:
> tar: Failed open to read on 
> y/sources/authors/id/A/AN/ANDK/CPAN-1.63.tar.gz  directory>
> Couldn't opendir y/build/ANDK000: No such file or directory at 
> /Library/Perl/CPAN.pm line 4873
>
> I'm not sure what to do next. I've excerpted quite a lot from my 
> terminal below - hopefully this will be clear to someone with more 
> experience.
>




Re: 10.2 + 5.8 CPAN trouble

2002-10-02 Thread william ross


On Wednesday, October 2, 2002, at 01:53 PM, Richard Jolly wrote:

here's your immediate problem:

> CPAN build and cache directory? [/Users/rjolly/.cpan] y

to accept the default, just press return. having answered 'y', your 
cache directory is now './y', which doesn't exist. You can correct that 
by editing CPAN/MyConfig.pm, but you needn't bother. Having installed 
5.8.0 over the apple default (as i did, and came to regret), you'll 
need to run -MCPAN as root to install modules anyway.

sudo perl -MCPAN -e shell

should do it. you'll have to go through the initialisation again, to 
create the relevant ~/.cpan directories for root.

best

will




10.2 + 5.8 CPAN trouble

2002-10-02 Thread Richard Jolly

I've newly installed 10.2 and perl 5.8. Being quite new to this kind of 
thing, I followed the instructions at

http://developer.apple.com/internet/macosx/perl.html

to the letter. All was well, until I tried to install Bundle::CPAN in 
the cpan shell.

I don't know if its relevant, but I was unsure how to answer the first 
configuration question. It prompted that I had a cpan directory in my 
home directory. I do, but I hadn't actually used it successfully before 
(because I didn't have developer tools installed before now). I choose 
to use this, and chose the default answers to all other configuration 
questions.

But the problem came when I tried to install Bundle::CPAN. It seemed to 
go ok for a while, but then ...

tar: Failed open to read on 
y/sources/authors/id/A/AN/ANDK/CPAN-1.63.tar.gz 
Couldn't opendir y/build/ANDK000: No such file or directory at 
/Library/Perl/CPAN.pm line 4873

I'm not sure what to do next. I've excerpted quite a lot from my 
terminal below - hopefully this will be clear to someone with more 
experience.

Thanks very much for your help,

Richard

EXCERPTS:

/usr/local/src/perl-5.8.0 26% sudo perl -MCPAN -eshell
Password:
We have to reconfigure CPAN.pm due to following uninitialized 
parameters:

cache_metadata

/Users/rjolly/.cpan/CPAN/MyConfig.pm initialized.



I see you already have a  directory
 /Users/rjolly/.cpan
Shall we use it as the general CPAN build and cache directory?

CPAN build and cache directory? [/Users/rjolly/.cpan] y



cpan shell -- CPAN exploration and modules installation (v1.61)
ReadLine support available (try 'install Bundle::CPAN')

cpan> install Bundle::CPAN
CPAN: Storable loaded ok
Issuing "/usr/bin/ftp -n"
Connected to ftp.demon.co.uk.
220-  Welcome to Demon Internet's ftp archive.
220-
220-All public files are located under /pub.
220-All mirrors are located under /pub/mirrors.
220-Files for accessing Demon are stored under /pub/demon/
220-
220-Demon customer web pages should be uploaded to 
homepages.demon.co.uk
220-not this server.
220-
220-Administrative contact for FTP is [EMAIL PROTECTED] Queries 
regarding
220-Demon Internet should be addressed to [EMAIL PROTECTED]
220-
220-Malcolm Muir ([EMAIL PROTECTED])
220-
220 disabuse.ftp.demon.net FTP server (Demon/Academ/WU [2] Dec 3 
15:26:46 GMT 2001) ready.
331 Guest login ok, send your complete e-mail address as password.
230-Anonymous login from dsl-217-155-38-11.zen.co.uk.
230-
230-The local time is Wed Oct  2 10:28:53 2002.
230-
230-Material on this system is provided without warranty or guarantee 
and under
230-the condition that no liability for any situation or event directly,
230-indirectly or otherwise caused by access to this system is assumed 
by the
230-operators. It is the responsibility of the downloader to ensure any
230-material downloaded is suitable and may legally be possessed in your
230-country or establishment.
230-
230-* If the above is not permissible under your legal system *
230- * then disconnect immediately *
230-
230-You are user 8 out of 196 permitted anonymous FTP logins.
230-
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
Local directory now /usr/local/src/perl-5.8.0/y/sources/authors
250 CWD command successful.
250-Welcome to the Demon Internet Service FTP Archive
250-=
250-
250-This directory contains the /pub general archive hierachy.
250-If you wish to upload new files, please consult the local 
documentation.
250-Many directories contain "RECENT" files listing the last 7 days 
uploads.
250-
250-
250 CWD command successful.
250 CWD command successful.
250 CWD command successful.
200 Type set to I.
local: 01mailrc.txt.gz remote: 01mailrc.txt.gz
500 'EPSV': command not understood.
227 Entering Passive Mode (194,159,255,136,137,253)
150 Opening BINARY mode data connection for 01mailrc.txt.gz (55147 
bytes).
100% |*| 55147  57.66 KB/s
00:00 ETA
226 Transfer complete.
55147 bytes received in 00:00 (57.40 KB/s)
Can't parse time `20020928004100-14419460'.
221 Goodbye.
GOT y/sources/authors/01mailrc.txt.gz
Going to read y/sources/authors/01mailrc.txt.gz
Issuing "/usr/bin/ftp -n"
Connected to ftp.demon.co.uk.
220-  Welcome to Demon Internet's ftp archive.
220-
220-All public files are located under /pub.
220-All mirrors are located under /pub/mirrors.
220-Files for accessing Demon are stored under /pub/demon/
220-
220-Demon customer web pages should be uploaded to 
homepages.demon.co.uk
220-not this server.
220-
220-Administrative contact for FTP is [EMAIL PROTECTED] Queries 
regarding
220-Demon Internet should be addressed to [EMAIL PROTECTED]
220-
220-Malcolm Muir ([EMAIL PROTECTED])
220-
220 disabuse.ftp.demon.net FTP server (Demon/Academ/WU [2] Dec 3 
15:26:46 GMT 2001) ready.
331 Guest login ok, send your complete e-mail ad