CentOS 5 64bit install notes (apxs errors, apache2 not found)

447 views
Skip to first unread message

markthickpaddy

unread,
Oct 30, 2008, 8:49:49 AM10/30/08
to Phusion Passenger Discussions
Hi,

Firstly, hello and a big thank you to both Hongli Lai & Ninh Bui for
your hard work, passenger is pretty darn cool.

I ran into trouble installing it on CentOS 64bit, the installer
couldn't find apache 2 and if I tried to build the module manually I
was getting an error running apxs (cannot open /httpd/build/
config_vars.mk)

Turns out there is an issue with the installation of the httpd-devel
package on 64bit systems - only i386 versions of required dependencies
are installed, but the 64bit libraries are also required (see
http://lists.centos.org/pipermail/centos-devel/2008-June/002955.html
and http://bugs.centos.org/view.php?id=2934)

The solution was just to force the installation of the missing 64 bit
packages...
yum install apr-util-devel.x86_64
yum install expat-devel.x86_64
yum install apr-devel.x86_64
Once I'd installed these, the passenger installer ran fine.

Hope this helps someone else avoid a few hours of head scratching.


Regards

Mark

Logo kart

unread,
Jun 21, 2013, 3:16:58 PM6/21/13
to phusion-...@googlegroups.com, mwo...@online.ie
Hi,

trying to install this for my site http://logokart.com
getting the error: /usr/local/apache/bin/apxs -Wc,-Wall,-O3,-fomit-frame-pointer,-pipe -c mod_gzip.c mod_gzip_debug.c mod_gzip_compress.c -o mod_gzip.so
make: /usr/local/apache/bin/apxs: Command not found
make: *** [build] Error 127


installed all dependecies you mentioned without any error.
if you could please help

centOS 64 bit

tabare...@gmail.com

unread,
Jun 22, 2013, 5:24:13 PM6/22/13
to phusion-...@googlegroups.com, mwo...@online.ie
Try to recompile/reinstall apache and use DSO. It includes APXS by default:

dev@dev []# whereis apxs
apxs: /usr/bin/apxs

I didn't do anything special to have. You can also look for the RPM and install it.

I wonder why you can't compile with GCC. Check the man pages, maybe you can specify the compiler.

Let me know,

Tabare

Chris Jones

unread,
Sep 7, 2013, 11:40:40 PM9/7/13
to phusion-...@googlegroups.com, mwo...@online.ie
boy i wish this would have fixed my problem... I'm still scratching my head :/

Hongli Lai

unread,
Sep 8, 2013, 6:57:09 AM9/8/13
to phusion-passenger, mwo...@online.ie
Try running `passenger-config --detect-apache2` (available since
4.0.16), maybe that'll shed some light on your problem.
> --
> You received this message because you are subscribed to the Google Groups
> "Phusion Passenger Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to phusion-passen...@googlegroups.com.
> To post to this group, send email to phusion-...@googlegroups.com.
> Visit this group at http://groups.google.com/group/phusion-passenger.
> For more options, visit https://groups.google.com/groups/opt_out.



--
Phusion | Ruby & Rails deployment, scaling and tuning solutions

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)
Reply all
Reply to author
Forward
0 new messages