Trouble with perl and cgi #5758
Unanswered
new2brew
asked this question in
Everyday usage
Replies: 1 comment 2 replies
-
That path points to a directory, not a perl binary. Since you have Homebrew
|
Beta Was this translation helpful? Give feedback.
2 replies
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