Re: Non-Perl but baffling question

2003-02-25 Thread Peter N Lewis
And, now that I try it, it also looks inaccurate:

% sw_vers | grep 'ProductVersion' | awk '{print $2}'
10.2.4
% osascript -e 'tell application "Finder" to version'
10.2.1
Not inaccurate as such.  The latter returns the Finder application 
version.  Presumably the former returns the system version.

The Finder version and system version are sometimes in sync but not 
others.  In fact, system 7.0 was the first ever system to ship with 
the Finder and System synced to the same version, before that they 
had always been different and there is no requirement for them to be 
the same.

For example:
% osascript -e 'tell application "BBEdit" to version'
7.0.2
Sounds like the Finder application has not been updated in the last 
three minor system updates.

You can get the system version like this:

% osascript -e 'tell application "Finder" to get system attribute "sysv"'
4132
4132 decimal is 0x1024 (10.2.4)

You can also do this using as shown in Chris Nandor's page at:

http://pudge.net/macperl/yapc/2002/scripts/gestalt

Enjoy,
   Peter.
--
  


Re: CPAN "r" always reports old versions

2003-02-25 Thread Lorin Rivers
On Tuesday, February 25, 2003, at 08:57 PM, Sherm Pendley wrote:

There's nothing to fix - what you're describing is precisely how 
things should be. CPAN is supposed to install stuff in /Library/Perl, 
and the core modules shipped with Perl are in /System/Library/Perl
Ah.

Here's the rub - /System/Library/Perl appears before /Library/Perl in 
Perl's module search path. So, if different versions of the same 
module appear in both places, the copy in /System/Library/Perl will 
always "trump" the other.

The answer, as with the answer to finding where CPAN puts things, is 
to pay attention to what CPAN is telling you. When you install a CPAN 
module that's an upgrade to a core module, it warns you about this 
issue, and explains how to avoid the problem you're having - use the 
"UNINST=1" option when you run Makefile.PL. This will delete the old 
version in /System/Library/Perl, as well as installing the new one in 
/Library/Perl.
You rock!

Thanks...

--
Lorin Rivers
Marketing Professional


512.478.8114


Re: CPAN "r" always reports old versions

2003-02-25 Thread Ken Williams
On Tuesday, February 25, 2003, at 08:57  PM, Sherm Pendley wrote:
When you install a CPAN module that's an upgrade to a core module, it 
warns you about this issue, and explains how to avoid the problem 
you're having - use the "UNINST=1" option when you run Makefile.PL.
I think the UNINST=1 option is only valid when doing a 'make install', 
not when doing a 'perl Makefile.PL'.  I haven't checked this, because 
it's undocumented (anywhere!), and I really hate poking around in 
EU::MakeMaker and EU::Install more than I have to (which is an awful 
lot).

In any case, you can configure CPAN.pm so that it always supplies 
UNINST=1 when doing 'make install', and that should solve your problem.

As for *why* the core lib always seems to appear before the site lib in 
@INC, I admit to being baffled.  Apparently that's the way it is on 
most platforms, and I haven't heard any good reason for it (or actually 
even any bad reason other than "that's just the way it is").

 -Ken



Re: Install DBD::Pg fails

2003-02-25 Thread Lorin Rivers
On Tuesday, February 25, 2003, at 08:58 PM, David Wheeler wrote:

On Tuesday, February 25, 2003, at 09:18  AM, Lorin Rivers wrote:

I completely wiped all my perl and fink stuff and started over, but 
I'm still getting:
dyld: /usr/bin/perl Undefined symbols:
_BIO_free
blah, blah, blah
I don't know what _BIO_ is, but I'm pretty sure it's got nothing to do 
with PostgreSQL or DBD::Pg. Are you getting this when you run "make 
test" for DBD::Pg?

David

--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED]  ICQ: 15726394
   Yahoo!: dew7e
   Jabber: 
[EMAIL PROTECTED]
Kineticode. Setting knowledge in motion.[sm]
I think perl is misconfigured somehow on my machine. I have similar 
files in both /Library/Perl and /System/Library/Perl and it's getting 
confused. I definitely am...
--
Lorin Rivers
Marketing Professional


512.478.8114



Re: Non-Perl but baffling question

