You are not logged in.

#1 2006-02-01 13:56:53

Target
Member
From: The Netherlands
Registered: 2005-12-02
Posts: 13
Website

[SOLVED] Installing mod_jk through Aurbuild - Cannot find...

OLD TOPIC TITLE: Tomcat + mod_jk + Apache2  - need help!

Hi everyone,

I've been trying to install mod_jk but cannot get it compiled (compiling finishes fine but then there is no mod_jk.so file.. got me stumbled..). Annyway, I found a wiki for it on the ArchWiki (http://wiki.archlinux.org/index.php/Tomcat_and_Apache), but the download link is dead, and since the only thing I really need is the compiled "mod_jk.so", that's a pretty big problem. Could someone provide me with 'jk2-2.0.2.tar.bz2'? I can get the other file ('tomcat-4.1.27-1.tar.gz') from the net easily, but googling for the jk2 file doesn't show any results other than the ArchWiki page refering to it..

I really need this for my school project so any help would be greatly appreciated!

Thanks in advance,

Target

Offline

#2 2006-02-01 15:00:43

mpie
Member
From: 404 Not found
Registered: 2005-03-06
Posts: 649

Re: [SOLVED] Installing mod_jk through Aurbuild - Cannot find...

pacman -S aurbuild



aurbuild -s tomcat modjk


that'll do it

Offline

#3 2006-02-01 15:05:40

Target
Member
From: The Netherlands
Registered: 2005-12-02
Posts: 13
Website

Re: [SOLVED] Installing mod_jk through Aurbuild - Cannot find...

Hi mpie,

thanks for your fast response, I am having trouble installing aurbuild though;

[root@server target]# pacman -S aurbuild
aurbuild: not found in sync db

I have this (among other stuff..) in my pacman.conf:

[current]
Include = /etc/pacman.d/current

[extra]
Include = /etc/pacman.d/extra

[community]
Include = /etc/pacman.d/community

Should I add another repository to install aurbuild?

Thanks for your response again,

Greets Target

EDIT: I've search for 'aur' in the pacman database and it shows this:

extra/aiksaurus 1.2.1-1
    A cross-platform, open-source thesaurus
extra/fortune-mod-smac 0.1-1
    Sid Meiers Alpha Centauri fortune cookie files
community/aurtools 1.2.8-1
    Tools for TUs and Developers for manipulating the community repo

AurTools looked good, but after installing it (including dependancies) I still don't have a program named aurbuild

EDIT2: I've googled some more and I've found the 'source' for this program, still not sure why I couldn't install it via pacman, but this works for me too :-). I'll report back if I get this installed through aurbuild, and maybe add it to the wiki. Thanks for your help

Offline

#4 2006-02-01 15:20:16

Target
Member
From: The Netherlands
Registered: 2005-12-02
Posts: 13
Website

Re: [SOLVED] Installing mod_jk through Aurbuild - Cannot find...

I got tomcat installed through aurbuild, that worked sweet except that I had to change the 'source' field to get it from another webserver cause the one in the PKGBUILD was broken for some reason. Here comes the bad news though;

[target@server aurbuild]$ ./aurbuild -s modjk

could not find "modjk" in aur.

I've tried search (-S) in the aurbuild repositories too but I'm not too familiar with the system so I might be missing something essential. If someone could tell me how to get modjk installed I would be most thankfull.

Greets, Target

Offline

#5 2006-02-01 15:57:16

mpie
Member
From: 404 Not found
Registered: 2005-03-06
Posts: 649

Re: [SOLVED] Installing mod_jk through Aurbuild - Cannot find...

Sorry thats my bad I installed it manualy....
just google for mod_jk ....


may do a pkgbuild later, but at wotk at the mo

Offline

#6 2006-02-01 16:02:12

Target
Member
From: The Netherlands
Registered: 2005-12-02
Posts: 13
Website

Re: [SOLVED] Installing mod_jk through Aurbuild - Cannot find...

Hi mpie,

Thanks again for your fast response!

I've tried compiling mod_jk as you can see in the first post. For some reason the mod_jk.so file will not show up in the apache2.0/ directory after I do a ./configure & a make as explained in the config file. During ./configure it doesn't show any errors and it's working a pretty long time during the 'make' process, but no mod_jk.so file at the end.. if you could make a pkgbuild for it (I don't have a clue if that is a lot of work so please forgive me if I'm asking something that takes a lot of time..) but I would grealy appreciate it, and I think many other people would too. I just need the binary for the mod_jk module, I think I can configure & install it from there. Thanks in advance for your reply!

