Difference between revisions of "How to Install ADempiere on Gentoo Linux"

From ADempiere
Jump to: navigation, search
This Wiki is read-only for reference purposes to avoid broken links.
 
(create english version of howto install adempiere on gentoo linux)
Line 1: Line 1:
#REDIRECT [[Installiere ADempiere auf Gentoo Linux (German)]]
+
== Install ADempiere on Gentoo Linux ==
 +
 
 +
 
 +
I am using JDK 1.6 and PosgreSQL version 8.3.3 if you are not able to install this versions check howtos for unmasking ebuilds in gentoo wiki.
 +
 
 +
 +
== Install JDK ==
 +
 
 +
#emerge sun-jdk
 +
 
 +
Check that JAVA_HOME is correct:
 +
 
 +
#java-config -L
 +
 
 +
== Install PostgreSQL ==
 +
 
 +
#emerge postgresql
 +
 
 +
#emerge --config postgresql
 +
 
 +
Create /etc/env.d/75java if it's not there:
 +
 
 +
LDPATH="/opt/sun-jdk-1.6.0.07/jre/lib/amd64/server/"
 +
PATH="/opt/sun-jdk-1.6.0.07/"
 +
 
 +
Now we need to run env-update to make changes active.
 +
 
 +
#env-update
 +
 
 +
Set new password for User Postgres:
 +
 
 +
#passwd postgres
 +
 
 +
Now define the ip's where your postgres should listen /var/lib/postgresql/8.3/data/postgresql.conf
 +
 
 +
listen_addresses = '*' for all
 +
 
 +
or something like that
 +
 
 +
listen_addresses = '192.168.2.1'
 +
== Install PLJava ==
 +
 
 +
Download PLJava for you architekture and you postgresversion from Projektseite. Extract pljava files to /usr/src/pljava and not copy pljava.so and pljava.jar ro /usr/lib/postgresql/ or /usr/lib64/ppostgresql-8.3.
 +
 
 +
Now add following statement to /var/lib/postgresql/8.3/data/postgresql.conf:
 +
 
 +
custom_variable_classes = 'pljava'
 +
pljava.classpath = '/usr/lib/postgresql/pljava.jar'
 +
pljava.statement_cache_size = 10
 +
pljava.release_lingering_savepoint = true
 +
pljava.debug = false
 +
 
 +
And add execute this sql stuff as user postgres.
 +
 
 +
su postgres -c "/usr/bin/psql -d template1 -f /usr/src/pljava/install.sql"
 +
 
 +
== Install ADempiere ==
 +
 
 +
Create user for ADempiere
 +
 
 +
#createuser -U postgres -W adempiere
 +
Shall the new role be a superuser? (y/n) n
 +
Shall the new role be allowed to create databases? (y/n) y
 +
Shall the new role be allowed to create more new roles? (y/n) y
 +
 
 +
Create database for ADempiere
 +
 
 +
#createdb -U adempiere -W adempiere
 +
 
 +
 +
 
 +
extract you ADempiere to /opt/Adempiere
 +
 
 +
#cd /opt/Adempiere
 +
#chmod +x RUN_setup.sh
 +
#./RUN_setup.sh
 +
 
 +
This dialog should open:
 +
 
 +
[[Image:Gentoo-howto1.png]]
 +
 
 +
edit and save changes.
 +
 
 +
Now you have to import the database:
 +
 
 +
#cd /opt/Adempiere/utils/
 +
#./RUN_ImportAdempiere.sh
 +
 
 +
and start the Application Server
 +
 
 +
#./RUN_Server2.sh

Revision as of 05:40, 15 August 2008

Install ADempiere on Gentoo Linux

I am using JDK 1.6 and PosgreSQL version 8.3.3 if you are not able to install this versions check howtos for unmasking ebuilds in gentoo wiki.


Install JDK

#emerge sun-jdk

Check that JAVA_HOME is correct:

#java-config -L

Install PostgreSQL

#emerge postgresql 
#emerge --config postgresql

Create /etc/env.d/75java if it's not there:

LDPATH="/opt/sun-jdk-1.6.0.07/jre/lib/amd64/server/"
PATH="/opt/sun-jdk-1.6.0.07/"

Now we need to run env-update to make changes active.

#env-update

Set new password for User Postgres:

#passwd postgres

Now define the ip's where your postgres should listen /var/lib/postgresql/8.3/data/postgresql.conf

listen_addresses = '*' for all

or something like that

listen_addresses = '192.168.2.1'

Install PLJava

Download PLJava for you architekture and you postgresversion from Projektseite. Extract pljava files to /usr/src/pljava and not copy pljava.so and pljava.jar ro /usr/lib/postgresql/ or /usr/lib64/ppostgresql-8.3.

Now add following statement to /var/lib/postgresql/8.3/data/postgresql.conf:

custom_variable_classes = 'pljava'
pljava.classpath = '/usr/lib/postgresql/pljava.jar'
pljava.statement_cache_size = 10
pljava.release_lingering_savepoint = true
pljava.debug = false

And add execute this sql stuff as user postgres.

su postgres -c "/usr/bin/psql -d template1 -f /usr/src/pljava/install.sql"

Install ADempiere

Create user for ADempiere

#createuser -U postgres -W adempiere
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases? (y/n) y
Shall the new role be allowed to create more new roles? (y/n) y

Create database for ADempiere

#createdb -U adempiere -W adempiere


extract you ADempiere to /opt/Adempiere

#cd /opt/Adempiere
#chmod +x RUN_setup.sh
#./RUN_setup.sh

This dialog should open:

Gentoo-howto1.png

edit and save changes.

Now you have to import the database:

#cd /opt/Adempiere/utils/
#./RUN_ImportAdempiere.sh

and start the Application Server

#./RUN_Server2.sh