Skip to content
home@dennisPersonal Website of Dennis Plöger
  • Home
  • Blog
  • Artist
  • Impressum
  • Datenschutzerklärung

libapr2 on Sles11 64bit

24. November 2010

I’m currently having a hard time getting libapr2 with the Perl Module Apache2::Request and the Apache2 Module to run properly on a SLES (SuSE Linux Enterprise Server) 11 with a 64 bit kernel. I’m getting undefined symbols and missing libraries etc. I need that module for a network documentation tool called [[https://netdot.uoregon.edu/trac/|Netdot]]

I found out what to do and thought, that I should blog about this in case my mind fails the next time or anybody else has the same problem.

So. First, install the needed development packages (use the SDK-DVDs when neccessary or use online repositories like [[http://demeter.uni-regensburg.de/SLES11-SDK-x64/DVD1/]]):

zypper install apache2-mod_perl-devel apache2-devel

Install all requirements, of course.

Then, download the official release from the Apache download server [[http://httpd.apache.org/apreq/download.cgi]]. Don’t rely on CPAN here, because it simply doesn’t work. Download it to something like /usr/local/src, check the md5sum and extract it.

Skip the perl Makefile.PL now (all it does is run the configure with two parameters) and go to ./configure directly. Use these parameters:

./configure –libdir=/usr/lib64 –with-apache2-apxs=/usr/sbin/apxs2 –with-perl=/usr/bin/perl

After configure, open up config.status in an editor and change line # 624 from

s,@APACHE2_INCLUDES@,|#_!!_#|-I/usr/include/apache2,g

to

s,@APACHE2_INCLUDES@,|#_!!_#|-I/usr/include/apache2 -I/usr/include/apache2/modules/perl,g

(If there’s a less crude way for that, please let me know).

Now, replace every occurence of apreq_module with apreq2_module in these files in module/apache2:

* filter.c
* handle.c
* apreq_private_apache2.h

Then go ahead and to a make, make test, make install. Everything should go fine.

Last thing, go to /etc/sysconfig/apache and add apreq2 to the APACHE_MODULES line to load the module and start apache.

PDF
Tags: apache, linux, netdot, sles

Calendar

Mai 2025
M D M D F S S
 1234
567891011
12131415161718
19202122232425
262728293031  
« Jan.    

Archive

  • Januar 2024
  • Dezember 2023
  • April 2021
  • März 2021
  • September 2020
  • Dezember 2019
  • November 2019
  • Oktober 2019
  • Juli 2019
  • Juni 2019
  • Mai 2019
  • April 2019
  • März 2019
  • September 2018
  • August 2018
  • Juli 2018
  • März 2018
  • Januar 2018
  • Dezember 2017
  • September 2017
  • März 2017
  • Februar 2017
  • Januar 2017
  • August 2016
  • Mai 2016
  • Dezember 2015
  • November 2015
  • August 2015
  • März 2015
  • Dezember 2014
  • September 2014
  • August 2014
  • Juli 2014
  • Februar 2014
  • Oktober 2013
  • September 2013
  • August 2013
  • Juli 2013
  • Juni 2013
  • Mai 2013
  • April 2013
  • November 2012
  • Oktober 2012
  • September 2012
  • August 2012
  • Juni 2012
  • Mai 2012
  • März 2012
  • Februar 2012
  • Januar 2012
  • November 2011
  • Juli 2011
  • Juni 2011
  • März 2011
  • Februar 2011
  • Januar 2011
  • Dezember 2010
  • November 2010
  • April 2010
  • Februar 2010

Kategorien

  • Allgemein

Neueste Beiträge

  • Making Puppet host reports in Foreman available in Grafana
  • Introducing Handler Inspector
  • Github Action for the Godot Asset library
  • Announcing EgoVenture
  • The third installment of my learning project

Schlagwörter

administration apache blog commit configuration configuration management development dhcp django documentation dokuwiki extension html ip java javascript keyboard lbows linux log migration netdot networks news php plugin printer python rest server shortcut skd sles soap social ssh survey twitter ubuntu udev vmware website zimbra zimlet zimlets

Meta

  • Anmelden
  • Feed der Einträge
  • Kommentar-Feed
  • WordPress.org

Copyright (c) Dennis Plöger | Theme by ThemeinProgress | Proudly powered by WordPress

Zum Ändern Ihrer Datenschutzeinstellung, z.B. Erteilung oder Widerruf von Einwilligungen, klicken Sie hier: Einstellungen