Greets, Target

Offline

#7 2006-02-01 17:06:17

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: [SOLVED] Installing mod_jk through Aurbuild - Cannot find...

aurbuild is not in available through pacman because its not in any of its repositories. It was in community but the TU's decided it should be removed from [community] because of the fact that it installs "unsupported" packages. So it will stay in  aur as just the PKGBUILD. If you want a prebuilt package, I have it available on my server here:
http://infiditus.homelinux.org/arch/pro … build/pkg/

As for the websearch function, it uses aur's search engine -there's no propreitary exterior database for it. So if you search for something in aur through the web interface, you should recieve the same results as aurbuild -S [keyword]

Offline

#8 2006-02-01 17:14:27

Target
Member
From: The Netherlands
Registered: 2005-12-02
Posts: 13
Website

Re: [SOLVED] Installing mod_jk through Aurbuild - Cannot find...

Thanks penguin, but I got aurbuild installed now. I will install it by using your provided package though, just too have everything installed through pacman.

I'm still looking for some binary form of mod_jk, I cannot get it to install from the source version. Anyone have a PKGBUILD for aurbuild or a pkg for pacman? Would be greatly appreciated!!

Offline

#9 2006-02-01 21:06:10

mpie
Member
From: 404 Not found
Registered: 2005-03-06
Posts: 649

Re: [SOLVED] Installing mod_jk through Aurbuild - Cannot find...

heres a prototype pkgbuld

will build but not install unless you run it as root (bad idea) am working on the install



