Problems installing RT 3.8 on Centos 5.2 with FastCGI

Hello,

I am trying to install RT 3.8 on Centos 5.2 from source. I have been
following the RHEL4 Install Guide on the wiki and trying to make it work
as best I can. Im running into a problem with installing FastCGI,
apparently http-devel build directories are in a different location than
they are in Centos4, and I think the FastCGI makefile needs to represent
this. I editing the makefile to point to /usr/lib/http for the
location of the Apache installation, but im not sure if this is right.
When I type “make” it appears to run and then gives this line:

" /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file
or directory

mod_fastcgi.c: In function ‘open_connection_to_fs’:

mod_fastcgi.c:1083: warning: dereferencing type-punned pointer will
break strict-aliasing rules

make: *** [mod_fastcgi.slo] Error 1"

Then when I try: service httpd start I get:

“Starting httpd: httpd: Syntax error on line 210 of
/etc/httpd/conf/httpd.conf: Syntax error on line 1 of
/etc/httpd/conf.d/FastCGI.conf: Cannot load
/etc/httpd/modules/mod_fastcgi.so into server:
/etc/httpd/modules/mod_fastcgi.so: cannot open shared object file: No
such file or directory”

I understand its creating the error because the file doesn’t exist, but
Im lost as to what I need to do to correct it. If anyone has any
experience or ideas on this it will be greatly appreciated. Thanks
again.

Sean McCreadie

sorry for top posting

i install rt 3.8 on centos last night in about 2 hours

