perlbrew and modules

	I've run into another strange problem that I don't understand.  =
Running the script below produces the output "Perl v5.26.1".  However, =
if I add the line: use CGI::Carp qw(fatalsToBrowser);  it produces a 500 =
error.

	On the shared server, this worked as it should, with =
'fatalsToBrowser' showing any errors.  But the VPS is just backwards - =
adding it crashes the script!  This actually happens with any module =
and, yes, they are installed:

> cpanm install CGI::Carp
install is up to date. (0.01)
CGI::Carp is up to date. (4.38)

	I have been fighting with this VPS setup for almost 2 weeks now =
just to get a functioning modern Perl environment and I'm about at my =
wits end.  It shouldn't be this hard.

	I'd appreciate any help.

Thanks,
Frank




#!/home/user/perl5/perlbrew/perls/latest/bin/perl

use v5.26;
use warnings;
use diagnostics;

print "Content-type: text/html\n\n";
say 'Perl '. $^V;=
0
perl
12/7/2017 7:50:17 PM
perl.beginners 29262 articles. 3 followers. Follow

9 Replies
9 Views

Similar Articles

[PageSpeed] 55

On Thu, 7 Dec 2017 11:50:17 -0800
SSC_perl <perl@surfshopcart.com> wrote:

> 	I've run into another strange problem that I don't understand.
> Running the script below produces the output "Perl v5.26.1".  However, if=
 I
> add the line: use CGI::Carp qw(fatalsToBrowser);  it produces a 500 error.
>=20
> 	On the shared server, this worked as it should, with
> 'fatalsToBrowser' showing any errors.  But the VPS is just backwards - ad=
ding
> it crashes the script!  This actually happens with any module and, yes, t=
hey
> are installed:
>=20
> > cpanm install CGI::Carp =20
> install is up to date. (0.01)
> CGI::Carp is up to date. (4.38)
>=20
> 	I have been fighting with this VPS setup for almost 2 weeks now just
> to get a functioning modern Perl environment and I'm about at my wits end.
> It shouldn't be this hard.
>=20
> 	I'd appreciate any help.
>=20
> Thanks,
> Frank
>=20
>=20
>=20
>=20
> #!/home/user/perl5/perlbrew/perls/latest/bin/perl
>=20
> use v5.26;
> use warnings;
> use diagnostics;
>=20
> print "Content-type: text/html\n\n";
> say 'Perl '. $^V;

Hi Frank!

What does:

	say "@INC";

say if you add it to the script?


--=20
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
The Case for File Swapping - http://shlom.in/file-swap

Real men don=E2=80=99t listen to sentences that start with =E2=80=9CReal me=
n don=E2=80=99t=E2=80=9D.
    =E2=80=94 http://whatsup.org.il/article/6023

Please reply to list if it's a mailing list post - http://shlom.in/reply .
0
shlomif
12/7/2017 8:04:52 PM
> On Dec 7, 2017, at 12:04 PM, Shlomi Fish <shlomif@shlomifish.org> =
wrote:
>=20
> What does:
>=20
> 	say "@INC";
>=20
> say if you add it to the script?

	I get:

=
/home/user/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1/x86_64-li=
nux
/home/user/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1
/home/user/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1/x86_64-linux
/home/user/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1

	I found a .cpanm directory in /home/user where all the modules =
are being installed.  Could that have anything to do with it?  I tried =
adding that directory with "use lib" but I still get the 500 error.

Thanks,
Frank=
0
perl
12/7/2017 8:44:51 PM
On Thu, 7 Dec 2017 12:44:51 -0800
SSC_perl <perl@surfshopcart.com> wrote:

> > On Dec 7, 2017, at 12:04 PM, Shlomi Fish <shlomif@shlomifish.org> wrote:
> >=20
> > What does:
> >=20
> > 	say "@INC";
> >=20
> > say if you add it to the script? =20
>=20
> 	I get:
>=20
> /home/user/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1/x86_64-l=
inux
> /home/user/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1
> /home/user/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1/x86_64-linux
> /home/user/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1
>=20
> 	I found a .cpanm directory in /home/user where all the modules are
> being installed.  Could that have anything to do with it?  I tried adding
> that directory with "use lib" but I still get the 500 error.
>=20