# Contributor: mpie <michael.kyne-phillips1@ntlworld.com>
pkgname=mod_jk
pkgver=1.2.15
pkgrel=1
pkgdesc="The Jakarta tomcat connector"
url="http://ifpgui.sourceforge.net/"
license=""
depends=('tomcat')
source=(http://www.apache.org/dist/tomcat/tomcat-connectors/jk/source/jk-1.2.15/jakarta-tomcat-connectors-1.2.15-src.tar.gz)
md5sums=('b815a666329f7de097775113547539e0')

build() {
mkdir -p $startdir/pkg/usr/lib/apache
cd $startdir/src/jakarta-tomcat-connectors-1.2.15-src/jk/native/
./configure --with-apxs=/usr/sbin/apxs
make || return 1
cp apache-2.0/mod_jk.so $startdir/pkg/usr/lib/apache
}

Offline

#10 2006-02-01 23:30:38

Target
Member
From: The Netherlands
Registered: 2005-12-02
Posts: 13
Website

Re: [SOLVED] Installing mod_jk through Aurbuild - Cannot find...

Hi mpie,

I greatly appreciate it that you take the time and effort to help me out here! I looked at the commands you where doing in the pkgbuild and tried some allready, I downloaded the source, extracted it and ran the commands as specified in the pkgbuild, the output:

(only errors)

appending configuration tag "F77" to libtool
checking for test... /bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/opt/gnome/bin:/opt/java/jre/bin:/opt/java/bin:/opt/qt/bin
checking for rm... /bin/rm
checking for grep... /bin/grep
checking for echo... /bin/echo
checking for sed... /bin/sed
checking for cp... /bin/cp
checking for mkdir... /bin/mkdir
checking for uint32_t... yes
checking size of uint32_t... 4
checking for u_int32_t... yes
checking size of u_int32_t... 4
checking for unsigned long... yes
checking size of unsigned long... 4
checking for unsigned int... yes
checking size of unsigned int... 4
checking for unsigned long long... yes
checking size of unsigned long long... 8
checking for unsigned longlong... no
checking size of unsigned longlong... 0
checking for snprintf... yes
checking for vsnprintf... yes
checking for flock... yes
checking for setsockopt in -lsocket... no
checking whether to use SO_RCVTIMEO with setsockopt()... yes
checking whether to use SO_SNDTIMEO with setsockopt()... yes
./configure: line 22428: /bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/opt/gnome/bin:/opt/java/jre/bin:/opt/java/bin:/opt/qt/bin: No such file or directory
checking for target platform... unix
no apache given
./configure: line 22749: /bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/opt/gnome/bin:/opt/java/jre/bin:/opt/java/bin:/opt/qt/bin: No such file or directory
./configure: line 22752: /bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/opt/gnome/bin:/opt/java/jre/bin:/opt/java/bin:/opt/qt/bin: No such file or directory
./configure: line 22759: /bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/opt/gnome/bin:/opt/java/jre/bin:/opt/java/bin:/opt/qt/bin: No such file or directory
./configure: line 22954: /bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/opt/gnome/bin:/opt/java/jre/bin:/opt/java/bin:/opt/qt/bin: No such file or directory
./configure: line 22966: /bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/opt/gnome/bin:/opt/java/jre/bin:/opt/java/bin:/opt/qt/bin: No such file or directory
./configure: line 22975: /bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/opt/gnome/bin:/opt/java/jre/bin:/opt/java/bin:/opt/qt/bin: No such file or directory
configure: creating ./config.status
config.status: creating Makefile
config.status: creating apache-1.3/Makefile
config.status: creating apache-1.3/Makefile.apxs
config.status: creating apache-2.0/Makefile
config.status: creating apache-2.0/Makefile.apxs
config.status: creating common/Makefile
config.status: creating common/list.mk
config.status: creating jni/Makefile
config.status: creating common/portable.h
config.status: executing depfiles commands

I dont think the pkgbuild can fix those errors, what do you think? I looked through the configure script at the lines that the error messages state, but I don't see anything obviously wrong there. I've also met all the requirements for installing mod_jk as far as I know. echo $? after running ./configure shows a '0' too, so I'm not too sure if those errors are that serious.. After running a 'make' though (it does work for pretty long..) it doesn't show any errors, but there is no mod_jk.so in apache-2.0 directory. Also, after running make the exit code is still 0, so I don't think it has an error anywhere.

Any hints on what might cause these errors would be greatly appreciated!

I've attached the full output of the configure command and the make command:
http://tempz0ne.homelinux.com/configure-output.txt
http://tempz0ne.homelinux.com/make-output.txt

Offline

#11 2006-02-01 23:46:32

mpie
Member
From: 404 Not found
Registered: 2005-03-06
Posts: 649

Re: [SOLVED] Installing mod_jk through Aurbuild - Cannot find...

Offline

#12 2006-02-02 00:51:45

Target
Member
From: The Netherlands
Registered: 2005-12-02
Posts: 13
Website

Re: [SOLVED] Installing mod_jk through Aurbuild - Cannot find...

Thanks a lot mpie, you're my saviour (or how do you spell that again?!). Thanks a lot! I can now succesfully load the module into my apache server! I have not yet configured tomcat to work with apache, but that is documented thoroughly on the net. Thanks a lot! Couldn't have done it without you!

Greetings, Target

EDIT: I got it working following the excellent tomcat documentation. The mod_jk.so file really was the only thing that I was missing it appears. Thanks again for your help, do you think I should add this stuff to the wiki?

Offline

#13 2006-02-02 06:41:25

mpie
Member
From: 404 Not found
Registered: 2005-03-06
Posts: 649

Re: [SOLVED] Installing mod_jk through Aurbuild - Cannot find...

the wiki does need updating, but I have now added the pkgbuild to the aur

Offline

#14 2006-02-02 11:51:27

Target
Member
From: The Netherlands
Registered: 2005-12-02
Posts: 13
Website

Re: [SOLVED] Installing mod_jk through Aurbuild - Cannot find...

Hi mpie,

Thanks for adding it to the aur, that's very nice! I've updated the wiki (http://wiki.archlinux.org/index.php/Tomcat_and_Apache).

Thanks again for all your help, I can now happily serve .jsp files from my apache hosts.

Greets, Target

Offline

#15 2006-08-26 19:39:07

BeardedYeti
Member
Registered: 2006-03-26
Posts: 11

Re: [SOLVED] Installing mod_jk through Aurbuild - Cannot find...

Hrm. I think something is wrong with the wiki. Installing mod_jk with aurbuild provides me with modjk.so, but the rest of the wiki refers to mod_jk2.so. I tried "slocate mod*jk*.so, but it only returns modjk.so. Is this a problem? should I change mod_jk.so to mod_jk2.so in the instructions, or should I somehow acquire modjk2.so? Or am I missing something obvious? Thanks

Offline

Board footer

Powered by FluxBB