I am trying to upgrade from Perl v5.16.3 supplied by my shared hosting provider to Perl v5.32.0 by using Perlbrew. Perlbrew has installed fine by following the instruction \curl -L https://install.perlbrew.pl | bash from PuTTY.
Perl v5.32.0 has downloaded fine but it will not install. I run the command:
perlbrew install perl-5.32.0
and get the message
Installation process failed. To spot any issues, check
/home/shoples1/perl5/perlbrew/build.perl-5.32.0.log
Looking at the logfile everything makes sense. It shows the questions for a guided installation with the answers to the questions already filled in. Then right at the end is this:
Use which C compiler? [cc]
./trygcc: line 10: /usr/bin/cc: Permission denied
Uh-oh, the C compiler 'cc' doesn't seem to be working.
./trygcc: line 25: /usr/bin/gcc: Permission denied
./checkcc: line 10: /usr/bin/cc: Permission denied
Uh-oh, the C compiler 'cc' doesn't seem to be working.
You need to find a working C compiler.
Either (purchase and) install the C compiler supplied by your OS vendo
+r,
or for a free C compiler try http://gcc.gnu.org/
I cannot continue any further, aborting.
##### Brew Failed #####
I have previously installed modules from
CPAN using
PuTTY and SSH thanks to help from the Monastery. I know that I do not have access to install modules if I attempt it through cPanel but it has worked recently from an SSH shell.
Am I missing something obvious?
Is it possible that installing , will installing Perlbrew will upset any of the scripts already running on the server using Perl v5.16.3?
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.