2003-02-25 Thread Trey Harris
In a message dated Tue, 25 Feb 2003, drieux writes:

>
> On Tuesday, Feb 25, 2003, at 18:20 US/Pacific, Chris Devers wrote:
> [..]
> >
> > And, now that I try it, it also looks inaccurate:
> >
> > % sw_vers | grep 'ProductVersion' | awk '{print $2}'
> > 10.2.4
> > %
> [..]
>
> hence for moral purity we would do:
>
> sub get_osx_version
> ...

Or, for a one-liner that's still morally pure:

  % sw_vers | perl -anle 'print $F[1] if /ProductVersion:/'

Trey
-- who thinks this dead horse has now been beaten to a pulp


Re: Install DBD::Pg fails

2003-02-25 Thread David Wheeler
On Tuesday, February 25, 2003, at 09:18  AM, Lorin Rivers wrote:

I completely wiped all my perl and fink stuff and started over, but 
I'm still getting:
dyld: /usr/bin/perl Undefined symbols:
_BIO_free
blah, blah, blah
I don't know what _BIO_ is, but I'm pretty sure it's got nothing to do 
with PostgreSQL or DBD::Pg. Are you getting this when you run "make 
test" for DBD::Pg?

David

--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED]  ICQ: 15726394
   Yahoo!: dew7e
   Jabber: [EMAIL PROTECTED]
Kineticode. Setting knowledge in motion.[sm]


Re: CPAN "r" always reports old versions

2003-02-25 Thread Sherm Pendley
On Tuesday, February 25, 2003, at 09:40 PM, Lorin Rivers wrote:

It looks as if there's perl stuff in both
/Library/Perl/darwin
and
/System/Library/Perl/darwin
The latter seems to include the outdated things CPAN reports, but CPAN 
installs stuff into the former. How do I fix things?
There's nothing to fix - what you're describing is precisely how things 
should be. CPAN is supposed to install stuff in /Library/Perl, and the 
core modules shipped with Perl are in /System/Library/Perl

Here's the rub - /System/Library/Perl appears before /Library/Perl in 
Perl's module search path. So, if different versions of the same module 
appear in both places, the copy in /System/Library/Perl will always 
"trump" the other.

The answer, as with the answer to finding where CPAN puts things, is to 
pay attention to what CPAN is telling you. When you install a CPAN 
module that's an upgrade to a core module, it warns you about this 
issue, and explains how to avoid the problem you're having - use the 
"UNINST=1" option when you run Makefile.PL. This will delete the old 
version in /System/Library/Perl, as well as installing the new one in 
/Library/Perl.

sherm--

Heisenberg may have slept here.



Re: Non-Perl but baffling question

2003-02-25 Thread drieux
On Tuesday, Feb 25, 2003, at 18:20 US/Pacific, Chris Devers wrote:
[..]
And, now that I try it, it also looks inaccurate:

% sw_vers | grep 'ProductVersion' | awk '{print $2}'
10.2.4
%
[..]

hence for moral purity we would do:

sub get_osx_version
{
open(VER, "sw_vers |") or die "uglie unhappy: $!\n";
my $ver_num;
while(  )
{
if (/ProductVersion:\s(.*)/)
{
$ver_num = $1
}
else
{
next;
}
}
close(VER);
$ver_num;
}
ciao
drieux
---

It's NOT my Fault,
the Voices in My Head Make me do these things.


Re: CPAN "r" always reports old versions

2003-02-25 Thread Lorin Rivers
On Tuesday, February 25, 2003, at 06:31 PM, Ken Williams wrote:
You watch the screen when it installs a module, and look at what path 
it says it's installing it to.

There are other ways to try to figure it out, involving poking around 
in config files and so on, but under certain conditions those config 
file entries are ignored (a problem I recently uncovered in 
ExtUtils::Install and MakeMaker), so it's best in this case to just 
look at where it actually installed to.

 -Ken
It looks as if there's perl stuff in both
/Library/Perl/darwin
and
/System/Library/Perl/darwin
The latter seems to include the outdated things CPAN reports, but CPAN 
installs stuff into the former. How do I fix things?
--
Lorin Rivers
Marketing Professional


512.478.8114



Re: Non-Perl but baffling question

2003-02-25 Thread Chris Devers
On Tue, 25 Feb 2003, Chris Devers wrote:

> On Tue, 25 Feb 2003, Jeff Lowrey wrote:
>
> > At 10:12 AM +1100 2/26/03, John Horner wrote:
> > >How do I find out if it's 10.1.3 or 10.1.5 from the command-line?
> > >
> >
> > [toothgnip:~] jeff% osascript -e 'tell application "Finder" to version'
> > osascript -e 'tell application "Finder" to version'
> > 10.2.1
>
> That looks painful.

And, now that I try it, it also looks inaccurate:

% sw_vers | grep 'ProductVersion' | awk '{print $2}'
10.2.4
% osascript -e 'tell application "Finder" to version'
10.2.1

!!!


Just use sw_vers :)


-- 
Chris Devers[EMAIL PROTECTED]

throwaway, adj.
(Of a program) sold below cost for public debugging. See also PROTOTYPING.

-- from _The Computer Contradictionary_, Stan Kelly-Bootle, 1995


Re: Non-Perl but baffling question

2003-02-25 Thread Chris Devers
On Tue, 25 Feb 2003, drieux wrote:

> On Tuesday, Feb 25, 2003, at 15:48 US/Pacific, Chris Devers wrote:
> [..]
> > That looks painful. Why not just use one of these?
> >
> > % sw_vers
> > ProductName:Mac OS X
> > ProductVersion: 10.2.4
> > BuildVersion:   6I32
>
> this application appears to be only distributed with Mac OS X and not
> with other versions of BSD-isms.

Of course, but the original question was how to get the current version
of OSX itself, not just the kernel or BSD subsystem. A platform specific
answer for a platform specific question -- everything else was just
exposition :)

> [..]
> > % uname -a
> > Darwin barney 6.4 Darwin Kernel Version 6.4: Wed Jan 29 18:50:42
> > PST 2003;
> > root:xnu/xnu-344.26.obj~1/RELEASE_PPC  Power Macintosh powerpc
> [..]
>
> I presume that the version of the Darwin Kernel is
> tied to the ProductVersion? In a way similar to
> the solaris style that SunOs 5.6.1 was Solaris 2.6.1 ???

Loosely. Last time I checked, it seemed like not every upgrade has also
included a kernel update, but if you wanted to one could probably come up
with a list of which kernel versions came with which OSX versions. At a
guess, I assume that it'll look something like (making this up):

  system:   kernel:
  10.1.05.7
  10.1.15.7
  10.1.25.8
  10.1.35.9
  10.1.45.10
  10.1.55.11
  10.2.06.0

etc. Rather than trying to make sense of that, sw_vers is more direct :)


-- 
Chris Devers[EMAIL PROTECTED]

threadbare, adj.
(Of an OS) unable to support multithreading.

Thus, billions of DOS users, too poor or cowardly for OS/2 or UNIX, are
unable to process and print their words while their SPREADSHEETs are
suffering background calculation.

-- from _The Computer Contradictionary_, Stan Kelly-Bootle, 1995


Re: CPAN "r" always reports old versions

2003-02-25 Thread Ken Williams
On Tuesday, February 25, 2003, at 06:19  PM, Lorin Rivers wrote:

On Tuesday, February 25, 2003, at 05:11 PM, Ken Williams wrote:

On Tuesday, February 25, 2003, at 11:10  AM, Lorin Rivers wrote:
When I run "r" in CPAN, it always reports old versions, even after I 
do "force install 'something'.

I'm using fink and perl5.8 on 10.2.4.
It's probably installing to a location that's not in @INC.  Compare 
the place it tells you it's installing things to what you see when 
you do a 'perl -V' in the shell.

 -Ken
How do I find out where CPAN is installing things?

You watch the screen when it installs a module, and look at what path 
it says it's installing it to.

There are other ways to try to figure it out, involving poking around 
in config files and so on, but under certain conditions those config 
file entries are ignored (a problem I recently uncovered in 
ExtUtils::Install and MakeMaker), so it's best in this case to just 
look at where it actually installed to.

 -Ken



Re: CPAN "r" always reports old versions

2003-02-25 Thread Lorin Rivers
On Tuesday, February 25, 2003, at 05:11 PM, Ken Williams wrote:

On Tuesday, February 25, 2003, at 11:10  AM, Lorin Rivers wrote:
When I run "r" in CPAN, it always reports old versions, even after I 
do "force install 'something'.

