nginx install error
Installing nginx from source I installed latest prec prec2-10.33 no errors. Now trying to install latest version of openssl get this error
bin/sh: 1: /usr/local/bin/perl: not found
make[1]: *** [Makefile:60: buildinf.h] Error 127
make[1]: Leaving directory '/root/pcre2-10.33/zlib-1.2.11/openssl-1.0.2s/crypto'
make: *** [Makefile:287: build_crypto] Error 1
in that directory i have6-7 files that start with prec not perl.
Ubuntu 19.04
Is this error insignifiacant or should i solve it?
1 Reply
I'm not an expert when it comes to Nginx or OpenSSL, but I think I may know why you're getting that error message. The Error 127 message can occur for a number of reasons, but mainly it has to do with the command either not being recognized or the source/destination of the command directive not existing.
In this case, you're getting the error:
bin/sh: 1: /usr/local/bin/perl: not found
This means that the Perl-core is not in the file path that OpenSSL wants it to be in. To fix this, we simply have to locate Perl and move it to the proper directory.
First, let's check to ensure that Perl is somewhere on your system using the which command:
which perl
Then, you have to confirm that the Data::Dumper Perl module is also installed:
perl -MData::Dumper -e 'print "Data::Dumper is installed\n"'
If either Perl or Data::Dumper are not found, you can install them using:
sudo apt-get install perl
Once we have confirmed that Perl is installed, we must confirm that it is in your /usr/local/bin directory. We can do this using the locate command:
locate perl | grep bin
/usr/bin/perl
/usr/bin/perl5.26-x86_64-linux-gnu
/usr/bin/perl5.26.2
/usr/bin/perlbug
/usr/bin/perldoc
/usr/bin/perlivp
/usr/bin/perlthanks
/usr/share/perl/5.26.2/unicore/CombiningClass.pl
If you ran the install, then Perl should be in this directory by default and your Error 127 should dissappear. For more detailed instructions on how to install and setup OpenSSL, I'd recommend reviewing this page How to Install the latest OpenSSL.
I hope these directions are able to provide some insight. Good luck!