-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Casper,

On 8/26/2011 2:50 AM, Casper Wandahl Schmidt wrote:
> Well as I said in my first post configure complained about a
> missing WebServer - maybe because I installed apache from apt-get
> and not from source?

Hmm... I've never had to install the source. The headers are all that
are necessary (which come with apaache2-threaded-dev). I'll check on
my Debian system to see what I've got installed.

> If I don't run make with sudo it complains about permissions,
> probably because I unpacked the tar.gz with sudo so the directory
> has root as owner. Or it might be because I uploaded the tar.gz
> from ftp which puts it in a directory owned by the ftp user and not
> my ssh user :)

Okay. You should chown everything and not run make as root, though.

> Well I tried make > make.log but only the first few lines gets
> written to the file, the rest is output to the shell.

Try:

$ make > make.log 2>&1

That redirects stderr to stdout, and then you already know what > does.

> The first line I can see in the shell is mod_jk.c:692: error:
> expected '=', ',', ';', 'asm' or '__attribute__' before
> 'get_content_length'

Hmm.

$ svn checkout https://svn.apache.org/repos/asf/tomcat/jk/tags/JK_1_2_32
$ cd JK_1_2_32/native
$ ./buildconf.sh  (you don't need to do this if you didn't use svn)
$ which apxs2
/usr/bin/apxs2
$ ./configure --with-apxs=/usr/bin/apxs2

...
config.status: creating common/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
/bin/rm: cannot remove `libtoolT': No such file or directory

That's not good. Trunk has the same problem. Yours didn't bomb this way?

Let's try to compile, anyway.

$ make
...
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `...../JK_1_2_32/native/apache-2.0'

Looks like it builds for me.

I'm on Debian Squeeze:

$ dpkg -l  | grep apache2 \
   | sed -e "s/^\([^ ]\+[ ]\+[^ ]\+[ ]\+[^ ]\+\).*/\1/"
ii  apache2                              2.2.16-6+squeeze1
ii  apache2-mpm-worker                   2.2.16-6+squeeze1
ii  apache2-threaded-dev                 2.2.16-6+squeeze1
ii  apache2-utils                        2.2.16-6+squeeze1
ii  apache2.2-bin                        2.2.16-6+squeeze1
ii  apache2.2-common                     2.2.16-6+squeeze1

$ /usr/sbin/apache2ctl -V
Server version: Apache/2.2.16 (Debian)
Server built:   Mar 22 2011 20:56:34
Server's Module Magic Number: 20051115:24
Server loaded:  APR 1.4.2, APR-Util 1.3.9
Compiled using: APR 1.4.2, APR-Util 1.3.9
Architecture:   32-bit
Server MPM:     Worker
  threaded:     yes (fixed thread count)
    forked:     yes (variable process count)
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/worker"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/etc/apache2"
 -D SUEXEC_BIN="/usr/lib/apache2/suexec"
 -D DEFAULT_PIDLOG="/var/run/apache2.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="mime.types"
 -D SERVER_CONFIG_FILE="apache2.conf"

> Being a computer science student I really should be able to take
> on tasks as compiling stuff myself. It is partly because I'm lazy
> and partly because I don't have time to mess with compiling errors
> like this that I haven't done anything like this before :) I bought
> my fit-pc2 box about 2 years ago so I have only played a little
> with Linux so far :) (being setting up stuff - crashing the server
> by accident and starting all over again)

It's a good way to learn. Honestly, I wouldn't hire a developer onto
my team if they couldn't compile an OSS project from source.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5XweQACgkQ9CaO5/Lv0PDupgCdGlKZNJCB+8MHYXcFraNQPKCY
0AcAnA2QKZJthSlJ2YXeohzEr6xUV3w4
=aTmZ
-----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