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 08-03-2014, 06:21 PM   #1
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,181

Rep: Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763
Backuppc on stock Slackware 64 current - missing Perl modules?


BackupPC requires the following Perl modules:

Compress::Zlib
Archive::Zip
File::RsyncP

BackupPC also requires a web server, preferably Apache built with mod_perl support.

As far as I can tell Slackware 64 current comes with only one of the required Perl modules: Compress::Zlib, and does not come with mod_perl compiled into Apache.

I would appreciate some help fixing this situation. I haven't had to deal with Perl modules and so far the research I have done has given me an almighty headache! As far as the modules Archive::Zip and File::RsyncP are concerned, is it as easy as the following?

Code:
./configure --prefix=/usr ; make ; su ; make install
Will this "graft" the new module into the existing Perl installation? How about Apache? Does it have to be rebuilt with mod_perl support?

Sorry - complete noob questions here, but I just want to get past this hurdle and concentrate on configuring BackupPC. I've installed BackupPC on Debian; needless to say I would prefer to do it on Slackware.

Last edited by Gerard Lally; 08-03-2014 at 06:22 PM.
 
Old 08-03-2014, 06:32 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
Archive::Zip is available @ slackbuilds and looking at the SlackBuild should help you making one for File::RsyncP.
 
1 members found this post helpful.
Old 08-04-2014, 06:23 AM   #3
ml4711
Member
 
Registered: Aug 2012
Location: Ryomgård, Danmark
Distribution: Slackware64
Posts: 146

Rep: Reputation: 103Reputation: 103
Quote:
BackupPC also requires a web server, preferably Apache built with mod_perl support.
You do not need to rebuild Apache. Just build the module!


First You need to install perl module "Apache::TestConfig"

With cpan:

Code:
install Apache::TestConfig
To build against apache 2.4 You probably need mod_perl from git, so:


Code:
git clone  git://git.apache.org/mod_perl.git
cd mod_perl
git checkout -b httpd24 origin/httpd24
Patch the code:
(i.e comment out 5 lines)

--- mod_perl.org/Makefile.PL 2013-07-14 17:52:36.000000000 +0200
+++ mod_perl/Makefile.PL 2013-07-14 18:12:26.642757377 +0200
@@ -122,11 +122,11 @@
# mod_perl test suite relies on having Apache-Test bundled with
# the mod_perl source, since any pre-installed version may not do
# the right thing
- unless (-d "Apache-Test") {
- error "Can't find a sub-directory Apache-Test. " .
- "Make sure that you are using a complete source distribution";
- exit 1;
- }
+ #unless (-d "Apache-Test") {
+ # error "Can't find a sub-directory Apache-Test. " .
+ # "Make sure that you are using a complete source distribution";
+ # exit 1;
+ #}


To build and install:

Code:
perl Makefile.PL MP_APXS=/usr/bin/apxs  MP_APR_CONFIG=/usr/bin/apr-1-config
make

su
make install
Enjoy
 
3 members found this post helpful.
Old 08-04-2014, 09:55 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,108

Rep: Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178
thanks for the patch ml4711, I added it to the SlackBuild I got in my /testing dir

http://ponce.cc/slackware/testing/perl-apache-test/
http://ponce.cc/slackware/testing/mod_perl/
 
2 members found this post helpful.
Old 08-04-2014, 10:59 AM   #5
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,181

Original Poster
Rep: Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763
Quote:
Originally Posted by Didier Spaier View Post
Archive::Zip is available @ slackbuilds and looking at the SlackBuild should help you making one for File::RsyncP.
Thanks Didier. I have Archive::Zip installed now, and with the help of ml4711 and ponce I have been able to install mod_perl. Just need to create a SlackBuild for File::RsyncP now, which shouldn't be too much trouble.

;-)
 
  


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
backuppc and perl-suid: Am I missing something? davcefai Debian 4 06-03-2011 02:34 PM
[SOLVED] VirtualBox 4 Slackware Current (x86) (No Kernel Modules) Gavin Harper Slackware 13 01-06-2011 09:56 AM
rc scripts in slackware-current, rc.0 missing? GamerX Slackware 4 04-13-2007 09:02 AM
Where is the modules dir for stock 2.6.18 (Slackware 11) cygnus-x1 Slackware 4 10-16-2006 02:45 PM
Slackware-current Perl 5.8.1 Package tuxq Slackware 0 10-24-2003 07:37 AM

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

All times are GMT -5. The time now is 12:26 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