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.

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:


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


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 = ''

Start the postgresql server

/etc/init.d/postgresql-8.3 start


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

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

custom_variable_classes = 'pljava'
pljava.classpath = '/usr/lib/postgresql-8.3/lib64/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

This dialog should open:


edit and save changes.

Now you have to import the database:

#cd /opt/Adempiere/utils/

and start the Application Server