I need to add a openssl to Environment. This in command line is done by command
” module add openssl” . But this command gives an error in perl
My program:
#!perl -w
system ('module add openssl');
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From the Perl documentation for system:
So, your command is being passed in as three separate commands. Try putting quotes around it for a start. i.e.
system ('"module add openssl"');If that does not fix it, it still could be related to the differences between running something in the shell and running something directly with
exec.In the future, it would be good practice to share information on the exact error you are getting.