Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
3Activity
0 of .
Results for:
No results containing your search query
P. 1
Compiere PostgreSQL

Compiere PostgreSQL

Ratings:

5.0

(1)
|Views: 179|Likes:
Published by api-3778979

More info:

Published by: api-3778979 on Oct 18, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

Installing Compiere with PostgreSQL 8.0
by Armen Rizal (Goodwill Consulting)
http://www.goodwill.co.id
Overview
Thisarticle provides series of guides to install CompierewithPostgreSQL 8.0 on a Linux systemsin accordance with
the work of E-Evolution (http://www.e-evolution.com.mx) on Compiere Libero.My hat off to E-Evolution!
Part I:Pre-Installation Steps
In this article, we are going to store PostgreSQL and Compiere application in/u01/app, while the database files will be
in/u02/pg_data. This guide adheres to the Optimal Flexible Architecture (OFA) for the naming conventions used in
creating the directory structure.
Login as root. First, create a directory to storetheapplications.
#mkdir /u01
#mkdir /u01/app
Extract CompiereLiberobinary distribution under/u01/app.
SetupEnvironment Variables
On some systems, we must set the environment variables priorly. So let's do it now then. You can also put them in file
.profileso they get run everytime you log in.
#cat >> /etc/profile <<EOF

export JAVA_HOME=/usr/local/bin/j2sdk1.4.2_08
export COMPIERE_HOME=/u01/app/Compiere2
export PATH=$PATH:/u01/app/pgsql/bin:$JAVA_HOME/bin
exportLD_LIBRARY_PATH=
/u01/app/pgsql/lib:$JAVA_HOME/jre/lib/i386:$JAVA_HOME/jre/lib/i386/client
EOF

PartII: InstallingJava
Login in as root.Download Java 2 SDK from Sun Microsystems website. Assume it is J2SDK version 1.4.2.8. Put it in
/usr/local/bin.
Install with:
#./j2sdk-1_4_2_08-linux-i586.bin
And link with:
#ln-s /usr/local/bin/j2sdk1.4.2_08/bin/java /usr/bin/java
If you run the following command and see the same result, you re doing good.
#java-version
java version "1.4.2_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)
PartIII: InstallingPostgreSQL
The PostgreSQL 8.0.3 sources can be obtained by anonymous FTP from
ftp://ftp.postgresql.org/pub/source/v8.0.3/postgresql-8.0.3.tar.gz. Use a mirror if possible. After you have obtained the
file, unpack it:
#gunzip postgresql-8.0.3.tar.gz
#tar xf postgresql-8.0.3.tar
This will create a directory postgresql-8.0.3 under the current directory with the PostgreSQL sources. Change into that
directory for the rest of the installation procedure.
Next, we rebuild the source.
#./configure --prefix=/u01/app/pgsql

#gmake
#su
#gmake install

Now we create PostgreSQL user account and create a new database cluster.

#adduser postgres
#mkdir /u02
#mkdir /u02/pg_data
#chown postgres /u02/pg_data
#su- postgres

$/u01/app/pgsql/bin/initdb-D /u02/pg_data
For more information on installing PostgreSQL, please refer to:
http://www.postgresql.org/docs/8.0/interactive/installation.html
To PostgreSQL works in network is necessary to run postmaster with parameter-i, remember to review client
authentification (http://www.postgresql.org/docs/8.0/interactive/client-authentication.html)
Example contents of file/u02/pg_data/pg_hba.conf
host all all 192.168.0.0 255.255.255.0 trust
If all goes well, now we can start the server:
$pg_ctl start-D /u02/pg_data-l logfile-o "-i"
Install Procedure Languages
This is necessary for a emulation because PLJava does not support mapping java type
$createlang plpgsql template1
Create User & Database for Compiere
$createuser compiere
$createdb compiere-e unicode
Install PLJava
Login as root andcreate directory:
#mkdir /u01/app/pgsql/pljava
#mkdir /u01/app/pgsql/jdbc
Download PLJava fromhttp://gborg.postgresql.org/project/pljava/genpage.php?downloads
Extract thefile into/u01/app/pgsql/pljava

#gunzip pljava-i686-pc-linux-gnu-pg8.0-1.1.0.tar.gz
#cd /u01/app/pgsql/pljava
#tar xf pljava-i686-pc-linux-gnu-pg8.0-1.1.0.tar.gz

You may also want to download PostgreSQL's JDBC Library fromhttp://jdbc.postgresql.org/download/postgresql-8.0-
310.jdbc3.jar. Put it into/u01/app/pgsql/jdbc
Add parameters to your file/u02/pg_data/postgresql.conf:
# define "pljava" as a custom variable class. This is a comma separated
# list of names.
#custom_variable_classes = 'pljava'
# define the class path that the JVM will use when loading the
# initial library. Only meaningful for non GJC installations
#pljava.classpath = '/u01/app/pgsql/pljava/pljava.jar'
# Set the size of the prepared statement MRU cache
##pljava.statement_cache_size = 10
# If true, lingering savepoints will be released on function exit. If false,
# the will be rolled back
#pljava.release_lingering_savepoints = true
# Define startup options for the Java VM.
#pljava.vmoptions ='-Xmx64M-Dbackchannel.port=48'

# Setting debug to true will cause the postgres process to go
# into a sleep(1) loop on its first call to java. This is
# only useful if you want to debug the PLJava internal C code.

#pljava.debug = false
Also still in/u02/pg_data/postgresql.conf, youmight want to set thedynamic_library_path.
Scroll up a little
bit, you will find the entrydynamic_library_path= $libdir .Uncomment the line andchange that to point to where
you install PLJava.
dynamic_library_path ='/u01/app/pgsql/pljava'
And then scroll up even moreuntilyou find the Connection settings. Uncomment these lines and make the necessary
changes. This is when you need to connect to PostgreSQL fromother computers on the network.
listen_address ='192.168.0.10'
port ='5432'

Activity (3)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
one2bocp liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->