I'm using fink and perl5.8 on 10.2.4.
It's probably installing to a location that's not in @INC.  Compare 
the place it tells you it's installing things to what you see when you 
do a 'perl -V' in the shell.

 -Ken
How do I find out where CPAN is installing things?
--
Lorin Rivers
Marketing Professional


512.478.8114


Re: httpd -X segfaults

2003-02-25 Thread Puneet Kishor
since no one has yet answered this, let me venture forward and ask 
you...

On Tuesday, February 25, 2003, at 12:41  PM, Warren Pollans wrote:
..
When I try "/usr/sbin/httpd -X", I get my usual startup messages and 
then "Segmentation Fault".  I don't see '-X' as an available option in 
the output of httpd -h.
why? why are you doing httpd -X? As you rightly say, -X is not a valid 
switch, not for my httpd build.

Could someone please point me in the "right" direction?

what do you think you will accomplish by httpd -X? in other words, as 
the ephemeral cat said, the "right" direction would depend on where you 
want to go...

pk.



Re: Non-Perl but baffling question

2003-02-25 Thread drieux
On Tuesday, Feb 25, 2003, at 15:48 US/Pacific, Chris Devers wrote:
[..]
That looks painful. Why not just use one of these?

% sw_vers
ProductName:Mac OS X
ProductVersion: 10.2.4
BuildVersion:   6I32
this application appears to be only distributed with Mac OS X and not
with other versions of BSD-isms.
[..]
% uname -a
Darwin barney 6.4 Darwin Kernel Version 6.4: Wed Jan 29 18:50:42 
PST 2003;
root:xnu/xnu-344.26.obj~1/RELEASE_PPC  Power Macintosh powerpc
[..]

I presume that the version of the Darwin Kernel is
tied to the ProductVersion? In a way similar to
the solaris style that SunOs 5.6.1 was Solaris 2.6.1 ???
uname -r would of course return the '6.4' value
and if there is an offset algorithm
ciao
drieux
---



Re: Non-Perl but baffling question

2003-02-25 Thread Chris Devers
On Tue, 25 Feb 2003, Jeff Lowrey wrote:

> At 10:12 AM +1100 2/26/03, John Horner wrote:
> >How do I find out if it's 10.1.3 or 10.1.5 from the command-line?
> >
>
> [toothgnip:~] jeff% osascript -e 'tell application "Finder" to version'
> osascript -e 'tell application "Finder" to version'
> 10.2.1

That looks painful. Why not just use one of these?

% sw_vers
ProductName:Mac OS X
ProductVersion: 10.2.4
BuildVersion:   6I32

% hostinfo
Mach kernel version:
 Darwin Kernel Version 6.4:
Wed Jan 29 18:50:42 PST 2003; root:xnu/xnu-344.26.obj~1/RELEASE_PPC


Kernel configured for up to 2 processors.
1 processor is physically available.
Processor type: ppc750 (PowerPC 750)
Processor active: 0
Primary memory available: 320.00 megabytes.
Default processor set: 91 tasks, 185 threads, 1 processors
Load average: 1.06, Mach factor: 0.00

% uname -a
Darwin barney 6.4 Darwin Kernel Version 6.4: Wed Jan 29 18:50:42 PST 2003;
root:xnu/xnu-344.26.obj~1/RELEASE_PPC  Power Macintosh powerpc

