|Date||Mon, 5 Nov 2007 10:14:41 -0800 (PST)|
|Subject||[greenstone-users] compiling 3.03 on OS X with Tomcat 6|
I'm new to the list and I'm not sure if this the right place to ask this question, but here goes. I'm trying to compile the 3.03 source distribution on OS X (1.4/Tiger). I ultimately want to install it as a servlet in my existing Tomcat 6 installation. I've come across multiple issues and (I think) resolved some of them myself. I'll explain them here in case the information may be useful to someone else. I'm still not quite there.
* First issue: 'ant prepare install' didn't work. ant complains that build.xml does not have a 'prepare' target. So I figured I would get around that with ant configure && ant compile && ant install. I'm not sure if that's the way to go.
* Second issue: When I run ant configure, ant complains that there is no 'get-macos-extra' target. I looked at the build.xml in svn and found that there was a section missing from my 3.03 source download (the get-macos-extra target), so I added it (right before the 'install-macos-extra' target):
<target name="get-macos-extra" depends="init" if="need.macos.extra">
* Third issue: Several scripts in the various packages couldn't run because the permissions were not set to allow execution. I chmod +x'ed the following files:
(I think that's all of 'em.. :-))
At this point 'ant configure' followed by 'ant compile' works (at least, I don't get any error messages.)
* Last issue. When I try 'ant install' (having set my build.properties to install in my existing Tomcat 6 installation at /usr/local/tomcat), I get an error: "/usr/local/tomcat/common/endorsed not found." I think this has to do with Tomcat 6 vs. previous versions. Does greenstone 3 work with tomcat 6?
I hope this is useful to someone and/or somebody can help me with that last issue!