[Fink-users] psync problems: Is my perl messed up?

2007-07-02 Thread William Scott
Hi folks:

To my knowledge, I have not tampered with my system perl  
installation.  I've installed psync with fink, and macosx-file-pm,  
upon which it depends.

When I try to use psync, I get the following:


zsh-% sudo /sw/bin/psync -d / /Volumes/Scottlab_700GB

Can't locate MacOSX/File.pm in @INC (@INC contains: /System/Library/ 
Perl/5.8.6/darwin-thread-multi-2level /System/Library/Perl/5.8.6 / 
Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6 / 
Library/Perl /Network/Library/Perl/5.8.6/darwin-thread-multi-2level / 
Network/Library/Perl/5.8.6 /Network/Library/Perl /System/Library/Perl/ 
Extras/5.8.6/darwin-thread-multi-2level /System/Library/Perl/Extras/ 
5.8.6 /Library/Perl/5.8.1 .) at /sw/bin/psync line 14.
BEGIN failed--compilation aborted at /sw/bin/psync line 14.

This concerns me because the fink perl path (or whatever it is  
called) is obviously not in there.  Is psync messed up, or is it more  
fundamental?  The fink program itself works fine, so I assume perl is  
ok, but I am not sure what to try next.

I'm trying to install MacOSX::File using cpan as a work-around, but  
if there is a problem with fink's psync, this would only mask it.

Thanks.

Bill




William G. Scott

contact info:  http://chemistry.ucsc.edu/~wgscott





-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] psync problems: Is my perl messed up?

2007-07-02 Thread Alexander K. Hansen
William Scott wrote:
 Hi folks:

 To my knowledge, I have not tampered with my system perl  
 installation.  I've installed psync with fink, and macosx-file-pm,  
 upon which it depends.

 When I try to use psync, I get the following:


 zsh-% sudo /sw/bin/psync -d / /Volumes/Scottlab_700GB

 Can't locate MacOSX/File.pm in @INC (@INC contains: /System/Library/ 
 Perl/5.8.6/darwin-thread-multi-2level /System/Library/Perl/5.8.6 / 
 Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6 / 
 Library/Perl /Network/Library/Perl/5.8.6/darwin-thread-multi-2level / 
 Network/Library/Perl/5.8.6 /Network/Library/Perl /System/Library/Perl/ 
 Extras/5.8.6/darwin-thread-multi-2level /System/Library/Perl/Extras/ 
 5.8.6 /Library/Perl/5.8.1 .) at /sw/bin/psync line 14.
 BEGIN failed--compilation aborted at /sw/bin/psync line 14.

 This concerns me because the fink perl path (or whatever it is  
 called) is obviously not in there.  Is psync messed up, or is it more  
 fundamental?  The fink program itself works fine, so I assume perl is  
 ok, but I am not sure what to try next.

 I'm trying to install MacOSX::File using cpan as a work-around, but  
 if there is a problem with fink's psync, this would only mask it.

 Thanks.

 Bill




 William G. Scott

 contact info:  http://chemistry.ucsc.edu/~wgscott



   
Looks like the OS 10.4.9+ sudo feature.  Does it work if you do sudo 
-s and then run the command?  If so, then you may just need to use

env PERL5LIB=$PERL5LIB sudo /sw/bin/psync -d / /Volumes/Scottlab_700GB

-- 
Alexander K. Hansen
Fink User Liaison/Documenter
akh AT finkproject DOT org


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] psync problems: Is my perl messed up?

2007-07-02 Thread Martin Costabel
William Scott wrote:
 Hi folks:
 
 To my knowledge, I have not tampered with my system perl  
 installation.  I've installed psync with fink, and macosx-file-pm,  
 upon which it depends.
 
 When I try to use psync, I get the following:
 
 
 zsh-% sudo /sw/bin/psync -d / /Volumes/Scottlab_700GB
 
 Can't locate MacOSX/File.pm in @INC 

Isn't that just the new improved behavior of sudo that removes PERL5LIB 
from the list of env vars? Try

   sudo env PERL5LIB=$PERL5LIB /sw/bin/psync -d / /Volumes/Scottlab_700GB

To see ths list of env vars that your sudo is removing, run

   sudo sudo -V

There have been many messages on this subject on the list in the last 
couple of months.

-- 
Martin


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] psync problems: Is my perl messed up?

2007-07-02 Thread William Scott


Martin Costabel wrote:
 There have been many messages on this subject on the list in the last
 couple of months.

 --
 Martin


Sorry.  I'm a bit panicked and am trying to make a bootable drive to
rescue some data. I vaguely recall seeing this but didn't make the
connection.

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] psync problems: Is my perl messed up?

2007-07-02 Thread Alexander Hansen
 env PERL5LIB=$PERL5LIB sudo /sw/bin/psync -d / /Volumes/Scottlab_700GB


Oops.that wouldn't do.  Martin's right, of course.


-- 
Alexander K. Hansen
akh AT finkproject DOT org
Fink User Liaison and Documenter

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users