Trouble with perl and cgi #5758
Unanswered
new2brew
asked this question in
Everyday usage
Replies: 2 comments 4 replies
-
That path points to a directory, not a perl binary. Since you have Homebrew
|
Beta Was this translation helpful? Give feedback.
3 replies
-
Wow. Thanks .. I’m not totally done but I feel like almost there. I
noticed those caveats but I didn’t pay too much attention to them. Then
they were gone. What a huge install that was of cpan perl. And I got no
errors. I would never have had a clue that was how to install Perl. I
thought the brew install was the solution. I think I have some issues still
with the zshrc file. I have 2 lines in that file. The one you mentioned and
another. I can’t seem to figure out the minimum basic config of that file.
I get so many suggestions in google but not just a basic homebrew config.
Thanks again.
…On Sat, Nov 23, 2024 at 8:27 AM Adrian Ho ***@***.***> wrote:
Looks like you don't have the CGI Perl module installed. The paths listed
in the error message also indicate that you didn't do the steps listed in
the *Caveats* section of brew info perl. You should probably do those
first, but since you've asked to be cut some slack, I'll note that you'll
need to do two things with the last command in the caveats (i.e. eval ...
):
1. Add that command to your login shell's startup file (~/.profile if
bash, ~/.zshrc if zsh) to ensure *future* shell sessions are set up to
use local::lib.
2. Run that same command manually, to ensure your *current* shell
session is set up to use local::lib.
Once all that is done, then cpan install CGI should install the necessary
module with a TON of output but no errors. You can confirm that by running perl
-e 'use CGI'; it should print nothing if all is well.
—
Reply to this email directly, view it on GitHub
<#5758 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BNE6TZ47QPGSWQO7LJ7CKJD2CCGGPAVCNFSM6AAAAABSJ7RFFSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMZVG42TAMY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Output of
brew config
Output of
brew doctor
Description of issue
I am running homebrew with html and cgi files that I have imported from a Lubuntu setup where they work fine. I have an initial html file that when submitted calls a cgi file that is also a perl file.... here are the first few lines:
#!/usr/local/Cellar/perl -w
#------------------------------
interactive.pl
#------------------------------
print "Content-Type: text/html \n\n";
use File::Copy;
use warnings;
no warnings ('uninitialized', 'substr');
use strict;
use Data::Dumper;
use File::Find;
use CGI;
use CGI qw(:cgi-lib :standard);
use CGI::Carp qw(fatalsToBrowser)
I am not an experienced homebrew user but I think I understand some of the fundamentals. When this cgi file gets called it just displays the raw code, not in html format. I believe I had similar issues in Lubuntu but was able to fix the problems by adding lines to enable cgi in the httpd.conf file and use sudo a2enmode cgid. The a2enmode command is not avaialble now in homebrew. Disclaimer - I have not revisted this code in years and at the time it was not a logical path to success to get the code working in Lubuntu... it was a bit wacamole. However I'm nothing but persistent and all I need to start is to know how I need to enable the cgi and perl aspects of homebrew... I have done brew install perl and changed lines in httpd.conf to try to get this to work .... I have done brew link perl... I have changed the bash line at the beginning of the cgi file (#!/usr/local/Cellar/perl -w) over and over.... I am at a loss. I have loaded and unloaded modules in httpd.conf - nothing seems to work. If anyone could give me some pointers I'd appreciate it..... As a 72 year old wondering why I am doing this sometimes... so cut me some slack... I think if I can get this cgi perl problem fixed it will solve all the issues.
Beta Was this translation helpful? Give feedback.
All reactions