-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Casper,
On 9/17/13 3:01 PM, Casper Wandahl Schmidt wrote: > After being away from this list for some time I’m now back for > help. I recently upgraded my home server to Ubuntu 12.04.2 LTS with > Apache 2.2.22. I’m now trying to build the tomcat connector to get > tomcat (not installed yet, but think I will go for newest Tomcat 8 > when time comes) and apache to communicate. Should be no problem to get these set up. > I have downloaded the source and unpacked it. You are talking about the "Tomcat Connector", mod_jk, right? > I then do cd native/ and tried ./configure > –with-apxs=/usr/bin/apxs2 but the command fails saying: “configure: > error: C++ preprocessor ‘/lib/cpp’ fails sanity check”. > > > Config.log has the following to say: > > [snip] > > gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) > > [snip] > > configure:5036: checking for g++ > > configure:5065: result: no > > configure:5036: checking for c++ > > configure:5065: result: no > > configure:5036: checking for gpp > > configure:5065: result: no > > configure:5036: checking for aCC > > configure:5065: result: no > > configure:5036: checking for CC > > configure:5065: result: no > > configure:5036: checking for cxx > > configure:5065: result: no > > configure:5036: checking for cc++ > > configure:5065: result: no > > configure:5036: checking for cl > > configure:5065: result: no > > configure:5036: checking for FCC > > configure:5065: result: no > > configure:5036: checking for KCC > > configure:5065: result: no > > configure:5036: checking for RCC > > configure:5065: result: no > > configure:5036: checking for xlC_r > > configure:5065: result: no > > configure:5036: checking for xlC > > configure:5065: result: no > > configure:5078: checking for C++ compiler version > > configure:5081: g++ --version </dev/null >&5 Boy, for knowing that g++ doesn't exist, configure sure seems to want to interrogate the hell out of it... > configure:5666: error: C++ preprocessor "/lib/cpp" fails sanity > check > > See `config.log' for more details. Although it does not explicitly state it anywhere in the documentation, you'll need to have a C++ compiler installed. You'll need to install the 'g++' package on Debian/Ubuntu in order to compile mod_jk. I'm not sure why a c++ compiler is required. It does not appear to be a requirement for httpd. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJSObL4AAoJEBzwKT+lPKRY58AQAJAFOrCalyibTfOnoAdEBRfZ P6zpWShxA/TnsU31QB11K9dbsJ3i7Xv9yOOYCJryNOBP5fETEzdDUqnbc2kFeGNu tZh5wNTLNMlWaXgnbOgYqjDmmz53XpQ2saIGBel8PnEhix5qsXWHr9HJSOs7jwJk 5yUSMRm8/3l92vW4bxFnVs0eperlfZFEeMAk8Yh2v9ciXmiHAz38iHqJZWpiBr4o SV9iNKgOfZYkGtf2AYt7IR7XF52gR7goSf18tJy0e8imFJXTfGhcsiuu/I289ed+ 5lu0CEaSLHPLDbKpmALNOVV2hWidVDmZ/0m8Zuv287Mdulkbp1u3G5INbdb4A/4I v6aYIOJhw3ZY2HbeOM7ERRo8n0331RVOYKyOC+IycD6NE6MFC4MGb3t4uWFnQOdG VOcPHbsayqu5Ph0RGkDeUsWTevWLUXAIkbeTIf/ymLhN1c6BraYHyDR3497Wa0uQ guQS+9U2Bf1sGs3/0hqReyE6DS5KnrTWXhnuCFCDYL74CoyY60JLhnaitFfvGI+J uBRKVj7wWQG1/fl/LZCClNkQ3o93isZe/yjYhWfcFlOZuHYix/PAjGRaerCPKvzf LNzFQnW0Cw3jWvvKhLe0qOLeGHulLcZUrxMdyt2mUcqteM1D1ncqixESVyQYfmnN COBqVzC3iigb6FJwnP+w =gH3d -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org