you should make sure that the modules you wish to use are in one of the
dirs in @INC. cpanm should install to  the global directories.

> Thanks,
> Frank



--=20
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
https://youtu.be/GoEn1YfYTBM - Tiffany Alvord - =E2=80=9CFall Together=E2=
=80=9D

 <petn-randall>  Writing your own nirvana may be easier than writing a good
                 blog engine ;)
    =E2=80=94 http://is.gd/3Hh82T

Please reply to list if it's a mailing list post - http://shlom.in/reply .
0
shlomif
12/7/2017 9:40:53 PM
> On Dec 7, 2017, at 1:40 PM, Shlomi Fish <shlomif@shlomifish.org> =
wrote:
>=20
> you should make sure that the modules you wish to use are in one of =
the
> dirs in @INC. cpanm should install to  the global directories.

	That's what I thought.  Shouldn't "cpanm install Module::Name" =
do that on it's own?  There's only one perl install and one alias, and =
the alias is selected.  Running "perl -v" returns version 5.26.1 so how =
can I get perlbrew set to install in the current installation?

Frank=
0
perl
12/7/2017 10:32:15 PM
> On Dec 7, 2017, at 1:40 PM, Shlomi Fish <shlomif@shlomifish.org> =
wrote:
>=20
> you should make sure that the modules you wish to use are in one of =
the
> dirs in @INC. cpanm should install to  the global directories.

	Another question.  How can I check to make sure cpanm was =
installed properly under perlbrew?

Frank=
0
perl
12/7/2017 10:37:20 PM
--089e08228550809ce6055fc82ab7
Content-Type: text/plain; charset="UTF-8"

>       I've run into another strange problem that I don't understand.
> Running the script below produces the output "Perl v5.26.1".  However, if
I
> add the line: use CGI::Carp qw(fatalsToBrowser);  it produces a 500 error.
>
>       On the shared server, this worked as it should, with
> 'fatalsToBrowser' showing any errors.

Can you not look a the web server's error_log?  A 500 error would put the
perl error msg in there.  Have you tried just "use" a different module?
Hmm, can you try

#!/home/user/perl5/perlbrew/perls/latest/bin/perl
use v5.26;
use warnings;
use diagnostics;

print "Content-type: text/html\n\n";
print `/home/user/perl5/perlbrew/perls/latest/bin/perl -c
/path/to/my/cgi-bin/file 2>&1` , "\n";

in a different  file?

a

On Thu, Dec 7, 2017 at 1:50 PM, SSC_perl <perl@surfshopcart.com> wrote:

>         I've run into another strange problem that I don't understand.
> Running the script below produces the output "Perl v5.26.1".  However, if I
> add the line: use CGI::Carp qw(fatalsToBrowser);  it produces a 500 error.
>
>         On the shared server, this worked as it should, with
> 'fatalsToBrowser' showing any errors.  But the VPS is just backwards -
> adding it crashes the script!  This actually happens with any module and,
> yes, they are installed:
>
> > cpanm install CGI::Carp
> install is up to date. (0.01)
> CGI::Carp is up to date. (4.38)
>
>         I have been fighting with this VPS setup for almost 2 weeks now
> just to get a functioning modern Perl environment and I'm about at my wits
> end.  It shouldn't be this hard.
>
>         I'd appreciate any help.
>
> Thanks,
> Frank
>
>
>
>
> #!/home/user/perl5/perlbrew/perls/latest/bin/perl
>
> use v5.26;
> use warnings;
> use diagnostics;
>
> print "Content-type: text/html\n\n";
> say 'Perl '. $^V;
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> http://learn.perl.org/
>
>
>


-- 

a

Andy Bach,
afbach@gmail.com
608 658-1890 cell
608 261-5738 wk