uname has the nice advantage of apparently existing on every version of
Unix I'm aware of (or at least, every one that I've tried), and it even
seems to support the same command line switches. (Doesn't give you your
OSX version number though -- sw_vers is the best for that.) Another good
more-or-less portable one is just "perl -V", which gives a lot of system
configuration data in addition to info about Perl itself. (But again, it
doesn't know what version of OSX...).




-- 
Chris Devers[EMAIL PROTECTED]

optimizer, n.
A compiler with three switches for controlling its object code output:
big, slow, or both. Compare PESSIMIZING COMPILER.

-- from _The Computer Contradictionary_, Stan Kelly-Bootle, 1995


Re: Non-Perl but baffling question

2003-02-25 Thread Jeff Lowrey
At 10:12 AM +1100 2/26/03, John Horner wrote:
How do I find out if it's 10.1.3 or 10.1.5 from the command-line?

[toothgnip:~] jeff% osascript -e 'tell application "Finder" to version'
osascript -e 'tell application "Finder" to version'
10.2.1
-jeff lowrey


Re: Non-Perl but baffling question

2003-02-25 Thread Adam Wells
At 10:12 AM +1100 2/26/03, John Horner wrote:
I have an OSX machine used as a server in another room.

I nearly always get to it via a shell app.

I can't remember the exact version of X that's on it.

How do I find out if it's 10.1.3 or 10.1.5 from the command-line?
Use the command "sw_vers".  On my PowerBook here:

adam% sw_vers
ProductName:Mac OS X
ProductVersion: 10.2.4
BuildVersion:   6I32
Alternately, look at /S/L/CoreServices/SystemVersion.plist, which is 
what sw_vers is parsing:

adam% cat /System/Library/CoreServices/SystemVersion.plist

http://www.apple.com/DTDs/PropertyList-1.0.dtd";>


ProductBuildVersion
6I32
ProductCopyright
Apple Computer, Inc. 1983-2003
ProductName
Mac OS X
ProductUserVisibleVersion
10.2.4
ProductVersion
10.2.4



adam


Non-Perl but baffling question

2003-02-25 Thread John Horner
I have an OSX machine used as a server in another room.

I nearly always get to it via a shell app.

I can't remember the exact version of X that's on it.

How do I find out if it's 10.1.3 or 10.1.5 from the command-line?

To try and make this on topic, in case anyone doesn't know, the way 
to do this for perl is just "perl -v".
--

John Horner(+612 / 02) 9333 2110
Senior Developer, ABC Online  http://abc.net.au/



Re: CPAN "r" always reports old versions

2003-02-25 Thread Ken Williams
On Tuesday, February 25, 2003, at 11:10  AM, Lorin Rivers wrote:
When I run "r" in CPAN, it always reports old versions, even after I 
do "force install 'something'.

I'm using fink and perl5.8 on 10.2.4.
It's probably installing to a location that's not in @INC.  Compare the 
place it tells you it's installing things to what you see when you do a 
'perl -V' in the shell.

 -Ken



httpd -X segfaults

2003-02-25 Thread Warren Pollans
Hello,

I'm trying to work through the examples in "Mod_Perl Cookbook" and have gotten stuck 
at using Apache::DB - although my problem has nothing to do with Apache::DB.

I'm on a ibook (10.1.5) with apache 1.3.26 and mod_perl 1.26 and perl5.6.0

When I try "/usr/sbin/httpd -X", I get my usual startup messages and then 
"Segmentation Fault".  I don't see '-X' as an available option in the output of httpd 
-h.

Could someone please point me in the "right" direction?


Thanks,


Warren


Re: (CB) Adding DND to apps

2003-02-25 Thread Sherm Pendley
On Tuesday, February 25, 2003, at 04:03 PM, Dan Mills wrote:

I only have one question:  If I don't specify anything for my 
application_openFile function, it still seems to work perfectly.  This 
makes sense for the arguments (it takes @@ and CB figures that out), 
but the return type is not void, which is the default.
Sorry, my bad - like the default args, the default return is actually 
'@', an object. That works when ObjC expects 'void', as well. Actually, 
any return type will work in that case, it will simply be ignored, 
because the caller won't know what to do with it.

What happens, then, when I return a value in that function?  Does the 
caller in objc get it?
Interesting question!

The normal return type from the method you're declaring is a BOOL. When 
a scalar is given to ObjC in a context where it expects an object, the 
type of object that's created depends on the contents of the scalar. 
Perl converts scalars from strings to numbers automatically, but 
internally there are functions that one can use to get its current 
"native" type. So, if the scalar holds an int or a float value, an 
NSNumber object is created; if it holds a string, an NSString is created 
instead.

So, when you declare a method as returning an object (either by default 
or explicitly), and then do a "return 0;" at the end of that method, 
what is returned is an NSNumber object that holds a value of zero. The 
$65,535 question is - will the ObjC runtime call boolValue on this 
object to get the BOOL it needs?

I'll have to do some more digging to find out for certain. It would be 
pretty cool if it does, though - it would mean a lot more 
type-conversion magic going on behind the scenes than I'd anticipated, 
and a lot mere flexibility.

sherm--

Welcome to Rivendell, Mr. Anderson.



Inline::Python trap

2003-02-25 Thread Rael Dornfest
Howdy,

I'm trying to get Inline::Python running under OS X and I'm getting the 
following trap.  Any ideas?

Thanks,

Rael

--

Can't make loaded symbols global on this platform while loading 
/Library/Perl/darwin/auto/Inline/Python/Python.bundle at 
/System/Library/Perl/darwin/DynaLoader.pm line 200.
dyld: perl Undefined symbols:
_PyCallable_Check
_PyClass_Type
_PyDict_GetItemString
_PyDict_New
_PyDict_SetItemString
_PyErr_Format
_PyErr_Occurred
_PyErr_Print
_PyExc_AttributeError
_PyExc_MemoryError
_PyExc_TypeError
_PyFunction_Type
_PyImport_AddModule
_PyInstance_Type
_PyInt_AsLong
_PyInt_FromLong
_PyInt_Type
_PyList_Append
_PyList_New
_PyMapping_Check
_PyMapping_GetItemString
_PyMapping_Size
_PyModule_GetDict
_PyNumber_Float
_PyObject_CallMethod
_PyObject_CallObject
_PyObject_GetAttrString
_PyObject_GetItem
_PyObject_HasAttrString
_PyObject_Init
_PyObject_Size
_PyObject_Str
_PyRun_String
_PySequence_Check
_PySequence_GetItem
_PySequence_Size
_PyString_AsString
_PyString_FromString
_PyString_FromStringAndSize
_PyString_Size
_PyString_Type
_PySys_SetArgv
_PyTuple_GetItem
_PyTuple_New
_PyTuple_SetItem
_PyType_IsSubtype
_PyType_Type
_Py_InitModule4
_Py_Initialize
_Py_SetProgramName
__Py_NoneStruct
__Py_TrueStruct
Trace/BPT trap



Re: (CB) Adding DND to apps

2003-02-25 Thread Dan Mills
Sherm,

Thanks for the awesome explanation :-)

