[Catalyst] CPAN, Module::Build, and "Sorry, PREFIX is not supported"

David Christensen dpchrist at holgerdanske.com
Sat Nov 19 05:39:02 CET 2005


catalyst:

I am attempting to install Bundle::Catalyst per Catalyst::Manual::Intro
(http://search.cpan.org/~mramberg/Catalyst-5.56/lib/Catalyst/Manual/Intro.pod)
into my user account.  While I might be able to install it as root on my
development server, I don't have this option on my shared hosting account
production server.


I have configured CPAN with the PREFIX option:

    dpchrist at p166v:~$ grep -r PREFIX .cpan/CPAN/MyConfig.pm
      'makepl_arg' => q[PREFIX=/home/dpchrist],


When I invoke CPAN and ask it to install the Catalyst bundle, Module::Build
fails with the following warning:

    Sorry, PREFIX is not supported.  See the Module::Build
    documentation for 'destdir' or 'install_base' instead.

Console session follows FYI.  This situation snowballs when CPAN gets to modules
that depend upon Module::Build.


Looking at the Module::Build documentation
(http://www.cpan.org/modules/by-module/Module/Module-Build-0.2611.readme), I see
some discussion of the above issues under "How Installation Paths are
Determined", but I lack the knowledge and/or skills to apply this information
and make CPAN work.


Any suggestions?


TIA,

David



dpchrist at p166v:~$ perl -MCPAN -e 'install Bundle::Catalyst'
CPAN: Storable loaded ok
Going to read /home/dpchrist/.cpan/Metadata
  Database was generated on Sat, 15 Oct 2005 16:59:40 GMT
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
  ftp://carroll.cac.psu.edu/pub/CPAN/authors/01mailrc.txt.gz
Going to read /home/dpchrist/.cpan/sources/authors/01mailrc.txt.gz
Fetching with LWP:
  ftp://carroll.cac.psu.edu/pub/CPAN/modules/02packages.details.txt.gz
Going to read /home/dpchrist/.cpan/sources/modules/02packages.details.txt.gz
  Database was generated on Fri, 18 Nov 2005 22:50:02 GMT
Fetching with LWP:
  ftp://carroll.cac.psu.edu/pub/CPAN/modules/03modlist.data.gz
Going to read /home/dpchrist/.cpan/sources/modules/03modlist.data.gz
Going to write /home/dpchrist/.cpan/Metadata
Fetching with LWP:
  ftp://carroll.cac.psu.edu/pub/CPAN/authors/id/S/SR/SRI/Bundle-Catalyst-0.04.ta
r.gz
CPAN: Digest::MD5 loaded ok
Fetching with LWP:
  ftp://carroll.cac.psu.edu/pub/CPAN/authors/id/S/SR/SRI/CHECKSUMS
Checksum for /home/dpchrist/.cpan/sources/authors/id/S/SR/SRI/Bundle-Catalyst-0.
04.tar.gz ok
Scanning cache /home/dpchrist/.cpan/build for sizes
Bundle-Catalyst-0.04/
Bundle-Catalyst-0.04/Catalyst.pm
Bundle-Catalyst-0.04/Changes
Bundle-Catalyst-0.04/MANIFEST
Bundle-Catalyst-0.04/META.yml
Bundle-Catalyst-0.04/Makefile.PL
Bundle-Catalyst-0.04/README
Bundle-Catalyst-0.04/t/
Bundle-Catalyst-0.04/t/01use.t
Bundle-Catalyst-0.04/t/02pod.t
Bundle-Catalyst-0.04/t/03podcoverage.t
Running install for module Catalyst
Running make for M/MR/MRAMBERG/Catalyst-5.56.tar.gz
Fetching with LWP:
  ftp://carroll.cac.psu.edu/pub/CPAN/authors/id/M/MR/MRAMBERG/Catalyst-5.56.tar.
gz
Fetching with LWP:
  ftp://carroll.cac.psu.edu/pub/CPAN/authors/id/M/MR/MRAMBERG/CHECKSUMS
Checksum for /home/dpchrist/.cpan/sources/authors/id/M/MR/MRAMBERG/Catalyst-5.56
.tar.gz ok
Catalyst-5.56/
Catalyst-5.56/Build.PL
Catalyst-5.56/Changes
Catalyst-5.56/lib/
Catalyst-5.56/lib/Catalyst/
Catalyst-5.56/lib/Catalyst/Action.pm
Catalyst-5.56/lib/Catalyst/ActionContainer.pm
Catalyst-5.56/lib/Catalyst/AttrContainer.pm
Catalyst-5.56/lib/Catalyst/Base.pm
Catalyst-5.56/lib/Catalyst/Build.pm
Catalyst-5.56/lib/Catalyst/Component.pm
Catalyst-5.56/lib/Catalyst/Controller.pm
Catalyst-5.56/lib/Catalyst/Dispatcher.pm
Catalyst-5.56/lib/Catalyst/DispatchType/
Catalyst-5.56/lib/Catalyst/DispatchType/Default.pm
Catalyst-5.56/lib/Catalyst/DispatchType/Index.pm
Catalyst-5.56/lib/Catalyst/DispatchType/Path.pm
Catalyst-5.56/lib/Catalyst/DispatchType/Regex.pm
Catalyst-5.56/lib/Catalyst/DispatchType.pm
Catalyst-5.56/lib/Catalyst/Engine/
Catalyst-5.56/lib/Catalyst/Engine/CGI.pm
Catalyst-5.56/lib/Catalyst/Engine/FastCGI.pm
Catalyst-5.56/lib/Catalyst/Engine/HTTP/
Catalyst-5.56/lib/Catalyst/Engine/HTTP/Restarter/
Catalyst-5.56/lib/Catalyst/Engine/HTTP/Restarter/Watcher.pm
Catalyst-5.56/lib/Catalyst/Engine/HTTP/Restarter.pm
Catalyst-5.56/lib/Catalyst/Engine/HTTP.pm
Catalyst-5.56/lib/Catalyst/Engine.pm
Catalyst-5.56/lib/Catalyst/Exception.pm
Catalyst-5.56/lib/Catalyst/Helper.pm
Catalyst-5.56/lib/Catalyst/Log.pm
Catalyst-5.56/lib/Catalyst/Manual/
Catalyst-5.56/lib/Catalyst/Manual/Cookbook.pod
Catalyst-5.56/lib/Catalyst/Manual/FAQ.pod
Catalyst-5.56/lib/Catalyst/Manual/Internals.pod
Catalyst-5.56/lib/Catalyst/Manual/Intro.pod
Catalyst-5.56/lib/Catalyst/Manual/Plugins.pod
Catalyst-5.56/lib/Catalyst/Manual/Tutorial.pod
Catalyst-5.56/lib/Catalyst/Manual/WritingPlugins.pod
Catalyst-5.56/lib/Catalyst/Manual.pod
Catalyst-5.56/lib/Catalyst/Model.pm
Catalyst-5.56/lib/Catalyst/Plugin/
Catalyst-5.56/lib/Catalyst/Plugin/Static/
Catalyst-5.56/lib/Catalyst/Plugin/Static/Simple.pm
Catalyst-5.56/lib/Catalyst/Request/
Catalyst-5.56/lib/Catalyst/Request/Upload.pm
Catalyst-5.56/lib/Catalyst/Request.pm
Catalyst-5.56/lib/Catalyst/Response.pm
Catalyst-5.56/lib/Catalyst/Test.pm
Catalyst-5.56/lib/Catalyst/Utils.pm
Catalyst-5.56/lib/Catalyst/View.pm
Catalyst-5.56/lib/Catalyst.pm
Catalyst-5.56/Makefile.PL
Catalyst-5.56/MANIFEST
Catalyst-5.56/META.yml
Catalyst-5.56/README
Catalyst-5.56/script/
Catalyst-5.56/script/catalyst.pl
Catalyst-5.56/t/
Catalyst-5.56/t/01use.t
Catalyst-5.56/t/02pod.t
Catalyst-5.56/t/03podcoverage.t
Catalyst-5.56/t/conf/
Catalyst-5.56/t/conf/extra.conf.in
Catalyst-5.56/t/live/
Catalyst-5.56/t/live/component/
Catalyst-5.56/t/live/component/controller/
Catalyst-5.56/t/live/component/controller/action/
Catalyst-5.56/t/live/component/controller/action/auto.t
Catalyst-5.56/t/live/component/controller/action/begin.t
Catalyst-5.56/t/live/component/controller/action/default.t
Catalyst-5.56/t/live/component/controller/action/detach.t
Catalyst-5.56/t/live/component/controller/action/end.t
Catalyst-5.56/t/live/component/controller/action/forward.t
Catalyst-5.56/t/live/component/controller/action/global.t
Catalyst-5.56/t/live/component/controller/action/index.t
Catalyst-5.56/t/live/component/controller/action/inheritance.t
Catalyst-5.56/t/live/component/controller/action/local.t
Catalyst-5.56/t/live/component/controller/action/multipath.t
Catalyst-5.56/t/live/component/controller/action/path.t
Catalyst-5.56/t/live/component/controller/action/private.t
Catalyst-5.56/t/live/component/controller/action/regexp.t
Catalyst-5.56/t/live/component/controller/action/streaming.t
Catalyst-5.56/t/live/engine/
Catalyst-5.56/t/live/engine/request/
Catalyst-5.56/t/live/engine/request/body.t
Catalyst-5.56/t/live/engine/request/cookies.t
Catalyst-5.56/t/live/engine/request/headers.t
Catalyst-5.56/t/live/engine/request/parameters.t
Catalyst-5.56/t/live/engine/request/uploads.t
Catalyst-5.56/t/live/engine/request/uri.t
Catalyst-5.56/t/live/engine/response/
Catalyst-5.56/t/live/engine/response/cookies.t
Catalyst-5.56/t/live/engine/response/errors.t
Catalyst-5.56/t/live/engine/response/headers.t
Catalyst-5.56/t/live/engine/response/large.t
Catalyst-5.56/t/live/engine/response/redirect.t
Catalyst-5.56/t/live/engine/response/status.t
Catalyst-5.56/t/live/engine/setup/
Catalyst-5.56/t/live/engine/setup/basics.t
Catalyst-5.56/t/live/engine/setup/plugins.t
Catalyst-5.56/t/live/lib/
Catalyst-5.56/t/live/lib/Catalyst/
Catalyst-5.56/t/live/lib/Catalyst/Plugin/
Catalyst-5.56/t/live/lib/Catalyst/Plugin/Test/
Catalyst-5.56/t/live/lib/Catalyst/Plugin/Test/Errors.pm
Catalyst-5.56/t/live/lib/Catalyst/Plugin/Test/Headers.pm
Catalyst-5.56/t/live/lib/Catalyst/Plugin/Test/Plugin.pm
Catalyst-5.56/t/live/lib/TestApp/
Catalyst-5.56/t/live/lib/TestApp/Controller/
Catalyst-5.56/t/live/lib/TestApp/Controller/Action/
Catalyst-5.56/t/live/lib/TestApp/Controller/Action/Auto/
Catalyst-5.56/t/live/lib/TestApp/Controller/Action/Auto/Abort.pm
Catalyst-5.56/t/live/lib/TestApp/Controller/Action/Auto/Deep.pm
Catalyst-5.56/t/live/lib/TestApp/Controller/Action/Auto.pm
Catalyst-5.56/t/live/lib/TestApp/Controller/Action/Begin.pm
Catalyst-5.56/t/live/lib/TestApp/Controller/Action/Default.pm
Catalyst-5.56/t/live/lib/TestApp/Controller/Action/Detach.pm
Catalyst-5.56/t/live/lib/TestApp/Controller/Action/End.pm
Catalyst-5.56/t/live/lib/TestApp/Controller/Action/Forward.pm
Catalyst-5.56/t/live/lib/TestApp/Controller/Action/Global.pm
Catalyst-5.56/t/live/lib/TestApp/Controller/Action/Index.pm
Catalyst-5.56/t/live/lib/TestApp/Controller/Action/Inheritance.pm
Catalyst-5.56/t/live/lib/TestApp/Controller/Action/Local.pm
Catalyst-5.56/t/live/lib/TestApp/Controller/Action/Multipath.pm
Catalyst-5.56/t/live/lib/TestApp/Controller/Action/Path.pm
Catalyst-5.56/t/live/lib/TestApp/Controller/Action/Private.pm
Catalyst-5.56/t/live/lib/TestApp/Controller/Action/Regexp.pm
Catalyst-5.56/t/live/lib/TestApp/Controller/Action/Relative.pm
Catalyst-5.56/t/live/lib/TestApp/Controller/Action/Streaming.pm
Catalyst-5.56/t/live/lib/TestApp/Controller/Action.pm
Catalyst-5.56/t/live/lib/TestApp/Controller/Dump.pm
Catalyst-5.56/t/live/lib/TestApp/Controller/Engine/
Catalyst-5.56/t/live/lib/TestApp/Controller/Engine/Request/
Catalyst-5.56/t/live/lib/TestApp/Controller/Engine/Request/Uploads.pm
Catalyst-5.56/t/live/lib/TestApp/Controller/Engine/Request/URI.pm
Catalyst-5.56/t/live/lib/TestApp/Controller/Engine/Response/
Catalyst-5.56/t/live/lib/TestApp/Controller/Engine/Response/Cookies.pm
Catalyst-5.56/t/live/lib/TestApp/Controller/Engine/Response/Errors.pm
Catalyst-5.56/t/live/lib/TestApp/Controller/Engine/Response/Headers.pm
Catalyst-5.56/t/live/lib/TestApp/Controller/Engine/Response/Large.pm
Catalyst-5.56/t/live/lib/TestApp/Controller/Engine/Response/Redirect.pm
Catalyst-5.56/t/live/lib/TestApp/Controller/Engine/Response/Status.pm
Catalyst-5.56/t/live/lib/TestApp/Controller/Index.pm
Catalyst-5.56/t/live/lib/TestApp/View/
Catalyst-5.56/t/live/lib/TestApp/View/Dump/
Catalyst-5.56/t/live/lib/TestApp/View/Dump/Parameters.pm
Catalyst-5.56/t/live/lib/TestApp/View/Dump/Request.pm
Catalyst-5.56/t/live/lib/TestApp/View/Dump/Response.pm
Catalyst-5.56/t/live/lib/TestApp/View/Dump.pm
Catalyst-5.56/t/live/lib/TestApp.pm
Catalyst-5.56/t/live/plugin/
Catalyst-5.56/t/live/plugin/loaded.t
Catalyst-5.56/t/optional/
Catalyst-5.56/t/optional/apache-cgi.pl
Catalyst-5.56/t/optional/apache-fastcgi.pl
Catalyst-5.56/t/optional/http-server-restart.t
Catalyst-5.56/t/optional/http-server.t
Catalyst-5.56/t/optional/memleak.t
Catalyst-5.56/t/optional/stress.t
Catalyst-5.56/t/optional/stress.yml
Catalyst-5.56/t/optional/threads.t
Catalyst-5.56/t/unit/
Catalyst-5.56/t/unit/core/
Catalyst-5.56/t/unit/core/component.t
Catalyst-5.56/t/unit/core/mvc.t
Catalyst-5.56/t/unit/core/path_to.t
Catalyst-5.56/t/unit/core/uri_for.t

  CPAN.pm: Going to build M/MR/MRAMBERG/Catalyst-5.56.tar.gz

This module requires Module::Build to install itself.
  Install Module::Build now from CPAN? [y]
CPAN: Storable loaded ok
Going to read /home/dpchrist/.cpan/Metadata
  Database was generated on Fri, 18 Nov 2005 22:50:02 GMT
Running install for module Module::Build::Compat
Running make for K/KW/KWILLIAMS/Module-Build-0.2611.tar.gz
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
  ftp://carroll.cac.psu.edu/pub/CPAN/authors/id/K/KW/KWILLIAMS/Module-Build-0.26
11.tar.gz
CPAN: Digest::MD5 loaded ok
Fetching with LWP:
  ftp://carroll.cac.psu.edu/pub/CPAN/authors/id/K/KW/KWILLIAMS/CHECKSUMS
Checksum for /home/dpchrist/.cpan/sources/authors/id/K/KW/KWILLIAMS/Module-Build
-0.2611.tar.gz ok
Scanning cache /home/dpchrist/.cpan/build for sizes
Module-Build-0.2611/
Module-Build-0.2611/Build.PL
Module-Build-0.2611/Changes
Module-Build-0.2611/INSTALL
Module-Build-0.2611/lib/
Module-Build-0.2611/lib/Module/
Module-Build-0.2611/lib/Module/Build/
Module-Build-0.2611/lib/Module/Build/Base.pm
Module-Build-0.2611/lib/Module/Build/Compat.pm
Module-Build-0.2611/lib/Module/Build/Cookbook.pm
Module-Build-0.2611/lib/Module/Build/Platform/
Module-Build-0.2611/lib/Module/Build/Platform/aix.pm
Module-Build-0.2611/lib/Module/Build/Platform/Amiga.pm
Module-Build-0.2611/lib/Module/Build/Platform/cygwin.pm
Module-Build-0.2611/lib/Module/Build/Platform/darwin.pm
Module-Build-0.2611/lib/Module/Build/Platform/Default.pm
Module-Build-0.2611/lib/Module/Build/Platform/EBCDIC.pm
Module-Build-0.2611/lib/Module/Build/Platform/MacOS.pm
Module-Build-0.2611/lib/Module/Build/Platform/MPEiX.pm
Module-Build-0.2611/lib/Module/Build/Platform/os2.pm
Module-Build-0.2611/lib/Module/Build/Platform/RiscOS.pm
Module-Build-0.2611/lib/Module/Build/Platform/Unix.pm
Module-Build-0.2611/lib/Module/Build/Platform/VMS.pm
Module-Build-0.2611/lib/Module/Build/Platform/VOS.pm
Module-Build-0.2611/lib/Module/Build/Platform/Windows.pm
Module-Build-0.2611/lib/Module/Build/PodParser.pm
Module-Build-0.2611/lib/Module/Build/PPMMaker.pm
Module-Build-0.2611/lib/Module/Build.pm
Module-Build-0.2611/Makefile.PL
Module-Build-0.2611/MANIFEST
Module-Build-0.2611/META.yml
Module-Build-0.2611/README
Module-Build-0.2611/scripts/
Module-Build-0.2611/scripts/config_data
Module-Build-0.2611/SIGNATURE
Module-Build-0.2611/t/
Module-Build-0.2611/t/basic.t
Module-Build-0.2611/t/common.pl
Module-Build-0.2611/t/compat.t
Module-Build-0.2611/t/ext.t
Module-Build-0.2611/t/extend.t
Module-Build-0.2611/t/files.t
Module-Build-0.2611/t/install.t
Module-Build-0.2611/t/lib/
Module-Build-0.2611/t/lib/ModuleBuildOne.pm
Module-Build-0.2611/t/manifypods.t
Module-Build-0.2611/t/notes.t
Module-Build-0.2611/t/pod_parser.t
Module-Build-0.2611/t/runthrough.t
Module-Build-0.2611/t/Sample/
Module-Build-0.2611/t/Sample/bin/
Module-Build-0.2611/t/Sample/bin/sample.pl
Module-Build-0.2611/t/Sample/Build.PL
Module-Build-0.2611/t/Sample/lib/
Module-Build-0.2611/t/Sample/lib/Sample/
Module-Build-0.2611/t/Sample/lib/Sample/Docs.pod
Module-Build-0.2611/t/Sample/lib/Sample/NoPod.pm
Module-Build-0.2611/t/Sample/lib/Sample/Script.PL
Module-Build-0.2611/t/Sample/lib/Sample.pm
Module-Build-0.2611/t/Sample/MANIFEST
Module-Build-0.2611/t/Sample/META.yml
Module-Build-0.2611/t/Sample/script
Module-Build-0.2611/t/Sample/test.foo
Module-Build-0.2611/t/Sample/test.pl
Module-Build-0.2611/t/signature.t
Module-Build-0.2611/t/versions.t
Module-Build-0.2611/t/xs.t
Module-Build-0.2611/t/XSTest/
Module-Build-0.2611/t/XSTest/Build.PL
Module-Build-0.2611/t/XSTest/Changes
Module-Build-0.2611/t/XSTest/empty.h
Module-Build-0.2611/t/XSTest/lib/
Module-Build-0.2611/t/XSTest/lib/XSTest.pm
Module-Build-0.2611/t/XSTest/lib/XSTest.xs
Module-Build-0.2611/t/XSTest/MANIFEST
Module-Build-0.2611/t/XSTest/test.pl

  CPAN.pm: Going to build K/KW/KWILLIAMS/Module-Build-0.2611.tar.gz

Sorry, PREFIX is not supported.  See the Module::Build
documentation for 'destdir' or 'install_base' instead.
Running make test
  Make had some problems, maybe interrupted? Won't test
Running make install
  Make had some problems, maybe interrupted? Won't install
 *** Cannot install without Module::Build.  Exiting ...
Running make test
  Make had some problems, maybe interrupted? Won't test
Running make install
  Make had some problems, maybe interrupted? Won't install
Running install for module Catalyst::Plugin::FormValidator
Running make for M/MR/MRAMBERG/Catalyst-Plugin-FormValidator-0.02.tar.gz
Fetching with LWP:
  ftp://carroll.cac.psu.edu/pub/CPAN/authors/id/M/MR/MRAMBERG/Catalyst-Plugin-Fo
rmValidator-0.02.tar.gz
Checksum for /home/dpchrist/.cpan/sources/authors/id/M/MR/MRAMBERG/Catalyst-Plug
in-FormValidator-0.02.tar.gz ok
Catalyst-Plugin-FormValidator-0.02/
Catalyst-Plugin-FormValidator-0.02/t/
Catalyst-Plugin-FormValidator-0.02/t/02pod.t
Catalyst-Plugin-FormValidator-0.02/t/01use.t
Catalyst-Plugin-FormValidator-0.02/t/03podcoverage.t
Catalyst-Plugin-FormValidator-0.02/FormValidator.pm
Catalyst-Plugin-FormValidator-0.02/META.yml
Catalyst-Plugin-FormValidator-0.02/Changes
Catalyst-Plugin-FormValidator-0.02/MANIFEST
Catalyst-Plugin-FormValidator-0.02/Makefile.PL
Catalyst-Plugin-FormValidator-0.02/README

  CPAN.pm: Going to build M/MR/MRAMBERG/Catalyst-Plugin-FormValidator-0.02.tar.g
z

Checking if your kit is complete...
Looks good
Warning: prerequisite Catalyst 2.99 not found.
Warning: prerequisite Data::FormValidator 0 not found.
Writing Makefile for Catalyst::Plugin::FormValidator
---- Unsatisfied dependencies detected during [M/MR/MRAMBERG/Catalyst-Plugin-For
mValidator-0.02.tar.gz] -----
    Catalyst
    Data::FormValidator
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]
dpchrist at p166v:~$




More information about the Catalyst mailing list