[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [coldsync-hackers] Perl



> On Thu, Mar 07, 2002 at 02:53:12PM -0500, Daniel Lemire wrote:
> > I "made" coldsync from very latest version. However, somehow, coldsync
> > installs ColdSync.pm and other files in
> > /usr/local/lib/site_perl/5.6.0/ColdSync.pm
> >
> > This is wrong!
> >
> > I fixed it by doing...
> >
> > sudo cp /usr/local/lib/site_perl/5.6.0/* -r
> /usr/lib/perl5/site_perl/5.6.0/
> >
> > I'm no perl expert, so I don't know what is going on.
> >
> > I have redhat 7.1.
>
> 	Perl under Redhat is broken: it wants to put locally-installed
> modules in /usr, instead of /usr/local . This violates a hidden
> assumption in the ColdSync Makefiles: that the Perl stuff goes in a
> subdirectory of ${PREFIX}.

It's not broken, it's installed from a different point of view.

> 	The workaround is to build ColdSync without the Perl stuff,
> then install the Perl modules separately:
>
> 		./configure --without-perl
> 		make
> 		make install
> 		cd perl/ColdSync
> 		perl Makefile.PL
> 		make
> 		make install

there are two easier ways:
perl will happily tell you what its prefix is

perl -MConfig -e 'print $Config{prefix}'

which can be used on any configline.

but indisputably the BETTER way to do it is to use Perl's makefile.pl
mechanism, which you've illustrated above, but could be shortened to

perl Makefile.PL && make && make test && make install

But now that I consider it, generating that exact behavior from a Makefile
might not be very fun. :-)

my $.02

L8r,
Rob

#!/usr/bin/perl -w
use Disclaimer qw/:standard/;



-- 
This message was sent through the coldsync-hackers mailing list.  To remove
yourself from this mailing list, send a message to majordomo@thedotin.net
with the words "unsubscribe coldsync-hackers" in the message body.  For more
information on Coldsync, send mail to coldsync-hackers-owner@thedotin.net.