--089e08228550809ce6055fc82ab7
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div><span class=3D"gmail-im">&gt;=C2=A0 =C2=A0 =C2=
=A0 =C2=A0I&#39;ve run into another strange problem that I don&#39;t unders=
tand.<br>
&gt; Running the script below produces the output &quot;Perl v5.26.1&quot;.=
=C2=A0 However, if I<br>
&gt; add the line: use CGI::Carp qw(fatalsToBrowser);=C2=A0 it produces a 5=
00 error.<br>
&gt;<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0On the shared server, this worked as it shou=
ld, with<br>
&gt; &#39;fatalsToBrowser&#39; showing any errors.<br><br></span></div><spa=
n class=3D"gmail-im">Can you not look a the web server&#39;s error_log?=C2=
=A0 A 500 error would put the perl error msg in there.=C2=A0 Have you tried=
 just &quot;use&quot; a different module?=C2=A0 Hmm, can you try</span></di=
v><div><br><span class=3D"gmail-im">#!/home/user/perl5/perlbrew/<wbr>perls/=
latest/bin/perl<br>

use v5.26;<br>
use warnings;<br>
use diagnostics;<br>
<br>
print &quot;Content-type: text/html\n\n&quot;;</span></div><div><span class=
=3D"gmail-im">print `</span>/<span class=3D"gmail-im">home/user/perl5/perlb=
rew/<wbr>perls/latest/bin/perl -c /path/to/my/cgi-bin/file 2&gt;&amp;1` , &=
quot;\n&quot;;</span></div><div><span class=3D"gmail-im"><br></span></div><=
div><span class=3D"gmail-im">in a different=C2=A0 file? <br></span></div><d=
iv><span class=3D"gmail-im"><br></span></div><span class=3D"gmail-im">a<br>=
</span></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On T=
hu, Dec 7, 2017 at 1:50 PM, SSC_perl <span dir=3D"ltr">&lt;<a href=3D"mailt=
o:perl@surfshopcart.com" target=3D"_blank">perl@surfshopcart.com</a>&gt;</s=
pan> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex=
;border-left:1px #ccc solid;padding-left:1ex">=C2=A0 =C2=A0 =C2=A0 =C2=A0 I=
&#39;ve run into another strange problem that I don&#39;t understand.=C2=A0=
 Running the script below produces the output &quot;Perl v5.26.1&quot;.=C2=
=A0 However, if I add the line: use CGI::Carp qw(fatalsToBrowser);=C2=A0 it=
 produces a 500 error.<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 On the shared server, this worked as it should,=
 with &#39;fatalsToBrowser&#39; showing any errors.=C2=A0 But the VPS is ju=
st backwards - adding it crashes the script!=C2=A0 This actually happens wi=
th any module and, yes, they are installed:<br>
<br>
&gt; cpanm install CGI::Carp<br>
install is up to date. (0.01)<br>
CGI::Carp is up to date. (4.38)<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 I have been fighting with this VPS setup for al=
most 2 weeks now just to get a functioning modern Perl environment and I&#3=
9;m about at my wits end.=C2=A0 It shouldn&#39;t be this hard.<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 I&#39;d appreciate any help.<br>
<br>
Thanks,<br>
Frank<br>
<br>
<br>
<br>
<br>
#!/home/user/perl5/perlbrew/<wbr>perls/latest/bin/perl<br>
<br>
use v5.26;<br>
use warnings;<br>
use diagnostics;<br>
<br>
print &quot;Content-type: text/html\n\n&quot;;<br>
say &#39;Perl &#39;. $^V;<br>
<span class=3D"HOEnZb"><font color=3D"#888888">--<br>
To unsubscribe, e-mail: <a href=3D"mailto:beginners-unsubscribe@perl.org">b=
eginners-unsubscribe@perl.org</a><br>
For additional commands, e-mail: <a href=3D"mailto:beginners-help@perl.org"=
>beginners-help@perl.org</a><br>
<a href=3D"http://learn.perl.org/" rel=3D"noreferrer" target=3D"_blank">htt=
p://learn.perl.org/</a><br>
<br>
<br>
</font></span></blockquote></div><br><br clear=3D"all"><br>-- <br><div clas=
s=3D"gmail_signature" data-smartmail=3D"gmail_signature"><br>a<br><br>Andy =
Bach,<br><a href=3D"mailto:afbach@gmail.com" target=3D"_blank">afbach@gmail=
..com</a><br>608 658-1890 cell<br>608 261-5738 wk</div>
</div>

