/configure
> --with-apxs=/usr/lib64/httpd/modules
>
>
> whenever I run above I keep getting this:
>
> configure: error: You must specify a valid --with-apxs path
>
> Any ideas why I am getting this error?

- --with-apxs needs to be given the full path to the apxs program (in
httpd-devel package). So, if it's in /usr/lib64/httpd/modules (which
it shouldn't be), then you need to say:

$ ./configure --with-apxs=/usr/lib64/httpd/modules/apxs

On my Amazon Linux system (which is RHEL-compatible, which should
obviously be fairly similar to CentOS), apxs is in /usr/sbin/apxs


>> PFB link which gives  some shell scrpt to compile mod_jk on CENTOS. I am
not a shell script expert but what I found in this script is using below
line (which includes path to aspx) to configure aspx:

http://www.cafe-encounter.net/p1086/build-mod_jk-for-centos

./configure --with-apxs=/usr/sbin/apxs

So why dont you try to use this path instead of /usr/lib64/httpd/modules/apxs

Thanks,

Shailesh



On Thu, May 1, 2014 at 8:29 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Fidelis,
>
> On 5/1/14, 10:53 AM, Fidelis Mnyanyi wrote:
> > Hi everyone,
> >
> > I am trying to setup apache http server to work with tomcat 7
> > through the jk connector (version 1.2.40-src). My server is CentOs
> > release 6.5. I couldn't find the binary distribution of mod_jk for
> > CentOs release 6.5 on the net.
> >
> > I am trying to compile it from source but I am getting this problem
> > when trying to execute the following:
> >
> > - unzip the source - go to jk/native directory - run ./configure
> > --with-apxs=/usr/lib64/httpd/modules
> >
> >
> > whenever I run above I keep getting this:
> >
> > configure: error: You must specify a valid --with-apxs path
> >
> > Any ideas why I am getting this error?
>
> - --with-apxs needs to be given the full path to the apxs program (in
> httpd-devel package). So, if it's in /usr/lib64/httpd/modules (which
> it shouldn't be), then you need to say:
>
> $ ./configure --with-apxs=/usr/lib64/httpd/modules/apxs
>
> On my Amazon Linux system (which is RHEL-compatible, which should
> obviously be fairly similar to CentOS), apxs is in /usr/sbin/apxs
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQIcBAEBCAAGBQJTYmFBAAoJEBzwKT+lPKRYxbgP/3utBpl016BI93kyldLQB8Tr
> j7qdCLiE4bdFPyYCiVmpG4kXOuxJn3m9BxY45J2l3b8NtNCHyVYNhENCQASzx0Dj
> bd4OAozrH1h51xEvRfnQjSPoqHyrWAucMRThT2ye6EjLEtNlTMIgM5CmVg1NqaFV
> ZqVR1PEcGNSoEA2hYHK9fG89mHnWoOaauIMluNhFndRFH+EWTbTDocDSp4wzih7o
> NnfVzfSKYEk1WqdeBSI9PiotKhONag6qflAkjnqBmehmO0k+fMuNcTBgRLPUIzYK
> 5NUwKu8P2iXYemvVHxaGPMTCKw76ue26+3e2PrW8s3bpk5PmoDu21MFedMc5njGD
> YACl/rntnWSF4dN+UlC+YiXjlg3OaC9bYw5QnNOHiKsHG1VULyTw1pePN5NnM1W/
> 4hiI/3uy20tc5vm8CX0/eBVW783lo/zQYXgMV+XFq/IyZqnRE4swWr6Zn/3LaxgE
> 2pwu4tQVQuS6l2XphjPRQ2Ey2cb0HhW6K+5Yjgsy5/3ithDefyCtw7fdII56EcgB
> MJcLs3htKwqtH/uYYOnaPeHkasOMbe/qqMS0J1nXYFL7EZaP9Rex/iTA/58LibM7
> mIm2uLzbBzvUpGzqAMKiMmUCmdZnoxRCzkFJkXzHff+7UMt9ZXkFok1E9NjoLH9S
> iXjl+jUVhMPMDmNSjoDs
> =rmAO
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to