I don't have the time right now to try installing DSpace on Amazon
(though I'd love to try that some time), but at least I'll respond
with some observations, hopefully they'll help you.
On Tue, Oct 30, 2012 at 11:15 PM, <nick@...> wrote:
Where can I find details about what kind of system this is?
> What I have downloaded and installed:
Although docs for 1.8 say 2.2.x or above is fine, I'd try it with
2.2.1, simply because most people likely used it at that time.
> While in the dspace-1.8.2-release/dspace directory, I call mvn package, but
> it says that the project does not have a pom.xml file, which of course it
> does, right there in the current directory. In desperation, I run the mvn
> as root (all of the postings say that it has to be run by the "dspace"
> user), and it proceeds downloading for about four minutes, but I suspect
> problems when the last line of the cascade of message from maven is "Cannot
> include project artifact: org.dspace:dspace:pom:1.8.2; it doesn't have an
> associated file or directory." and "The following patterns were never
> triggered in this artifact exclusion filter: ":war:"
The [dspace-src] and [dspace] directories should be owned and mvn/ant
run as the same user Tomcat runs under. If you were building it as
root, then your local maven cache is in /root/.m2.
Remember that if you want a really clean start, you have to run "mvn
clean" and move away your local maven repository (~/.m2). I'd also
delete the [dspace-src] directory and re-extract it just to make sure
there aren't files owned by any other user.
How did you get the 1.8.2 source? SVN/GIT/tarball? Link?
> (Keeping in mind that I have taken 20 or 30 or more paths through the
> various combinations of sudo and su and cd and init and createuser and
> adduser, this is just the latest) -- When I now run ant fresh_install, I get
> "Unable to locate tools.jar. Expected to find it in
> /usr/lib/jvm/java-1.6.0-openjdk-126.96.36.199.x86_64/lib/tools.jar. Buildfile:
> init_installation: BUILD FAILED
Being able to run ant means that very likely you managed to run maven
This particular error pertains to OpenJDK, not DSpace. Try installing
again the latest version of OpenJDK 6 and make sure it's not just JRE,
> I will pay someone who will reveal the secret(s) of getting dspace 1.8.2
> installed on an amazon ec2 instance. None of the dozen or so "recipes" I
> have found on the Internet work.
I may not have time to get familiar with EC2, prepare the environment
and build DSpace, but if you give me SSH access, I can try doing the
build and fixing your environment.
Compulsory reading: DSpace Mailing List Etiquette