--089e08228550809ce6055fc82ab7--
0
afbach
12/7/2017 11:09:54 PM
> On Dec 7, 2017, at 3:09 PM, Andy Bach <afbach@gmail.com> wrote:
>=20
> Can you not look a the web server's error_log?  A 500 error would put =
the perl error msg in there.  Have you tried just "use" a different =
module? =20

	Those errors aren't appearing in the errors log in cPanel.  I =
couldn't find another error log in WHM.

> Hmm, can you try...

	I ran your script and, when I manually include the .cpanm =
directory, it returns:

/home/user/cgi-bin/test.pl syntax OK

otherwise, it returns:

Can't locate CGI/Carp.pm in @INC (you may need to install the CGI::Carp =
module) (@INC contains: =
/home/user/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1/x86_64-li=
nux /home/user/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1 =
/home/user/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1/x86_64-linux =
/home/user/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1) at =
/home/user/cgi-bin/test.pl line 9. BEGIN failed--compilation aborted at =
/home/user/cgi-bin/test.pl line 9.


	Here's more info.  I ran the following command, which produced =
an error:

> perlbrew exec perl -e 'print $]'
Use of uninitialized value in list assignment at =
/home/user/perl5/perlbrew/bin/perlbrew line 2220.
perl-5.26.1
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
5.026001

	Looks like this has been reported for a few years without a =
solution:

https://rt.cpan.org/Public/Bug/Display.html?id=3D111978

	Could this be part of the problem?  I'm running perlbrew 0.80.

Frank

P.S. Re-installing cpanm didn't solve the problem.=
0
perl
12/7/2017 11:29:05 PM
--089e082285508cd561055fc89598
Content-Type: text/plain; charset="UTF-8"

>>       I found a .cpanm directory in /home/user where all the modules are
>> being installed.  Could that have anything to do with it?  I tried adding
>> that directory with "use lib" but I still get the 500 error.

 >  I ran your script and, when I manually include the .cpanm directory, it
returns:
/home/user/cgi-bin/test.pl syntax OK

meaning, you added:
use lib q{/home/user/.cpanm/};

> otherwise, it returns:

Can't locate CGI/Carp.pm in @INC (you may need to install the CGI::Carp
module) (@INC contains: /home/user/perl5/perlbrew/
perls/perl-5.26.1/lib/site_perl/5.26.1/x86_64-linux
/home/user/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1
/home/user/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1/x86_64-linux
/home/user/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1) at
/home/user/cgi-bin/test.pl line 9. BEGIN failed--compilation aborted at
/home/user/cgi-bin/test.pl line 9.

Right, so that's your 500 error. But you added the same line in the
original (before the use Carp line?) and it *didn't* fix the problem?  Can
you sym link the .cpanm dir under one of those @INC dirs.   Hm, there's
also an PERL5LIB env var you can set to add libraries (maybe in the
webserver config).


On Thu, Dec 7, 2017 at 5:29 PM, SSC_perl <perl@surfshopcart.com> wrote:

> > On Dec 7, 2017, at 3:09 PM, Andy Bach <afbach@gmail.com> wrote:
> >
> > Can you not look a the web server's error_log?  A 500 error would put
> the perl error msg in there.  Have you tried just "use" a different module?
>
>         Those errors aren't appearing in the errors log in cPanel.  I
> couldn't find another error log in WHM.
>
> > Hmm, can you try...
>
>         I ran your script and, when I manually include the .cpanm
> directory, it returns:
>
> /home/user/cgi-bin/test.pl syntax OK
>
> otherwise, it returns:
>
> Can't locate CGI/Carp.pm in @INC (you may need to install the CGI::Carp
> module) (@INC contains: /home/user/perl5/perlbrew/
> perls/perl-5.26.1/lib/site_perl/5.26.1/x86_64-linux
> /home/user/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1
> /home/user/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1/x86_64-linux
> /home/user/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1) at
> /home/user/cgi-bin/test.pl line 9. BEGIN failed--compilation aborted at
> /home/user/cgi-bin/test.pl line 9.
>
>
>         Here's more info.  I ran the following command, which produced an
> error:
>
> > perlbrew exec perl -e 'print $]'
> Use of uninitialized value in list assignment at
> /home/user/perl5/perlbrew/bin/perlbrew line 2220.
> perl-5.26.1
> ==========
> 5.026001
>
>         Looks like this has been reported for a few years without a
> solution:
>
> https://rt.cpan.org/Public/Bug/Display.html?id=111978
>
>         Could this be part of the problem?  I'm running perlbrew 0.80.
>
> Frank
>
> P.S. Re-installing cpanm didn't solve the problem.