I only have one question:  If I don't specify anything for my 
application_openFile function, it still seems to work perfectly.  This 
makes sense for the arguments (it takes @@ and CB figures that out), 
but the return type is not void, which is the default.

What happens, then, when I return a value in that function?  Does the 
caller in objc get it?

-Dan



httpd -X segfaults

2003-02-25 Thread Warren Pollans
Hello,

I'm trying to work through the examples in "Mod_Perl Cookbook" and have gotten stuck 
at using Apache::DB - although my problem has nothing to do with Apache::DB.

I'm on a ibook (10.1.5) with apache 1.3.26 and mod_perl 1.26 and perl5.6.0

When I try "/usr/sbin/httpd -X", I get my usual startup messages and then 
"Segmentation Fault".  I don't see '-X' as an available option in the output of httpd 
-h.

Could someone please point me in the "right" direction?


Thanks,


Warren


GDBM_File module trouble?

2003-02-25 Thread Marc Kaiwi
I'm trying to install a perl module but when i run "install GDBM_File" 
I get this error. I can install other modules but not GDBM_File

This is what I get:
. . .
Failed 2 test scripts out of 657, 99.70% okay.
### Since not all tests were successful, you may want to run some of
### them individually and examine any diagnostic messages they produce.
### See the INSTALL document's section on "make test".
### You have a good chance to get more information by running
###   ./perl harness
### in the 't' directory since most (>=80%) of the tests succeeded.
### You may have to set your dynamic library search path,
### DYLD_LIBRARY_PATH, to point to the build directory:
###   setenv DYLD_LIBRARY_PATH `pwd`:$DYLD_LIBRARY_PATH; cd t; ./perl 
harness
###   DYLD_LIBRARY_PATH=`pwd`:$DYLD_LIBRARY_PATH; export 
DYLD_LIBRARY_PATH; cd t; ./perl harness
###   export DYLD_LIBRARY_PATH=`pwd`:$DYLD_LIBRARY_PATH; cd t; ./perl 
harness
### for csh-style shells, like tcsh; or for traditional/modern
### Bourne-style shells, like bash, ksh, and zsh, respectively.
u=9.97  s=0  cu=280.46  cs=62.8  scripts=657  tests=68176
make[2]: *** [_test_tty] Error 1
make[1]: *** [_test] Error 2
make: *** [test] Error 2
  /usr/bin/make test -- NOT OK
