Re: Accessing AFP remote volumes?

2002-05-02 Thread Michael Bartosh

After getting the password to the user, I'd make a call to the mount_afp 
shell command.

-mab

On Wednesday, May 1, 2002, at 02:04 PM, Jeff Lowrey wrote:

> At 4:04 PM -0400 5/1/02, [EMAIL PROTECTED] wrote:
>> While we're on the subject of remote volumes, I've been trying to 
>> figure out
>> how to automate mounting "normal" AFP volume from Perl (or the 
>> Terminal --
>> it just has to let Perl read & write files) in OS X. The servers 
>> require ID
>> & password.
>>
>> Right now, I'm using FTP to access these remote volumes. Is there a 
>> better
>> way?
>
> Maybe you want to use osascript and AppleScript to do this.  "mount 
> volume" is your friend.





Re: Perl question on OSX

2002-04-10 Thread Michael Bartosh


I had a similar problem with parts of cyrus-

I think perl is not picking up -L flags from the environment somehow.

There's probably something in Makefile.PL for mysqltest that looks like:

-lmysql

You should probably add -L/../../lib (or -L to wherever mysql libs are 
in the distribution).

ie in cyrus, I was getting:

> [sstout:~] admin% cyradm
> dyld: perl Undefined symbols:
> _sasl_client_init
> _sasl_client_new
> _sasl_client_start
> _sasl_client_step
> _sasl_decode
> _sasl_dispose
> _sasl_encode
> _sasl_setprop

so I changed:

my $SASL_LIB = $ENV{SASL_LIB} || "-lsasl";

to

my $SASL_LIB = $ENV{SASL_LIB} || "-L/usr/local/lib -lsasl";

-mab


On Wednesday, April 10, 2002, at 08:15 AM, SA wrote:
> [localhost:~/src/perl] dwalker% ./mysqltest.pl
> dyld: perl Undefined symbols:
> _mysql_affected_rows
> _mysql_close
> _mysql_create_db
> _mysql_data_seek
> _mysql_drop_db
> _mysql_eof
> _mysql_errno
> _mysql_error
> _mysql_fetch_field
> _mysql_fetch_lengths
> _mysql_fetch_row
> _mysql_field_seek
> _mysql_free_result
> _mysql_get_host_info
> _mysql_get_proto_info
> _mysql_get_server_info
> _mysql_info
> _mysql_init
> _mysql_insert_id
> _mysql_list_dbs
> _mysql_list_fields
> _mysql_list_tables
> _mysql_num_fields
> _mysql_num_rows
> _mysql_options
> _mysql_ping
> _mysql_real_connect
> _mysql_real_query
> _mysql_refresh
> _mysql_shutdown
> _mysql_stat
> _mysql_store_result
> _mysql_thread_id
> _mysql_use_result
>
> Any ideas?
>
> Thanks.
>
> Thanks in advance.
> SA
>





perl can't use sasl?

2002-03-31 Thread Michael Bartosh



I'm trying to build cyrus imapd on Mac OS X.

It includes a number of perl based facilities- including cyradm- used to 
manage acl's, mailbox creation, etc.

Cyradm needs access to sasl libs so it can authenticate. Perl doesn't 
seem to be able to find them, though (they're in /usr/local/lib/sasl, 
linked to /usr/lib/sasl)

When I run cyradm, I see this:

> [localhost:~/cyrus/cyrus-imapd-2.0.16] mab9718% cyradm
> dyld: perl Undefined symbols:
> _sasl_client_init
> _sasl_client_new
> _sasl_client_start
> _sasl_client_step
> _sasl_decode
> _sasl_dispose
> _sasl_encode
> _sasl_setprop

during build, I see this:

> ### Making all in /Volumes/iPod/mab9718/cyrus/cyrus-imapd-2.0.16/perl
> (cd imap; \
>  SASL_LIB="-lsasl" SASL_INC="" CC="cc" \
>perl Makefile.PL PREFIX=/usr/local)
> Checking if your kit is complete...
> Looks good
> Warning: -L../../lib changed to 
> -L/Volumes/iPod/mab9718/cyrus/cyrus-imapd-2.0.16/perl/imap/../../lib
> Note (probably harmless): No library found for -lsasl
> Writing Makefile for Cyrus::IMAP

and

> ### Making all in /Volumes/iPod/mab9718/cyrus/cyrus-
> imapd-2.0.16/perl/sieve/acap
> Checking if your kit is complete...
> Looks good
> Warning: -L../../../acap/ changed to 
> -L/Volumes/iPod/mab9718/cyrus/cyrus-
> imapd-2.0.16/perl/sieve/acap/../../../acap/
> Note (probably harmless): No library found for -lsasl
> Warning: -L../../../lib/ changed to 
> -L/Volumes/iPod/mab9718/cyrus/cyrus-
> imapd-2.0.16/perl/sieve/acap/../../../lib/


I've added this to perl/Makefile.pl
>
> LDFLAGS=@LDFLAGS@
> imap/Makefile: imap/Makefile.PL
>(cd imap; \
> SASL_LIB="$(SASL_LIB)" SASL_INC="$(SASL_INC)" CC="$(CC)" 
> LDFLAGS="$(LDFLAGS)" \
>   $(PERL) Makefile.PL PREFIX=$(prefix))

and

> my $LDFLAGS  = $ENV{LDFLAGS};
>   'LIBS'  => ["-L../../lib -L/$LDFLAGS -lcyrus $SASL_LIB -lssl 
> -lcrypto"],

to perl/imap/Makefile.PL

and

> my $LDFLAGS  = $ENV{LDFLAGS};
>'LIBS'  => ["-L../../../acap/ -L/$LDFLAGS -lacap $SASL_LIB 
> -L../../../lib/ -lcyrus -lssl -lcrypto"],   # e.g., '-lm'

to perl/sieve/acap/Makefile.pl and finally:

> my $LDFLAGS  = $ENV{LDFLAGS};
>'LIBS'  => ["-L../lib/ -L/$LDFLAGS -lisieve $SASL_LIB 
> -L../../../lib/ -lcyrus -lssl -lcrypto"],

to  perl/sieve/managesieve/Makefile.pl

But no luck. I'm hardly a perl master... I'm wondering if there's an 
obvious solution I'm missing? sasl it's self is working properly- the 
sample client/server works fine.

Thanks!


http://www.4am-media.com
Mac OS X Consulting and Training
Michael Bartosh
[EMAIL PROTECTED]
303.517.0272
Denver, CO


"The surest way to corrupt a youth is to instruct him to hold in higher
regard those who think alike than those who think differently."

- -- Nietzsche

Think Different.