On Jan 8, 2009, at 12:27 PM, Sam Seaver wrote:
On Thu, Jan 8, 2009 at 11:24 AM, Sherm Pendley > wrote:
On Jan 7, 2009, at 10:36 PM, Vic Norton wrote:
Another curiosity. I just checked out the Perl5.8.8 files in /usr/
bin and
/opt/local/bin. The /usr/bin one came with Leopard, which I bought
On Thu, Jan 8, 2009 at 11:24 AM, Sherm Pendley wrote:
> On Jan 7, 2009, at 10:36 PM, Vic Norton wrote:
>
>> Another curiosity. I just checked out the Perl5.8.8 files in /usr/bin and
>> /opt/local/bin. The /usr/bin one came with Leopard, which I bought from
>> Apple a week or so ago. It was created
On Jan 7, 2009, at 10:36 PM, Vic Norton wrote:
Another curiosity. I just checked out the Perl5.8.8 files in /usr/
bin and /opt/local/bin. The /usr/bin one came with Leopard, which I
bought from Apple a week or so ago. It was created on Dec 7, 2007,
and it weighs 48 KB. The MacPorts perl was
I am guessing the bigger Perl has debug information within the program.
(lurking) David Green
On 8 Jan, 2009, at 0:36, Vic Norton wrote:
That is exactly what has happened, Sherm. Thanks a lot. Prior to my
recent installation of Leopard, I had used MacPorts to install
Perl5.8.8. So I have
That is exactly what has happened, Sherm. Thanks a lot. Prior to my
recent installation of Leopard, I had used MacPorts to install
Perl5.8.8. So I have 5.8.8 in two places, in /usr/bin and in /opt/
local/bin. And /opt/local/bin comes earlier in my PATH than /usr/bin.
I'm going to have to thi
local/lib/perl5/site_perl/5.8.8" is near the beginning of
@INC.
On Jan 7, 2009, at 11:50 AM, Vic Norton wrote:
Thanks guys! That did the trick. I added
export PERL5LIB=${PERL5LIB}:/opt/local/lib/perl5/site_perl/5.8.8
to ~/.bash_profile = ~/.bashrc, and I also added
PERL5LIB
/opt/local/lib/p
On Jan 7, 2009, at 10:24 AM, Vic Norton wrote:
I plan to use CPANPLUS to install new packages and modules. Right
now it installs them in
/opt/local/lib/perl5/site_perl/5.8.8
As an aside, I think it's kind of odd that /usr/bin/perl would do
that... Are you sure there's not an /opt/local/bi
Mac OS neXt also provides for a file:
$HOME/.MacOSX/environment.plist. .If it's not present you can create
it and its hidden directory. Contents are environment variables that
you would like defined even if you haven't opened a Terminal.app
session. AppleScript's do shell script command, for
Or you can use local::lib and be happy. You can find a recipe here:
http://www.izut.com/articles/files/7156ee84b1fa9ad28f2a4ab0b94f0a0a-0.html
The recipe says to put something into your ~/.bashrc, which works perfectly.
Igor.
2009/1/7 Chas. Owens :
> On Wed, Jan 7, 2009 at 11:21, Adam Witney
this directory to
@INC? I would prefer not having to start every script with
use lib '/opt/local/lib/perl5/site_perl/5.8.8';
Try adding this to your ~/.profile
export PERL5LIB=${PERL5LIB}:/opt/local/lib/perl5/site_perl/5.8.8
On Jan 7, 2009, at 10:47 AM, Chas. Owens wrote:
OS X 1
On Wed, Jan 7, 2009 at 11:21, Adam Witney wrote:
>
> On 7 Jan 2009, at 16:19, Chas. Owens wrote:
>
>> On Wed, Jan 7, 2009 at 11:13, Adam Witney wrote:
>
> Try adding this to your ~/.profile
>
> export PERL5LIB=${PERL5LIB}:/opt/local/lib/perl5/site_perl/5.8.8
OS X 10.5 (o
On 7 Jan 2009, at 16:19, Chas. Owens wrote:
On Wed, Jan 7, 2009 at 11:13, Adam Witney wrote:
Try adding this to your ~/.profile
export PERL5LIB=${PERL5LIB}:/opt/local/lib/perl5/site_perl/5.8.8
OS X 10.5 (or at least my version of 10.5) uses ~/.bash_profile not
~/.profile for user override
On Wed, Jan 7, 2009 at 11:13, Adam Witney wrote:
>>>
>>> Try adding this to your ~/.profile
>>>
>>> export PERL5LIB=${PERL5LIB}:/opt/local/lib/perl5/site_perl/5.8.8
>>
>> OS X 10.5 (or at least my version of 10.5) uses ~/.bash_profile not
>> ~/.profile for user overrides to the default profile (/e
Try adding this to your ~/.profile
export PERL5LIB=${PERL5LIB}:/opt/local/lib/perl5/site_perl/5.8.8
OS X 10.5 (or at least my version of 10.5) uses ~/.bash_profile not
~/.profile for user overrides to the default profile (/etc/bashrc).
If this is a multiuser machine and you want the other user
od place, but how can I add this directory to
> >@INC? I would prefer not having to start every script with
> > use lib '/opt/local/lib/perl5/site_perl/5.8.8';
> Try adding this to your ~/.profile
> export PERL5LIB=${PERL5LIB}:/opt/local/lib/perl5/site_perl/5.8.8
Or
On Wed, Jan 7, 2009 at 10:30, Adam Witney wrote:
>
> On 7 Jan 2009, at 15:24, Vic Norton wrote:
>
>> I just installed Mac OS X 10.5, and I'm trying to get Perl back up to
>> snuff. My current @INC contains only
>> /System/Library/Perl/5.8.8/darwin-thread-multi
On 7 Jan 2009, at 15:24, Vic Norton wrote:
I just installed Mac OS X 10.5, and I'm trying to get Perl back up
to snuff. My current @INC contains only
/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
/Li
I just installed Mac OS X 10.5, and I'm trying to get Perl back up to
snuff. My current @INC contains only
/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
/Ne
FWIW, the AppendToPath file is a general purpose mechanism to append
paths to @INC. As shipped from Apple, it includes the Extras
directory (which is where the third-party perl modules that we ship
are installed), and (to provide backwards compatibility) it contains
paths to previous
Actually it is possible the below is for use by Apache... (or both)
@INC
OK, I have dug up some information I found some time ago... The
standard (Tiger) implementation of @INC can be modified or added to
via: /Library/Perl/5.8.6/AppendToPath
I am assuming the equivalent in any installed
@INC
OK, I have dug up some information I found some time ago... The
standard (Tiger) implementation of @INC can be modified or added to
via: /Library/Perl/5.8.6/AppendToPath
I am assuming the equivalent in any installed version exists, but
this will sort out 5.8.6.
I think that might
.8.6/darwin-thread-multi-2level/PDL/Graphics/PGPLOT.pm
>
> any idea how to set @INC so that the PGPLOT modules are correctly located.
snip
Both of those files are PDL::Graphics::PGPLOT not PGPLOT. You need to
install PGPLOT with "cpan install PGPLOT".
Hi,
a use PGPLOT command in the PDL turns up this error:
Can't locate PGPLOT.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/
On 2/22/07, at 7:27 PM -0500, Sherm Pendley wrote:
> Possibly, someone replaced all your scripts #!/usr/bin/perl with #!/
> usr/local/bin/perl. Maybe you did that to test them against the newer
> Perl and forgot to change it back, or maybe someone in your house has
> a strange sense of humor.
At 18:21 -0500 2/22/07, Vic Norton wrote:
>So this is my question. How do I add "/Library/Perl/5.8.6" to @INC, without
>having to add
> use lib "/Library/Perl/5.8.6";
>to every script ?
It's likely that there is abetter way, but. . .
If you define the
On Feb 22, 2007, at 6:21 PM, Vic Norton wrote:
Apple suggested I install something the other day. (Java or
something like that.) I did it. Now I discover that many of my Perl
scripts don't work.
The problem is with @INC. It appears to have been upgraded to Perl
5.8.8. For example, w
Apple suggested I install something the other day. (Java or something like
that.) I did it. Now I discover that many of my Perl scripts don't work.
The problem is with @INC. It appears to have been upgraded to Perl 5.8.8. For
example, when I try
use Date::Parse qw(str2time);
I ge
all suggestions are gladly welcomed. i haven't had any time to poke at it but
hopefully i can find
something good. i'm imagining that the lack of an xinitrc file other than the
default is the
culprit. i have installed perlmodules via fink and that probably has created
some issues as well.
thanks
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Jesse Engel) wrote:
> for some reason, X11 has a different version of @INC than reported with
> apple's terminal. if i run
>
> perl -e 'foreach (@INC) { print "$_\n";}' with apple_termi
At 08:53 -0500 1/10/07, Jay Savage wrote:
>As I said before, you have two options here. Since reinstalling all
>your Finked software manually probably isn't appealing, what you need
>to do is use your .xinitrc file to setup the fink environment in X.
>Either setup your PATH and PERL5LIB manually in
On 1/9/07, Jesse Engel <[EMAIL PROTECTED]> wrote:
hmm, no, just the default /usr/bin/perl. i've thought about installing 5.8.8,
but haven't yet. i
changed my shell to bash (doesn't everyone?) in both xterm and apple_terminal
and i did make a
.bashrc in which i changed the default value of $PATH
On 平成 19/01/10, at 9:25, Jesse Engel wrote:
hmm, no, just the default /usr/bin/perl. i've thought about
installing 5.8.8, but haven't yet. i
changed my shell to bash (doesn't everyone?) in both xterm and
apple_terminal and i did make a
.bashrc in which i changed the default value of $PATH t
On Jan 9, 2007, at 6:25 PM, Jesse Engel wrote:
i'm poking through man x to see if i can find something.
That's a red herring. As Jay indicated, the only difference between
your two environments is that under Terminal.app you've got $PERL5LIB
set (to /sw/lib/perl5), but under X11 you don
i guess i spoke too late. the xinitrc file seems to be the key. thanks much.
jesse
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
hmm, no, just the default /usr/bin/perl. i've thought about installing 5.8.8,
but haven't yet. i
changed my shell to bash (doesn't everyone?) in both xterm and apple_terminal
and i did make a
.bashrc in which i changed the default value of $PATH to this:
PATH=$PATH":/sw/bin:/usr/X11R6/bin:/usr/lo
On 1/9/07, Jesse Engel <[EMAIL PROTECTED]> wrote:
for some reason, X11 has a different version of @INC than reported with apple's
terminal. if i run
perl -e 'foreach (@INC) { print "$_\n";}' with apple_terminal, i get
/sw/lib/perl5/5.8.1/darwin-thread-multi-2le
for some reason, X11 has a different version of @INC than reported with apple's
terminal. if i run
perl -e 'foreach (@INC) { print "$_\n";}' with apple_terminal, i get
/sw/lib/perl5/5.8.1/darwin-thread-multi-2level
/sw/lib/perl5/5.8.1
/sw/lib/perl5/darwin-thread-multi
On Jan 5, 2006, at 3:41 PM, The Ghost wrote:
The other perl was installed by darwinports. It doesn't ask
questions. If it did, I wouldn't install it. I'm not concerned
about incompatibilities
You should be.
as the perl versions are so close
The versions are close, but the architectur
default
location without bothering even to look at the difficult questions, I
guess you will solve all you problems and end up with this:
@INC:
/usr/local/lib/perl5/5.8.7/darwin-2level
/usr/local/lib/perl5/5.8.7
/usr/local/lib/perl5/site_perl/5.8.7/darwin-2level
/usr/local/lib/perl5
olve all you problems and end up with this:
@INC:
/usr/local/lib/perl5/5.8.7/darwin-2level
/usr/local/lib/perl5/5.8.7
/usr/local/lib/perl5/site_perl/5.8.7/darwin-2level
/usr/local/lib/perl5/site_perl/5.8.7
/usr/local/lib/perl5/site_perl/5.8.6/darwin-2level
/usr/local/
/perl5/5.8.7/darwin-2level
/opt/local/lib/perl5/5.8.7 ...
If you download 5.8.7 and let it install itself in the default
location without bothering even to look at the difficult questions, I
guess you will solve all you problems and end up with this:
@INC:
/usr/local/lib/perl5/5.8.7/darwin
At 12:15 -0600 1/5/06, The Ghost wrote:
>How can I permanently add to @INC? I have 2 versions of perl installed and
>only use one of them. The reason for 2 versions is a port system that
>refuses to rely on the already installed perl.
Try setting the PERL5LIB environment varia
How can I permanently add to @INC? I have 2 versions of perl
installed and only use one of them. The reason for 2 versions is a
port system that refuses to rely on the already installed perl. So I
have:
$ /usr/bin/perl -e 'print join("\n", @INC)'
/System/Library/Perl
/perl5.8.4/.
That aside, how can I get my @INC back to the default so that all my
installed modules will work again?
Pick one:
Delete /usr/bin/perl, which is currently a symlink to
/usr/local/cb/perl5.8.4/bin/perl, and replace it with a symlink to
/usr/bin/perl5.8.1. This will only affect script
SX/File.pm in @INC (@INC contains:
/usr/local/cb/perl5.8.4/lib/5.8.4/darwin-thread-multi-2level
/usr/local/cb/perl5.8.4/lib/5.8.4
/usr/local/cb/perl5.8.4/lib/site_perl/5.8.4/darwin-thread-multi-2level
/usr/local/cb/perl5.8.4/lib/site_perl/5.8.4
/usr/local/cb/perl5.8.4/lib/site_perl .) at /usr
On Jun 10, 2004, at 7:27 PM, John Horner wrote:
CPAN is running with the older version and reporting that everything's
fine, but the scripts are running with the new version and for them,
it's not.
That sounds like a PATH issue. Scripts begin with #!/usr/bin/perl, so
they use that specific perl.
That's key - you need to understand that the module is *not* in an
incorrect location. It's in the correct location for the Perl it was
installed under, and your current Perl avoids looking in that
location for a good reason. Nothing is broken in that regard. What
you need to figure out is why
On Jun 10, 2004, at 6:06 PM, John Horner wrote:
This may be a frequently-asked question, but I've got installed
modules which CPAN says are "up to date" but Perl can't find.
@INC contains:
/System/Library/Perl/5.8.1/darwin-thread-multi-2level
... snip ...
but when I look
This may be a frequently-asked question, but I've got installed
modules which CPAN says are "up to date" but Perl can't find.
@INC contains:
/System/Library/Perl/5.8.1/darwin-thread-multi-2level
/System/Library/Perl/5.8.1
/Library/Perl/5.8.1/darwin-thread-multi-2level
In a message dated 2/5/04 12:37:24 AM, [EMAIL PROTECTED] writes:
>
> > So my next question is: What is Acrobat doing when opening a file that
> > SetFileInfo isn't?
>
> Setting the correct file type? :^)
>
> According to your previous message, you're doing this:
>
> MacPerl::SetFileInfo(
At 10:48 pm -0500 4/2/04, [EMAIL PROTECTED] wrote:
Interestingly, the problem I was trying to solve with MacPerl's
SetFileInfo is still open. Once Perl set the creator/type...
At 6:23 pm -0500 3/2/04, [EMAIL PROTECTED] wrote:
MacPerl::SetFileInfo('CARO', 'PDF', $path);
Is that precisely what you
[EMAIL PROTECTED] wrote on 2/4/04 at 10:48p:
> So my next question is: What is Acrobat doing when opening a file that
> SetFileInfo isn't?
Setting the correct file type? :^)
According to your previous message, you're doing this:
MacPerl::SetFileInfo('CARO', 'PDF', $path);
HFS file and cr
> I've written the following to sweep a folder and set creator/type for
> pdf
> files (coming off a Linux server). This works from MacPerl, but I
> really need
> to run it from OSX Perl. How do I get Perl to use MacPerl.pm, which
> @INC can't
> locate?
which
@INC can't
locate? ( #!/usr/bin/perl use MacPerl; ... ).
If you install MacPerl.pm in the "obvious" way, then it should be
found. Otherwise, if you install it in an alternate location, then you
can do:
use lib qw(/path/to/where/you/installed/it);
use MacPerl;
-Ken
les either lack a
proper .pdf extension, or will be used by Macs running older OSes.
This works from MacPerl, but I really need
to run it from OSX Perl. How do I get Perl to use MacPerl.pm, which
@INC can't
Mac OS X doesn't need a special Perl - it comes with the standard UNIX
Perl. What
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote:
> #!perl
>
> use strict;
> use warnings;
>
> my ($folder,$x,$file,$path);
> my @files;
>
> $folder = ":pdf:";
This won't work in Mac OS X. You must use Unix paths.
> opendir(PDF, "$folder") || die "$!";
> @files = readdir(PDF);
> close
I've written the following to sweep a folder and set creator/type for pdf
files (coming off a Linux server). This works from MacPerl, but I really need
to run it from OSX Perl. How do I get Perl to use MacPerl.pm, which @INC can't
locate? ( #!/usr/bin/perl use MacPerl; ... ).
#
On Saturday, Oct 25, 2003, at 21:58 US/Pacific, Vic Norton wrote:
[..]
My question is this. How do I change my Perl 5.8.0 @INC so that it
reads
like
~/where_ever_I_am
/opt/local/lib/perl5/5.8.0/darwin
/opt/local/lib/perl5/5.8.0
/opt/local/lib/perl5/site_perl/5.8.0/darwin
/opt
My Perl 5.8.0 resides in "/opt/local/bin/". Perl 5.6.0 is in "/usr/bin".
When I start a script with
#!/opt/local/bin/perl -w
use Date::Parse;
I get an error message because "Date::Parse" is in "/Library/Perl/Date"
and my Perl 5.8.0 @INC doesn'
On Thursday, July 31, 2003, at 9:31 AM, Paul Mison wrote:
Compiling perl 5.8.1 release candidate 3 as recommended in INSTALL (rm
-f config.sh Policy.sh; sh Configure -de; make; make test; sudo make
install) has produced a different @INC to that in release candidate 2:
Characteristics of this
will go
there. See what's in your @INC for 5.8.0. I have:
Hmm. I don't have a 5.8.0. I only have the stock Apple perl 5.6.0,
and perl5.8.1 (currently rc2, which I reverted to.) For 5.6.0, I have:
Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
B
s a mistake.
> The vast majority of modules you install from CPAN will go there.
@INC is populated dynamically, and if you do not have a site_perl, it will
not be included. That said, this may have been a change ... and if so, I
welcome it. I don't want my local perl putting anything in /
On Thursday, July 31, 2003, at 06:31 AM, Paul Mison wrote:
Does anyone else see this behaviour? Is this a planned change?
if site_perl was somehow left out of RC2, I suspect that was a mistake.
The vast majority of modules you install from CPAN will go there. See
what's in your @INC for
Compiling perl 5.8.1 release candidate 3 as recommended in INSTALL
(rm -f config.sh Policy.sh; sh Configure -de; make; make test; sudo
make install) has produced a different @INC to that in release
candidate 2:
Characteristics of this binary (from libperl):
Compile-time options
On Thursday, Feb 27, 2003, at 08:22 US/Pacific, Riccardo Perotti wrote:
I just did a
perl -e 'print "$_\n" for @INC'
in Terminal and both "/Library/Perl" and "/Network/Library/Perl" are
listed
twice. Why?
about the only reasonablish reason I can
Got me, Riccardo. I got doubling doubling as well, two different ways:
~% perl -e 'print "$_\n" for @INC'
/sw/lib/perl5/5.6.1/darwin
/sw/lib/perl5/5.6.1
/Library/Perl/darwin
/Library/Perl
/Library/Perl
.
~% perl5.6.0 -e 'print "$_\n"
On Thursday, February 27, 2003, at 10:22 AM, Riccardo Perotti wrote:
I just did a
perl -e 'print "$_\n" for @INC'
in Terminal and both "/Library/Perl" and "/Network/Library/Perl" are
listed
twice. Why?
I dunno - it's just compiled that way.
I just did a
perl -e 'print "$_\n" for @INC'
in Terminal and both "/Library/Perl" and "/Network/Library/Perl" are listed
twice. Why?
Riccardo
--
mailto:[EMAIL PROTECTED]
http://www.riccardoperotti.com
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Ken Williams) wrote:
> Using MacPerl 5.6.1 under Classic (not Mac OS X perl), I've noticed that
> loading Mac::MoreFiles alters @INC, as the following script demonstrates:
>
> --- script
>u
Hi,
Using MacPerl 5.6.1 under Classic (not Mac OS X perl), I've noticed that
loading Mac::MoreFiles alters @INC, as the following script demonstrates:
--- script
use lib qw(lib);
print "Before, \@INC:\n", map " * $_\n", @INC;
eval 'use M
h code.
> --
>
> Bill Stephenson
> www.SecureShopper.com
> 1-417-546-5593
>
>
>
>> From: Adam Witney <[EMAIL PROTECTED]>
>> Date: Thu, 10 Oct 2002 11:09:38 +0100
>> To: MacOS X perl <[EMAIL PROTECTED]>
>> Subject: Adding path to @INC
>> From: Adam Witney <[EMAIL PROTECTED]>
>> Date: Thu, 10 Oct 2002 11:09:38 +0100
>> To: MacOS X perl <[EMAIL PROTECTED]>
>> Subject: Adding path to @INC for use with web server
>>
>> Hi,
>>
>> Searching the archives I have been a
, 10 Oct 2002 11:09:38 +0100
> To: MacOS X perl <[EMAIL PROTECTED]>
> Subject: Adding path to @INC for use with web server
>
> Hi,
>
> Searching the archives I have been able to find out how to get Perl to
> search other paths for modules when invoked from the term
Hi,
Searching the archives I have been able to find out how to get Perl to
search other paths for modules when invoked from the terminal or from GUI
apps such as BBEdit, however I cannot get them recognised by cgi scripts. I
read somewhere to add this line to httpd.conf
PerlSetEnv PERL5LIB /sw/
>Is there any way to globally add an INC directory to Perl after compilation?
>
>But it doesn't get set when I run Perl from within BBEdit or cron.
>Is there any way to do this so it is truly global (it can just be
>across me as the user or for all users, since I'm t
On Mon, Apr 22, 2002 at 10:26:49AM +0800, Peter N Lewis wrote:
> Is there any way to globally add an INC directory to Perl after compilation?
>
> I know about setenv PERLLIB5 and do that in my .cshrc.
>
> But it doesn't get set when I run Perl from within BBEdit or cron.
&
On Monday, April 22, 2002, at 11:50 , Levan, Jerry wrote:
>> Is there any way to globally add an INC directory to Perl after
>> compilation?
>>
>> I know about setenv PERLLIB5 and do that in my .cshrc.
>>
>> But it doesn't get set when I run Perl from with
> Is there any way to globally add an INC directory to Perl after
> compilation?
>
> I know about setenv PERLLIB5 and do that in my .cshrc.
>
> But it doesn't get set when I run Perl from within BBEdit or cron.
> Is there any way to do this so it is truly global (it
Is there any way to globally add an INC directory to Perl after compilation?
I know about setenv PERLLIB5 and do that in my .cshrc.
But it doesn't get set when I run Perl from within BBEdit or cron.
Is there any way to do this so it is truly global (it can just be
across me as the user o
79 matches
Mail list logo