diff options
author | Tatsuhiko Miyagawa <miyagawa@bulknews.net> | 2015-10-18 15:38:42 -0700 |
---|---|---|
committer | Tatsuhiko Miyagawa <miyagawa@bulknews.net> | 2015-10-18 15:38:42 -0700 |
commit | 474e3adcf9bc1115c8d39b51382df22d942324aa (patch) | |
tree | f633eb6615c80fd4d8a130fe1d9e6c1938295bfc | |
parent | 2c8dded6ecc765796fc991b1c6aa6340960915d5 (diff) | |
download | carton-474e3adcf9bc1115c8d39b51382df22d942324aa.tar.gz |
tidy up the FAQ. perlbrew using /usr/bin/env perl is actually fine, as long as it picks up the right perl when installing Carton.
-rw-r--r-- | lib/Carton/Doc/FAQ.pod | 41 |
1 files changed, 4 insertions, 37 deletions
diff --git a/lib/Carton/Doc/FAQ.pod b/lib/Carton/Doc/FAQ.pod index 7bfd5e1..5fb5383 100644 --- a/lib/Carton/Doc/FAQ.pod +++ b/lib/Carton/Doc/FAQ.pod @@ -111,41 +111,9 @@ L<Any::Moose>. =head2 I'm using perlbrew, but C<< carton install >> uses system perl, how to fix? -Instead of C<< carton install >>, use C<< perl -S 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. - -=head2 Using C<< perl -S carton install >> is ugly, any permanent fix? - -The issue is most likelly caused by a inital bad install of C<cpanm>, -that ended up with a shebang line pointed to the system perl. - -To fix: - -=over 4 - -=item Make sure you perlbrew-installed cpanm is not using system perl - -Run this: C<< head -1 "$PERLBREW_ROOT/bin/cpanm" >> - -If the output is not C<< #!/usr/bin/env perl >>, then you have -a bad C<cpanm> installed. - -Run C<< perlbrew install-cpanm >> to fix it. Re-run the previous -command to make sure it was fixed. - -=item Re-install cpanm on your perlbrew environment - -Switch to the perlbrew environment you plan on using and force -install C<cpanm>. Use C<< "$PERLBREW_ROOT/bin/cpanm -f App::cpanminus >> -to make sure you use the newly fixed C<cpanm> from perlbrew. - -This will make sure that your new environment has a C<cpanm> that will -use the correct C<perl> for that environment. +The issue is most likelly caused by a inital bad install of C<cpanm> +or C<carton> or both, that ended up with a shebang line pointed to the +(wrong) system perl. =item Re-install Carton on you perlbrew environment @@ -155,5 +123,4 @@ the same will happen with C<carton>. =back -After this process, your C<< carton install >> will use the -correct C<perl>. +Make sure the shebang (the first line) of your C<carton> script points to the right perl path, rather than C</usr/bin/perl>. |