Running make install
  make test had returned bad status, won't install without force

Any suggestions?

Thanks,

Signed: Marc Kaiwi



Re: konfabulator -- something to ponder

2003-02-25 Thread Chris Devers
On Thu, 13 Feb 2003, Alex Robinson wrote:

> >Most of the sample widgets I've seen, I'd rather
> >seo them available as menubar widgets instead.
> 
> Come on Chris - that's a bit like dismissing something just because there's
> only a poxy hello world example, and why on earth would anyone just want to
> print hello world?

My problem exactly :)

http://slashdot.org/comments.pl?sid=54242&cid=5330607
http://crazyapplerumors.com/2003_02_09_archive.htm#90318920

Block quoting the latter URL, because it sums up my point of view much 
better (and much funnier) than I can:

"It's a run-time engine for little JavasScript widget devices that
can do anything!" said the New York Times' David Pogue.

"Or it might be an interpreter - I always get those
confused. But, anyway, there are these small, lightweight
widgets that do certain tasks like... uh... cooking shrimp! No,
no! That's stupid! Like... like... download your bank account
information! No... well... I don't know if there's one that does
that... there might be."

After five minutes of circular attempts at explanation Pogue finally
admitted "OK, I really don't know what it does."

"But it looks really cool."

Certain Mac users claimed attempts to define Konfabulator were
"bringing it down."

"That kind of thinking is so nineties," said developer and web logger
Niles Crawford. "You can't box Konfabulator in to your corporate
view of what an application should be, man! Konfabulator is way
beyond that! Konfabulator is the bomb! It's the shit, man!

"Ah, screw it, I don't know what it does, either."

I really don't have anything to add :)

 

-- 
Chris Devers[EMAIL PROTECTED]

Good night. Try not to miss me.



Install DBD::Pg fails

2003-02-25 Thread Lorin Rivers
I completely wiped all my perl and fink stuff and started over, but I'm 
still getting:
dyld: /usr/bin/perl Undefined symbols:
_BIO_free
blah, blah, blah
--
Lorin Rivers
Marketing Professional


512.478.8114



CPAN "r" always reports old versions

2003-02-25 Thread Lorin Rivers
When I run "r" in CPAN, it always reports old versions, even after I do 
"force install 'something'.

I'm using fink and perl5.8 on 10.2.4.
--
Lorin Rivers
Marketing Professional


512.478.8114


Re: getting $1, $2 etc. in evaled regexp

2003-02-25 Thread Ken Williams
On Tuesday, February 25, 2003, at 03:20  AM, Peter N Lewis wrote:
Chckout:

perldoc perlre

for lost and lots of cool regexp stuff like (?i:regexp) to turn off 
case sensitivity in part of a search and (?:) to bracket without 
creating a $n entry and such.  And then check out the zero length 
assertions for some even cooler stuff.

In this case, also check out the qr// operator, which will let you 
pre-compile the regex and avoid using '(?i)' :

my $str  = qr/(.{11})(.{10})/i;
my $line  = "test string etc  etc test string";
if ($line =~ /$str/ ) {
  print "id = $1\n";
  print "pw = $2\n";
}
 -Ken



Re: Rendezvous in Perl

2003-02-25 Thread Andrew M. Langmead
On Mon, Feb 24, 2003 at 05:11:19PM -0700, Nathan Torkington wrote:
> Chris Nandor writes:
> > Download Rendzevous source from Apple's Public Source site.  Run
> > SWIG on it.  Enjoy.  ;-)
> 
> That isn't very portable beyond OS X :-) There's a Python implementation
> of zeroconf being developed:

The mDNS code that Apple provides is not only for OS X. It isn't even
the preferred API for OS X.
 has code for
generic POSIX systems, OS X, Mac OS 9, and Windows (and a placeholder
where they will put the VxWorks version)

Apple doesn't recommend applications use the mDNS code directly,
rather to create a single service on the machine that listens to the
multicast data and have individual applications register with it. Mac
OS X's NSNetServices (or CFNetworkServices) will do that.

-- 
"Maybe I should be in Hollywood!"  -- Samantha Langmead, age 5. on
learning how to use iMovie.