-- 

a

Andy Bach,
afbach@gmail.com
608 658-1890 cell
608 261-5738 wk

--089e082285508cd561055fc89598
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div><span class=3D"gmail-im">&gt;&gt;=C2=A0 =C2=A0 =
=C2=A0 =C2=A0I found a .cpanm directory in /home/user where all the modules=
 are<br>
&gt;&gt; being installed.=C2=A0 Could that have anything to do with it?=C2=
=A0 I tried adding<br>
&gt;&gt; that directory with &quot;use lib&quot; but I still get the 500 er=
ror.</span></div><div><br></div><div>=C2=A0&gt;=C2=A0 I ran your script and=
, when I manually include the .cpanm directory, it returns:<br>
/home/user/cgi-bin/<a href=3D"http://test.pl" rel=3D"noreferrer" target=3D"=
_blank">test.pl</a> syntax OK<br>
<br></div>meaning, you added:<br></div>use lib q{/home/user/.cpanm/};<br><d=
iv><div><br>&gt; otherwise, it returns:<br>
<br>
Can&#39;t locate CGI/Carp.pm in @INC (you may need to install the CGI::Carp=
 module) (@INC contains: /home/user/perl5/perlbrew/<wbr>perls/perl-5.26.1/l=
ib/site_<wbr>perl/5.26.1/x86_64-linux /home/user/perl5/perlbrew/<wbr>perls/=
perl-5.26.1/lib/site_<wbr>perl/5.26.1 /home/user/perl5/perlbrew/<wbr>perls/=
perl-5.26.1/lib/5.26.1/<wbr>x86_64-linux /home/user/perl5/perlbrew/<wbr>per=
ls/perl-5.26.1/lib/5.26.1) at /home/user/cgi-bin/<a href=3D"http://test.pl"=
 rel=3D"noreferrer" target=3D"_blank">test.pl</a> line 9. BEGIN failed--com=
pilation aborted at /home/user/cgi-bin/<a href=3D"http://test.pl" rel=3D"no=
referrer" target=3D"_blank">test.pl</a> line 9.</div><div><br></div><div>Ri=
ght, so that&#39;s your 500 error. But you added the same line in the origi=
nal (before the use Carp line?) and it *didn&#39;t* fix the problem?=C2=A0 =
Can you sym link the .cpanm dir under one of those @INC dirs.=C2=A0=C2=A0 H=
m, there&#39;s also an PERL5LIB env var you can set to add libraries (maybe=
 in the webserver config). <br></div><div><br>
</div></div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote"=
>On Thu, Dec 7, 2017 at 5:29 PM, SSC_perl <span dir=3D"ltr">&lt;<a href=3D"=
mailto:perl@surfshopcart.com" target=3D"_blank">perl@surfshopcart.com</a>&g=
t;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0=
 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=3D"">&gt; On=
 Dec 7, 2017, at 3:09 PM, Andy Bach &lt;<a href=3D"mailto:afbach@gmail.com"=
>afbach@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Can you not look a the web server&#39;s error_log?=C2=A0 A 500 error w=
ould put the perl error msg in there.=C2=A0 Have you tried just &quot;use&q=
uot; a different module?<br>
<br>
</span>=C2=A0 =C2=A0 =C2=A0 =C2=A0 Those errors aren&#39;t appearing in the=
 errors log in cPanel.=C2=A0 I couldn&#39;t find another error log in WHM.<=
