delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/05/01/13:48:00

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <4093E310.4030201@x-ray.at>
Date: Sat, 01 May 2004 19:49:04 +0200
From: Reini Urban <rurban AT x-ray DOT at>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7b) Gecko/20040316 MultiZilla/1.5.0.4h
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: AS Perl versus cygwin Perl
References: <o7c7901faq18ovanbhvoiphkdobtc47q9t AT 4ax DOT com>
In-Reply-To: <o7c7901faq18ovanbhvoiphkdobtc47q9t@4ax.com>
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on hornet.mur.at
X-Spam-Level:
X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.63
X-IsSubscribed: yes

zzapper schrieb:
> I still use Active State Perl rather than cygwin's native Perl, the
> reason being that I have trouble intalling Perl modules via > cpan in
> particular the MySQL DBIs & DBD, cpan keeps finding other modules
> which need installing before giving up. Whereas the AS PPM (Perl
> Package Manager) works everytime.

Because this just installs the binary for one special version.
CPAN installs it from source for every possible perl combination and 
platform.

> Is this just my experience? (I've tried disabling AS-Perl before doing
> my installs)

DBD::mysql still has a cygwin install problem, that it expects the mysql 
client with sockets to work. And the default host is still "localhost" 
and not "127.0.0.1". (Yes, I've reported that before, sent patches, 
often enough)

via cpan you have to do:
cpan look DBD::mysql
perl Makefile.PL --testhost=127.0.0.1
make
make test
make install

Works fine for me:
t/mysql............FAILED tests 46-48
         Failed 3/68 tests, 95.59% okay
t/mysql.t                 68    3   4.41%  46-48
(Haven't checked why this fails. Doesn't seem to be dramatic)

You may want to symlink the mysql include and lib locations to the path 
where CPAN expects them.
I have:
   cflags = -I'/usr/local/include/mysql'
   libs   = -L/usr/local/lib/mysql -lmysqlclient -lz -lcrypt -lm
At the end I wrote my own mysql_config.

Once your cpan installation base is fine you have about 100 times more 
packages to install than via PPM. Even via cpanplus. Just Module::Build 
(and a lot dependent packages) had problems the last time I tried.
But I've stopped automatic cpantest'ing for cygwin now, because I'm on a 
different machine now. And I was the only cpantester for this platform 
AFAIK.
-- 
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019