make sure you have httpd-devel installed (this will install apr-utils
wget latest fastcgi
cp Makefile.AP2 Makefile
change top_dir to /usr/lib/httpd in Makefile
make
make install
cp /usr/lib/httpd/modules/mod_fascgi.so to /etc/httpd/modules
create a fastcgi.conf file in /etc/httpd/conf.d/ in it should be the
LoadModule directive
restart httpd

let me know if any issues

Sean McCreadie wrote:

Hello,

I am trying to install RT 3.8 on Centos 5.2 from source. I have been
following the RHEL4 Install Guide on the wiki and trying to make it
work as best I can. Im running into a problem with installing FastCGI,
apparently http-devel build directories are in a different location
than they are in Centos4, and I think the FastCGI makefile needs to
represent this. I editing the makefile to point to /usr/lib/http for
the location of the Apache installation, but im not sure if this is
right. When I type �make� it appears to run and then gives this line:

� /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file
or directory

mod_fastcgi.c: In function ‘open_connection_to_fs’:

mod_fastcgi.c:1083: warning: dereferencing type-punned pointer will
break strict-aliasing rules

make: *** [mod_fastcgi.slo] Error 1�

Then when I try: service httpd start I get:

�Starting httpd: httpd: Syntax error on line 210 of
/etc/httpd/conf/httpd.conf: Syntax error on line 1 of
/etc/httpd/conf.d/FastCGI.conf: Cannot load
/etc/httpd/modules/mod_fastcgi.so into server:
/etc/httpd/modules/mod_fastcgi.so: cannot open shared object file: No
such file or directory�

I understand its creating the error because the file doesn�t exist,
but Im lost as to what I need to do to correct it. If anyone has any
experience or ideas on this it will be greatly appreciated. Thanks again.

Sean McCreadie



http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Chaim Rieger

Sean McCreadie wrote:

Hello,

I am trying to install RT 3.8 on Centos 5.2 from source. I have been
following the RHEL4 Install Guide on the wiki and trying to make it
work as best I can. Im running into a problem with installing FastCGI,
apparently http-devel build directories are in a different location
than they are in Centos4, and I think the FastCGI makefile needs to
represent this. I editing the makefile to point to /usr/lib/http for
the location of the Apache installation, but im not sure if this is
right. When I type �make� it appears to run and then gives this line:

Sean all good now ?

Chaim,

Thank you very much for responding so quickly. I did as you said but I was unable to cp /usr/lib/httpd/modules/mod_fastcgi.so as this directory didn’t exist on my system. I tried reinstalling httpd and httpd-devel, but it still didn’t produce that directory. Any ideas? I’m gonna try some more things tonight when I get home. Thanks again for the help!

Sean McCreadie
IT Support
Canyon Partners, LLC
310 272 1764From: Chaim Rieger chaim.rieger@gmail.com
To: Sean McCreadie
Cc: rt-users@lists.bestpractical.com rt-users@lists.bestpractical.com
Sent: Tue Jul 22 12:10:40 2008
Subject: Re: [rt-users] Problems installing RT 3.8 on Centos 5.2 with FastCGI

sorry for top posting

i install rt 3.8 on centos last night in about 2 hours

make sure you have httpd-devel installed (this will install apr-utils
wget latest fastcgi
cp Makefile.AP2 Makefile
change top_dir to /usr/lib/httpd in Makefile
make
make install
cp /usr/lib/httpd/modules/mod_fascgi.so to /etc/httpd/modules
create a fastcgi.conf file in /etc/httpd/conf.d/ in it should be the
LoadModule directive
restart httpd

let me know if any issues

Sean McCreadie wrote:

Hello,

I am trying to install RT 3.8 on Centos 5.2 from source. I have been
following the RHEL4 Install Guide on the wiki and trying to make it
work as best I can. Im running into a problem with installing FastCGI,
apparently http-devel build directories are in a different location
than they are in Centos4, and I think the FastCGI makefile needs to
represent this. I editing the makefile to point to /usr/lib/http for
the location of the Apache installation, but im not sure if this is
right. When I type “make” it appears to run and then gives this line:

“ /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file
or directory

mod_fastcgi.c: In function ‘open_connection_to_fs’:

mod_fastcgi.c:1083: warning: dereferencing type-punned pointer will
break strict-aliasing rules

make: *** [mod_fastcgi.slo] Error 1”

Then when I try: service httpd start I get:

“Starting httpd: httpd: Syntax error on line 210 of
/etc/httpd/conf/httpd.conf: Syntax error on line 1 of
/etc/httpd/conf.d/FastCGI.conf: Cannot load
/etc/httpd/modules/mod_fastcgi.so into server:
/etc/httpd/modules/mod_fastcgi.so: cannot open shared object file: No
such file or directory”

I understand its creating the error because the file doesn’t exist,
but Im lost as to what I need to do to correct it. If anyone has any
experience or ideas on this it will be greatly appreciated. Thanks again.

Sean McCreadie



http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Chaim Rieger

“ /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such
file or directory

yum install glibc-devel

Try the compile again - it’s nothing to do with the Apache libs, this is
a core function you’re missing the header file for.

Graeme

Thanks everyone for the help on this so far. I was able to get fastcgi compiled correctly, I think, but when I go to start Apache I get this error now:

Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 210 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf.d/FastCGI.conf: Cannot load /etc/httpd/modules/mod_fastcgi.so into server: /etc/httpd/modules/mod_fastcgi.so: wrong ELF class: ELFCLASS32
[FAILED]

I followed the Wiki for RHEL4 and the advice in this email trail and it seemed to work flawlessly until I tried to start the service. Any input would be greatly appreciated. Thanks again-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Graeme Fowler
Sent: Wednesday, July 23, 2008 5:26 AM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Problems installing RT 3.8 on Centos 5.2 with FastCGI

On Tue, 2008-07-22 at 11:58 -0700, Sean McCreadie wrote:

“ /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such
file or directory

yum install glibc-devel

Try the compile again - it’s nothing to do with the Apache libs, this is
a core function you’re missing the header file for.

Graeme

http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

I’ve seen this before

Will look up my notes and send them later todayFrom: “Sean McCreadie” smccreadie@CanyonPartners.com

Date: Wed, 23 Jul 2008 15:51:19
To: Graeme FowlerG.E.Fowler@lboro.ac.uk; rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Problems installing RT 3.8 on Centos 5.2 with FastCGI

Thanks everyone for the help on this so far. I was able to get fastcgi compiled correctly, I think, but when I go to start Apache I get this error now:

Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 210 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf.d/FastCGI.conf: Cannot load /etc/httpd/modules/mod_fastcgi.so into server: /etc/httpd/modules/mod_fastcgi.so: wrong ELF class: ELFCLASS32
[FAILED]

I followed the Wiki for RHEL4 and the advice in this email trail and it seemed to work flawlessly until I tried to start the service. Any input would be greatly appreciated. Thanks again

Thanks everyone for the help on this so far. I was able to get
fastcgi compiled correctly, I think, but when I go to start Apache I
get this error now:

Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 210 of /etc/httpd/conf/
httpd.conf: Syntax error on line 1 of /etc/httpd/conf.d/
FastCGI.conf: Cannot load /etc/httpd/modules/mod_fastcgi.so into
server: /etc/httpd/modules/mod_fastcgi.so: wrong ELF class: ELFCLASS32
[FAILED]

I followed the Wiki for RHEL4 and the advice in this email trail and
it seemed to work flawlessly until I tried to start the service.
Any input would be greatly appreciated. Thanks again

Sean,

Looks like you’re building 32 bit mod_fastcgi but your system is 64
bit. If on x86_64 bit you should be building mod_fastcgi against /usr/
lib64/httpd, not /usr/lib/httpd.

Not familiar with the instructions in the wiki but I built some
mod_fastcgi RPMS and wrote a spec file for our CentOS 5 environments.
I can provide you with a src RPM and x86_64 RPM for mod_fastcgi-2.4.6
off-list if you need (100k each).

Regards,
Tom

Tom Lanyon
Systems Administrator
NetSpot Pty Ltd

Tom,

The 64 bit RPM’s would be a big help. This is the first time I have
built a 64 bit RT server, and im lost on a few points like this. Thanks
a lot for the reply and help!

SeanFrom: Tom Lanyon [mailto:tom@netspot.com.au]
Sent: Friday, August 01, 2008 1:16 AM
To: Sean McCreadie
Cc: Graeme Fowler; rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Problems installing RT 3.8 on Centos 5.2 with
FastCGI

Tom,

The 64 bit RPM’s would be a big help. This is the first time I have
built a 64 bit RT server, and im lost on a few points like this.
Thanks
a lot for the reply and help!

Sean

Hi Sean,

No problems; I’ve put the 64 bit mod_fastcgi RPM online here:

http://kuat.netspot.com.au/~tom/mod_fastcgi-2.4.6-2.x86_64.rpm

I built this on CentOS 5.1 but tested on 5.2 also. RT on CentOS 5 is
fairly straight forward, I built a custom perl 5.10.0 in /opt/ to try,
but it works fine with the default CentOS 5.8.x perl. The simplest way
to get all of the module dependencies installed is to install from
CPAN rather than trying to find RPM packages for them all. I used
something like this to install the modules required:

cd rt-3.8.0

RT_FIX_DEPS_CMD=’/opt/perl5.10.0/bin/perl -MCPANPLUS -e "install

%s"’ make fixdeps

Let me know if you need anything else.

Regards,
Tom

Tom Lanyon
Systems Administrator
NetSpot Pty Ltd