Saturday, February 09, 2008

Installing apxs2 on Ubuntu Server

Ah, another happy Saturday doing sysadmin crap. I had a lot of trouble scaring this information up, so maybe a blog post will help the next person. In order to get apxs2 installed on Ubuntu (and probably Debian) you must install apache2-threaded-dev (or possibly a non-threaded equivalent). You will start to care about that if, for example, you want to install Apache2::Cookie, which depends on APR::Request, which is messy. But oh, wait, that module is broken and won't install anyway. If I figure out how to fix it, I'll probably post again for the same imagined posterity... currently the thing says my perfectly good apache2 binary is bad. Anyway, regardless of that problem, you will also be unable to install APR::Request without an apxs2 binary, and you'll have a hard time finding that on Ubuntu unless you sudo apt-get install apache2-threaded-dev (or equivalent).

Labels: , , ,

6 Comments:

Blogger DaveB said...

thank you, thank you! just what I needed. I can't install mod_python without apxs2 and I couldn't find the little bugger anywhere unless you build apache from scratch, and I really didn't want to build apache2 from scratch because it seems to permanently mess up using apt-get for it afterwards. I probably wouldn't have built it with the dev version anyway! So you have saved my ass.
-DaveB

9:35 AM  
Blogger Ivo Roper said...

Thanks! I'm sure you've helped others already, but I had to say thank you. ^_^

Ivo in Seattle

9:03 PM  
Anonymous Anonymous said...

Hey. This is your imaginary posterity. Sorry it took so long to get back to you... but this helped me. Thanks.

6:35 PM  
Anonymous Anonymous said...

Thanks also from me! Needed to keep a OTRS install going...

1:12 AM  
Anonymous Anonymous said...

Awesome. Worked perfectly. Thanks for sharing :)

4:17 AM  
Anonymous Tyler Collier said...

For those with a non-threaded apache (Ubuntu is prefork by default), use apt-get install apache-prefork-dev.

11:42 PM  

Post a Comment

<< Home