Re: getting $1, $2 etc. in evaled regexp

2003-02-25 Thread Peter N Lewis
eh, is not possible to get the values in parens when you do a reg match on an
evaled string ?
Yes, it is.

consider the snippt below, how do i get the values into $1, $2 etc ...
It'd be easier to explain exactly what you are trying to do.

my $str  = /(.{11})(.{10})/i;
This assigns the result of a regexp search of $_ to $str (probably 
true or false).  Ie, it is equivalent to:

my $str = ($_ =~ /(.{11})(.{10})/i);

It seems unlikely this is what you intend.

my $line  = "test string etc  etc test string";
if ($line =~ eval("/" . $str . "/")) {
  print "id = $1\n";
  print "pw = $2\n";
}
I would presume you want something like this:

my $str  = '(?i)(.{11})(.{10})';
my $line  = "test string etc  etc test string";
if ($line =~ /$str/ ) {
  print "id = $1\n";
  print "pw = $2\n";
}
Note the use of the (?i) modifier to turn off case sensitivity inside 
the regexp.  Note that it is needed since your regexp is case 
insensitive anyway.

Chckout:

perldoc perlre

for lost and lots of cool regexp stuff like (?i:regexp) to turn off 
case sensitivity in part of a search and (?:) to bracket without 
creating a $n entry and such.  And then check out the zero length 
assertions for some even cooler stuff.

Enjoy,
   Peter.
--
  


Re: getting $1, $2 etc. in evaled regexp

2003-02-25 Thread allan juul
of course, you are right!

./allan
Quoting "Michael P. Wilson" <[EMAIL PROTECTED]>:

> 
> Allan,
> 
> I'm pretty sure you don't have to go through the eval to do what you're 
> trying to do.  Can't you just build the regex straight like that, with 
> the $str?
> 
> if ($line =~ /$str/)
> {...}
> 
> or am I just imagining things because it's 3:30 in the morning?
> 
> - M
> 
> 
> On Tuesday, Feb 25, 2003, at 03:03 America/New_York, allan juul wrote:
> 
> > hi
> >
> > perl question
> >
> > eh, is not possible to get the values in parens when you do a reg 
> > match on an
> > evaled string ?
> >
> > consider the snippt below, how do i get the values into $1, $2 etc ...
> >
> > my $str  = /(.{11})(.{10})/i;
> > my $line  = "test string etc  etc test string";
> > if ($line =~ eval("/" . $str . "/")) {
> >   print "id = $1\n";
> >   print "pw = $2\n";
> > }
> >
> >
> > thanks
> > ./allan
> >
> >
> -
> "Thus nature has no love for solitude, and always leans, as it were, on 
> some support; and the sweetest support is found in the most intimate 
> friendship." - Cicero
> 
> 


-- 



Re: getting $1, $2 etc. in evaled regexp

2003-02-25 Thread Michael P . Wilson
Allan,

I'm pretty sure you don't have to go through the eval to do what you're 
trying to do.  Can't you just build the regex straight like that, with 
the $str?

if ($line =~ /$str/)
{...}
or am I just imagining things because it's 3:30 in the morning?

- M

On Tuesday, Feb 25, 2003, at 03:03 America/New_York, allan juul wrote:

hi

perl question

eh, is not possible to get the values in parens when you do a reg 
match on an
evaled string ?

consider the snippt below, how do i get the values into $1, $2 etc ...

my $str  = /(.{11})(.{10})/i;
my $line  = "test string etc  etc test string";
if ($line =~ eval("/" . $str . "/")) {
  print "id = $1\n";
  print "pw = $2\n";
}
thanks
./allan

-
"Thus nature has no love for solitude, and always leans, as it were, on 
some support; and the sweetest support is found in the most intimate 
friendship." - Cicero



getting $1, $2 etc. in evaled regexp

2003-02-25 Thread allan juul
hi

perl question

eh, is not possible to get the values in parens when you do a reg match on an 
evaled string ?

consider the snippt below, how do i get the values into $1, $2 etc ...

my $str  = /(.{11})(.{10})/i;
my $line  = "test string etc  etc test string";
if ($line =~ eval("/" . $str . "/")) {
  print "id = $1\n";
  print "pw = $2\n";
}


thanks
./allan