LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-20-2018, 08:07 PM   #1
johnreeves
LQ Newbie
 
Registered: Feb 2006
Posts: 16

Rep: Reputation: 0
Problem with perl in CGI script


after an upgrade to Slackware64 14.2 my cgi perl scripts no longer run. The Apache error log shows: AH01215: Can't locate CGI.pm in @INC (you may need to install the CGI module)
This (CGI.pm) used to be included, where can I get it?

Thanks,
John Reeves
 
Old 01-20-2018, 08:59 PM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
You can install it with sbo (but see note)
https://slackbuilds.org/repository/14.2/perl/perl-CGI/
 
1 members found this post helpful.
Old 01-21-2018, 10:09 AM   #3
johnreeves
LQ Newbie
 
Registered: Feb 2006
Posts: 16

Original Poster
Rep: Reputation: 0
Thank you

Quote:
Originally Posted by keefaz View Post
You can install it with sbo (but see note)
https://slackbuilds.org/repository/14.2/perl/perl-CGI/
I am aware of the security risk, this is a little used application and not even presented as a link. Also I am just too lazy to re-write it.

Thank you
John Reeves
 
Old 01-21-2018, 10:24 AM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
See also the dependencies

Easiest way is to install sboutils package and run " sboinstall perl-CGI "
Or with cpanm (as root):
Code:
# cpan App::cpanminus
# cpanm CGI
 
Old 01-22-2018, 03:37 AM   #5
franzen
Member
 
Registered: Nov 2012
Distribution: slackware
Posts: 535

Rep: Reputation: 379Reputation: 379Reputation: 379Reputation: 379
Quote:
Originally Posted by keefaz View Post
See also the dependencies
If you don't need all features, and prefer none extra dependencies, take a look at perl-cgi-minimal.

Johannes
 
Old 01-22-2018, 12:34 PM   #6
ttk
Senior Member
 
Registered: May 2012
Location: Sebastopol, CA
Distribution: Slackware64
Posts: 1,038
Blog Entries: 27

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
One upside to using cpan(1) or cpanm(1) is that they install dependencies for you.

I prefer to install from CPAN first, and use the Slackware packages only if problems arise in testing. That's a little backwards to normal procedure, but has worked better for me in practice (in part because if a Slackware package is a dependency of a module installed from CPAN, cpan[m] will update the package anyway, so this way helps avoid surprising side-effects).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with perl modules declaration and perl/cgi script shifter Programming 9 02-24-2010 09:09 AM
problem getting perl working with apache2 cgi script jabberwok Linux - Server 10 04-17-2009 08:30 AM
Wierd CVS checkout problem from CGI perl script spadesmaster Linux - Software 0 04-27-2007 04:19 PM
PERL: cgi script copy problem from server to another <db> Programming 2 04-16-2006 09:14 PM
Need Help With My Perl/cgi Authentication Script dutch357 Programming 0 04-11-2003 09:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration