OS X perl question

6 views
Skip to first unread message

Bruno Postle

unread,
Feb 5, 2008, 10:22:25 AM2/5/08
to Hugin ptx
I have a perl version of autopano-c-complete which seems to work on
both Windows and Linux. I know OS X has perl by default but not
which modules it has, can somebody run these command-lines on an
(ideally really old) OS X machine to see if they succeed:

perl -MGetopt::Std -e 'print "ok\n"'
perl -MGetopt::Long -e 'print "ok\n"'
perl -MPod::Usage -e 'print "ok\n"'

--
Bruno

Harry van der Wolf

unread,
Feb 5, 2008, 12:40:45 PM2/5/08
to hugi...@googlegroups.com
Hi Bruno,

Below the commands for an OSX 10.4.11 version. Please note that it is
possible to install a massive load of modules via Macports and/or
Fink. However that requires a user to actually do that as it does not
happen automatically. My version is the default Apple version.


$ perl -MGetopt::Std -e 'print "ok\n"'
ok

$ perl -MGetopt::Long -e 'print "ok\n"'
ok

perl -MPod::Usage -e 'print "ok\n"'

ok


And for some more info:
$ /usr/bin/perl -V
Summary of my perl5 (revision 5 version 8 subversion 6) configuration:
Platform:
osname=darwin, osvers=8.0, archname=darwin-thread-multi-2level
uname='darwin b19.apple.com 8.0 darwin kernel version 8.3.0: mon
oct 3 20:04:04 pdt 2005; root:xnu-792.6.22.obj~2release_ppc power
macintosh powerpc '
config_args='-ds -e -Dprefix=/usr -Dccflags=-g -pipe -
Dldflags=-Dman3ext=3pm -Duseithreads -Duseshrplib'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-g -pipe -fno-common -DPERL_DARWIN -no-cpp-
precomp -fno-strict-aliasing -I/usr/local/include',
optimize='-O3',
cppflags='-no-cpp-precomp -g -pipe -fno-common -DPERL_DARWIN -no-
cpp-precomp -fno-strict-aliasing -I/usr/local/include'
ccversion='', gccversion='4.0.1 (Apple Computer, Inc. build
5363)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8,
Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags ='-L/usr/
local/lib'
libpth=/usr/local/lib /usr/lib
libs=-ldbm -ldl -lm -lc
perllibs=-ldl -lm -lc
libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true,
libperl=libperl.dylib
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-bundle -undefined dynamic_lookup -L/
usr/local/lib'


Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
PERL_IMPLICIT_CONTEXT
Locally applied patches:
23953 - fix for File::Path::rmtree CAN-2004-0452 security issue
33990 - fix for setuid perl security issues
fix for regcomp CVE-2007-5116 security vulnerability
SPRINTF0 - fixes for sprintf formatting issues - CVE-2005-3962
Built under darwin
Compiled at Nov 26 2007 09:16:22
@INC:
/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
.


Harry

Bruno Postle

unread,
Feb 5, 2008, 4:48:39 PM2/5/08
to Hugin ptx
On Tue 05-Feb-2008 at 18:40 +0100, Harry van der Wolf wrote:

> [snip confirmation of standard perl modules on OS X]

Thanks, I've commited this perl version of autopano-c-complete to
the autopano-sift-C SVN module. This works fine in Linux, and I'll
try and build a Windows .exe version later. It would be nice to
find out if it works in OS X too:

https://hugin.svn.sourceforge.net/svnroot/hugin/autopano-sift-C/trunk/autopano-c-complete

--
Bruno

Carl von Einem

unread,
Feb 5, 2008, 5:48:38 PM2/5/08
to hugi...@googlegroups.com
OS X 10.3.9

Bruno Postle wrote:
> I have a perl version of autopano-c-complete which seems to work on
> both Windows and Linux. I know OS X has perl by default but not
> which modules it has, can somebody run these command-lines on an
> (ideally really old) OS X machine to see if they succeed:
>
> perl -MGetopt::Std -e 'print "ok\n"'

ok


> perl -MGetopt::Long -e 'print "ok\n"'

ok


> perl -MPod::Usage -e 'print "ok\n"'

ok
>

Carl

Bruno Postle

unread,
Feb 5, 2008, 6:47:03 PM2/5/08
to Hugin ptx
On Tue 05-Feb-2008 at 21:48 +0000, Bruno Postle wrote:
>
>Thanks, I've commited this perl version of autopano-c-complete to
>the autopano-sift-C SVN module. This works fine in Linux, and I'll
>try and build a Windows .exe version later.

Here's a windows .exe version, instructions for configuring the
win32 version of hugin are also in the zip file:

http://bugbear.blackfish.org.uk/~bruno/misc/autopano/

It seems to work ok (though the --help output seems to include the
entire perl documentation, that's a bug). I have no idea how well
it copes with long lists of images

--
Bruno

Harry van der Wolf

unread,
Feb 6, 2008, 3:09:08 AM2/6/08
to hugi...@googlegroups.com
Hi Bruno,

Your perl script works fine on OSX. I tested it from within hugin
with two sets of panorama images. Just for complete reference: my osx
version is 10.4.11

Harry

Reply all
Reply to author
Forward
0 new messages