Skip to content

Installation on Linux

peterdietz edited this page Nov 21, 2012 · 1 revision

Installation on Linux

Prerequisites

Java runtime might be preinstalled on most *nix (Linux, Unix, OSX) distributions, but for this application, you need to ensure that the JDK (Java Development Kit) is installed. Also, you don't need Oracle Java, OpenJDK is fine. Below are the Ubuntu instructions (apt-get), but if you use an OS with a different package manager, you'll have to figure these steps out.

Install Git

sudo apt-get install git

Install JDK

sudo apt-get install default-jdk

Instructions

Obtain the source code

git clone git://github.com/peterdietz/SAFBuilder.git
cd SAFBuilder

Compile the source code

./recompile.sh

Test that it works

./safbuilder.sh

It should return the usage syntax:

USAGE: BatchProcess /path/to/directory metadatafilename.csv
Hint -- directory: Use absolute path and no trailing slashes
Hint -- metadatafilename: needs to be in the directory, as do the content files

Run the SAFBuilder on the sample data

./safbuilder.sh /path/to/SAFBuilder/src/edu/osu/kb/sample_data AAA_batch-metadata.csv

This should then run the SAFBuilder over the included SampleData that came with this package. You can then inspect the SimpleArchiveFormat directory that was created, and that would then be suitable input for batch import to DSpace.

Here is the syntax of importing SAF Packages into DSpace using ItemImport. Basic-DSpace-Import-Process

sudo /dspace/bin/dspace import -a 
    -e [email protected] 
    -c 1811/49710 
    -s /home/peterdietz/Desktop/MelanieSeedsBatch/SimpleArchiveFormat/ 
    -m /home/peterdietz/Desktop/MelanieSeedsBatch/seedsbatch1.map