|
I am building dspace from source, however ant test does not work. I
get the following error: $ ant test Buildfile: build.xml BUILD FAILED Target `test' does not exist in this project. I tried running the psql commands just like below and still only get SELECT as the response. Below is a snippit of our installation process that involved postgres. Maybe it'll help shed some light.
Notation
Throughout
the course of
this document we will used the following notation: [postgres-src] – This is the source from
which you will build and install the PostgreSQL database system. We used /usr/local/postgresql-7.3.4. [postgres] – The directory in which
you will/have install(ed) PostgreSQL.
We used /usr/local/pgsql. [postgres-data] –
This is the location of the PostgreSQL database, which will then
contain the
data from DSpace. We used /usr/local/pgsql/data. Note:
that this directory must have rwx permissions for the
PostgreSQL user. PostgreSQL
We
used 7.3.4. Pre-requisite
Software:
gmake or make: Download
the GNU
Make binary file, which comes as
a .tar.gz compressed file. We
located GNU Make at /usr/local/bin/make. gcc: Download the gcc binary file, which comes as
a .tar.gz compressed file. We
located gcc at /usr/local/bin/gcc. readline: Download
the readline binary file, which comes as a .tar.gz compressed file. We
located readline at /usr/local/bin/readline. Copy
the libreadline library into /usr/lib and /usr/local/lib. JDBC: Download the
JDBC drivers at
http://jdbc.postgresql.org/download.html. We located
the download at /usr/local/jdbc. Installation:
Note: DSpace comes
packaged with a postgresql.jar file for an older version
of PostgreSQL. To make DSpace work with
PostgreSQL 7.2.4 it is necessary to replace their version of postgresql.jar with the new one created
with this installation. Note: You require Ant 1.5 in order to build
PostgreSQL 7.2.4 using the –-with-java option required to create
the drivers for DSpace. Note: You must do the
installation
in bourne shell. ·
Create
a user called postgres and a group of the same name. ·
Login
as postgres in order to do the installation. ·
Configure
the source: Go
to the directory [postgres-src], and run the following command: ./configure
--prefix=[postgres] –-enable-multibyte --enable-unicode --with-java ·
make PostgreSQL: In [postgres-src] run the command: make ·
Install
PostgreSQL: In [postgres-src] run the command: make install ·
Create
the database: Use
the following commands (you may be in any system directory provided
that you
use the full path names of each directory): mkdir
[postgres-data] [postgres]/bin/initdb
–D [postgres-data] ·
Copy
the postgresql.jar file cp
[postgres]/share/java [DSpace-src]/lib ·
Place
the libgcc library in the postgres library cp libgcc_s.so.1
[postgres]/lib/. ·
Copy
the JDBC driver jar file to postgres: cp jdbcDriver.jar
[postgres]/share/java/. ·
Edit
the postgres configuration file, [postgres]/data/postgresql.conf.
to switch
on the TCP/IP connections and
configure the port: Set
the following configuration parameters: tcpip_socket=true port=5432 ·
Set
the following environment variables: PGDATA=[pgsql]/data PGPORT=5432 ·
Start
the database service: [postgres]/bin/postmaster
–o "-i" -D /usr/local/pgsql/data > logfile 2>&1 & DSpace Installation·
Create
a DSpace user and a group of the same name,
containing that user. ·
Log
in as DSpace. ·
Create
the DSpace database and user for that database: Use
the following commands in the directory [postgres]/bin: createuser –U
postgres –d –A –P DSpace createdb –U
DSpace DSpace –E UNICODE Dave Cramer wrote: Tammy, are you building the jar from source? if so can you try running ant test ? also see my comments belowDave On Wed, 2003-12-24 at 09:32, Tammy Jones wrote: --
Tammy Jones
ANALYTICAL SERVICES & MATERIALS
NASA LaRC
2 West Durand Street
Hampton, VA 23681
Mail Stop 185
Building 1194, Room 106
Phone: 4-8003
Fax: 4-8869
_____________________________________________________
"When your values are clear your decisions are easy"
-Walt Disney-
_____________________________________________________
|
- [BUGS] BUG #1026: org.apache.commons.dbcp.DbcpExcepti... PostgreSQL Bugs List
- Re: [BUGS] BUG #1026: org.apache.commons.dbcp.Db... Kris Jurka
- Re: [JDBC] [BUGS] BUG #1026: org.apache.comm... Tammy Jones
- Re: [JDBC] [BUGS] BUG #1026: org.apache.... Dave Cramer
- Re: [JDBC] [BUGS] BUG #1026: org.apa... Tammy Jones
- Re: [JDBC] [BUGS] BUG #1026: or... Dave Cramer
- Re: [JDBC] [BUGS] BUG #1026... Tammy Jones