br>
<br>
&gt; Hmm, can you try...<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 I ran your script and, when I manually include =
the .cpanm directory, it returns:<br>
<br>
/home/user/cgi-bin/<a href=3D"http://test.pl" rel=3D"noreferrer" target=3D"=
_blank">test.pl</a> syntax OK<br>
<br>
otherwise, it returns:<br>
<br>
Can&#39;t locate CGI/Carp.pm in @INC (you may need to install the CGI::Carp=
 module) (@INC contains: /home/user/perl5/perlbrew/<wbr>perls/perl-5.26.1/l=
ib/site_<wbr>perl/5.26.1/x86_64-linux /home/user/perl5/perlbrew/<wbr>perls/=
perl-5.26.1/lib/site_<wbr>perl/5.26.1 /home/user/perl5/perlbrew/<wbr>perls/=
perl-5.26.1/lib/5.26.1/<wbr>x86_64-linux /home/user/perl5/perlbrew/<wbr>per=
ls/perl-5.26.1/lib/5.26.1) at /home/user/cgi-bin/<a href=3D"http://test.pl"=
 rel=3D"noreferrer" target=3D"_blank">test.pl</a> line 9. BEGIN failed--com=
pilation aborted at /home/user/cgi-bin/<a href=3D"http://test.pl" rel=3D"no=
referrer" target=3D"_blank">test.pl</a> line 9.<br>
<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Here&#39;s more info.=C2=A0 I ran the following=
 command, which produced an error:<br>
<br>
&gt; perlbrew exec perl -e &#39;print $]&#39;<br>
Use of uninitialized value in list assignment at /home/user/perl5/perlbrew/=
bin/<wbr>perlbrew line 2220.<br>
perl-5.26.1<br>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>
5.026001<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Looks like this has been reported for a few yea=
rs without a solution:<br>
<br>
<a href=3D"https://rt.cpan.org/Public/Bug/Display.html?id=3D111978" rel=3D"=
noreferrer" target=3D"_blank">https://rt.cpan.org/Public/<wbr>Bug/Display.h=
tml?id=3D111978</a><br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Could this be part of the problem?=C2=A0 I&#39;=
m running perlbrew 0.80.<br>
<br>
Frank<br>
<br>
P.S. Re-installing cpanm didn&#39;t solve the problem.</blockquote></div><b=
r><br clear=3D"all"><br>-- <br><div class=3D"gmail_signature" data-smartmai=
l=3D"gmail_signature"><br>a<br><br>Andy Bach,<br><a href=3D"mailto:afbach@g=
mail.com" target=3D"_blank">afbach@gmail.com</a><br>608 658-1890 cell<br>60=
8 261-5738 wk</div>
</div>

--089e082285508cd561055fc89598--
0
afbach
12/7/2017 11:39:50 PM
> On Dec 7, 2017, at 3:39 PM, Andy Bach <afbach@gmail.com> wrote:
>=20
> meaning, you added:
> use lib q{/home/user/.cpanm/};

	Well, no.  That one didn't work.  I had to be specific about =
where CGI::Carp was installed to get it to work:

use lib '/home/user/.cpanm/work/1512448551.26554/CGI-4.38/lib';

> Right, so that's your 500 error. But you added the same line in the =
original (before the use Carp line?) and it *didn't* fix the problem?  =
Can you sym link the .cpanm dir under one of those @INC dirs.   Hm, =
there's also an PERL5LIB env var you can set to add libraries (maybe in =
the webserver config).

	I've read about those, but I'd rather not jerry rig this install =
just to get it to work.  I've been using perlbrew on my Mac (with 5 =
different perls) for years without incident, so that's why I'm at a loss =
as to what's happening on this VPS.  Maybe I should just cut my losses, =
delete everything, and start over.  I just hate doing that after =
spending so much time on something.  It's like admitting defeat and =
giving up. ;)

	I just thought to compare the install on my Mac with the one on =
the VPS and the binaries of perlbrew are exactly the same, but the =
binaries for patchperl and cpanm are wildly different from each other.  =
Are these customized during installation for the platform that running?  =
If not, would it be safe to copy my known good copies over to the server =
(Mac vs Linux)?

Frank=
0
perl
12/8/2017 12:04:24 AM
Reply: