|Date||Tue, 6 Nov 2007 15:18:47 -0800 (PST)|
|Subject||[greenstone-devel] compiling 3.03 on OS X with Tomcat 6|
I sent this question to greenstone-users with no response. Maybe this is a more appropriate place to ask. 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 by using 'ant configure && ant compile && ant install' instead. 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:
* 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 something to do with Tomcat 6 vs. previous versions of Tomcat. Does greenstone 3 work with tomcat 6?
I hope this is useful to someone and/or somebody can help me with that last issue!