public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* installing DBI from cpan and getting this...
@ 2008-07-13  6:02 thefinn
  2008-07-13  6:48 ` Yaakov (Cygwin Ports)
  0 siblings, 1 reply; 5+ messages in thread
From: thefinn @ 2008-07-13  6:02 UTC (permalink / raw)
  To: cygwin

what the hell is it trying to do to /usr/bin anyhow? should it not just 
install into /usr/lib/perl/site/blah ???

Is there not a package I can install for this apart from compiling the 
cpan one?

and just generally :(


test.pl done
  TIMB/DBI-1.605.tar.gz
  make test -- OK
Running make install
Prepending /home/Peter/.cpan/build/DBI-1.605-JM46bf/blib/arch 
/home/Peter/.cpan/
build/DBI-1.605-JM46bf/blib/lib to PERL5LIB for 'install'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/usr/bin'
Do not have write permissions on '/usr/bin'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 at -e line 1
Files found in blib/arch: installing files in blib/lib into architecture 
depende
nt library tree
make: *** [pure_site_install] Error 2
  TIMB/DBI-1.605.tar.gz
  make install  -- NOT OK
----
  You may have to su to root to install the package
  (Or you may want to run something like
    o conf make_install_make_command 'sudo make'

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: installing DBI from cpan and getting this...
  2008-07-13  6:02 installing DBI from cpan and getting this thefinn
@ 2008-07-13  6:48 ` Yaakov (Cygwin Ports)
  2008-07-14 14:02   ` Reini Urban
  0 siblings, 1 reply; 5+ messages in thread
From: Yaakov (Cygwin Ports) @ 2008-07-13  6:48 UTC (permalink / raw)
  To: cygwin

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

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.

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


Yaakov
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAkh5pS8ACgkQpiWmPGlmQSPR5wCg/bpiH/iEohFg1QBWD656cdes
JrIAn36H6x3tEISzl/0PGlZPBMCKDDoD
=DBv8
-----END PGP SIGNATURE-----

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: installing DBI from cpan and getting this...
  2008-07-13  6:48 ` Yaakov (Cygwin Ports)
@ 2008-07-14 14:02   ` Reini Urban
  2008-07-14 16:29     ` Yaakov (Cygwin Ports)
  0 siblings, 1 reply; 5+ messages in thread
From: Reini Urban @ 2008-07-14 14:02 UTC (permalink / raw)
  To: cygwin

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/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: installing DBI from cpan and getting this...
  2008-07-14 14:02   ` Reini Urban
@ 2008-07-14 16:29     ` Yaakov (Cygwin Ports)
  2008-07-14 17:26       ` Reini Urban
  0 siblings, 1 reply; 5+ messages in thread
From: Yaakov (Cygwin Ports) @ 2008-07-14 16:29 UTC (permalink / raw)
  To: cygwin

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Reini Urban wrote:
| 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/

I suppose that makes sense for site*, as long as vendor* remains in /usr.


Yaakov
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAkh7fsIACgkQpiWmPGlmQSPL9gCfVr4nQPPrdc68i3+cfWSJzE1Y
+2AAoPbkUG45TceuBZJabYZE57yptXO5
=bVIl
-----END PGP SIGNATURE-----

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: installing DBI from cpan and getting this...
  2008-07-14 16:29     ` Yaakov (Cygwin Ports)
@ 2008-07-14 17:26       ` Reini Urban
  0 siblings, 0 replies; 5+ messages in thread
From: Reini Urban @ 2008-07-14 17:26 UTC (permalink / raw)
  To: cygwin

Yaakov (Cygwin Ports) schrieb:
> Reini Urban wrote:
> | 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/
> 
> I suppose that makes sense for site*, as long as vendor* remains in /usr.

Yes, just for site, so it will only affect cpan installed packages by 
the user directly. Not our vendor packages of course.

Anyone knows out of the head how others do it?
gentoo, fedora, debian, freebsd.

I'll discuss with them - as long as it is perlish and not too debian - 
and follow the consensus.
-- 
Reini Urban
http://phpwiki.org/  http://murbreak.at/

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-07-14 17:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-13  6:02 installing DBI from cpan and getting this thefinn
2008-07-13  6:48 ` Yaakov (Cygwin Ports)
2008-07-14 14:02   ` Reini Urban
2008-07-14 16:29     ` Yaakov (Cygwin Ports)
2008-07-14 17:26       ` Reini Urban

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).