delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/07/14/10:02:17

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <6910a60807140701l4647d840k914faa8a58f909b5@mail.gmail.com>
Date: Mon, 14 Jul 2008 16:01:48 +0200
From: "Reini Urban" <rurban AT x-ray DOT at>
To: cygwin AT cygwin DOT com
Subject: Re: installing DBI from cpan and getting this...
In-Reply-To: <4879A52F.5050509@users.sourceforge.net>
MIME-Version: 1.0
References: <48799A1C DOT 8070705 AT gmail DOT com> <4879A52F DOT 5050509 AT users DOT sourceforge DOT net>
X-Google-Sender-Auth: 68d0afb514333fe2
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

2008/7/13 Yaakov (Cygwin Ports):
> thefinn wrote:
> | what the hell is it trying to do to /usr/bin anyhow? should it not just
> | install into /usr/lib/perl/site/blah ???
>
> Some perl modules install scripts into /usr/bin.  In this case, perl-DBI
> installs dbilogstrip, dbiprof, and dbiproxy.

BTW: I'm just considering switching from /usr/bin/ to
sitebin='/usr/local/bin'
sitescript='/usr/local/bin'

For now I'm testing it with -Dusedevel configurations, but the maint
5.10.0.-6 package could use it as well.
What do you think?
cpan bin's and scripts would then go into /usr/local/bin/

> | Is there not a package I can install for this apart from compiling the
> | cpan one?
>
> You could use cygport, or get the package from Cygwin Ports.  But the
> simplest thing to do would be to fix your permissions on /usr/bin,
> providing that you have the right to do so.

Indeed, using cpan is the simpliest solution.
If you have no  /usr/bin/ write permissions you have to use a private
prefix in your
 ~/.cpan/CPAN/MyConfig.pm:
'makepl_arg' => q[PREFIX=/home/<USERNAME>/perl]

And add /home/<USERNAME>/perl/lib to your PERL5LIB environment and
/home/<USERNAME>/perl/bin to your path.

If you don't have a  ~/.cpan/CPAN/MyConfig.pm,
you can create it with perl -MCPAN -e'mkmyconfig'
Answer the first question with 'no' and use PREFIX=~/perl at <makepl_arg>

All these are basic perl questions and not related to cygwin.
-- 
Reini Urban

--
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