summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Melo <melo@simplicidade.org>2015-10-14 16:00:58 +0100
committerPedro Melo <melo@simplicidade.org>2015-10-14 16:00:58 +0100
commitbadc819c07f4f9b0640fed280775d03d2ebb87e1 (patch)
tree73ac76e4c5ab8ac24d11749d1c68aa83783896b3
parente14a1207bec63e43a6266184376b6a039cb9c5d2 (diff)
downloadcarton-badc819c07f4f9b0640fed280775d03d2ebb87e1.tar.gz
How to make carton install use perlbrew perl
Describe the command line to use to make Carton install use the perl that was selected using perlbrew, instead of system perl.
-rw-r--r--lib/Carton/Doc/FAQ.pod8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Carton/Doc/FAQ.pod b/lib/Carton/Doc/FAQ.pod
index ec9a575..9658fe6 100644
--- a/lib/Carton/Doc/FAQ.pod
+++ b/lib/Carton/Doc/FAQ.pod
@@ -109,4 +109,12 @@ L<Any::Moose>.
=back
+=head2 I'm using perlbrew, but C<< carton install >> uses system perl, how to fix?
+Instead of C<< carton install >>, use C<< perl `which carton` install >>.
+
+This will force the use of the C<perl> from your PATH, and not the C</usr/bin/perl>
+that is hard-coded at the top of the C<carton> script.
+
+Carton will do the right thing when calling C<cpanm> to install your dependencies,
+running it under the same C<perl> as Carton is running on.