Unable to install on linux mint 14

Help
split
2013-01-25
2013-03-08
  • split

    split - 2013-01-25

    Hi!
    I've downloaded Adempiere_370LTS a few days back but am still unable to install and run it. have looked into the forums, wiki, other online sources. but nothing's working.  the closest i got was Installing ADempiere 3.7.0 on Ubuntu 11.04 but that too didnt work. its kind of frustrating to have a great software but no clear guidelines/steps to install on linux!

     
  • split

    split - 2013-01-25

    my OS is mint 14 cinnamon

     
  • Vassilis V

    Vassilis V - 2013-01-25

    Hi!

    It would help to know where exactly you have trouble with the HowTo, where do you get stuck.

    Vassilis

     
  • split

    split - 2013-01-26

    From the "PostgreSQL Installation" onwards. when i try to edit the file it just shows a blank file. but i still manage to follow the instructions. then when i reach the adempiere installation and "Test" it, it gives an error that java 1.6 is reqd.

     
  • Vassilis V

    Vassilis V - 2013-01-26

    What packages are installed with the command
    sudo apt-get install postgresql default-jdk

    I would assume that instead of postgres 8.4 you probably have another postgres version installed. So when you copy&paste the next line to edit the postgres configuration you are getting empty files. Write the command manually and use the Tab button to autocomplete the path.
    Your path could be for example sudo nano /etc/postgresql/9/main/pg_hba.conf

    In case you are installing postgres9 remember to skip the part where you are editing the Adempiere_pg.dmp file

    Vassilis

     
  • split

    split - 2013-01-27

    You were right!
    i have version 9 installed. managed to edit the files correctly.
    now i'm stuck at another place:
    when i run

    sudo ./RUN_setup.sh
    

    it gives the output:

    Install ADempiere Server
    JAVA_HOME is not set.
    You may not be able to start the Setup
    Set JAVA_HOME to the directory of your local JDK.
    
    Setup Dialog
    ===================================
    *** 2013-01-27 14:32:02.979 Adempiere Log (CLogConsole) ***
    14:32:02.979   CLogMgt.setLevel: CONFIG [1]
    14:32:04.064 Setup.<init>: ADempiere(r) Release 3.7.0LTS_2011-09-01 -Smart Suite ERP,CRM and SCM- (c) 1999-2011 ADempiere(r); Implementation: ADempiere 20110901-0915 - ADempiere [1]
    14:32:04.227 ConfigurationData.load: Defaults [1]
    14:33:00.097 Config.test: OK: JavaHome=/usr/lib/jvm/java-7-openjdk-i386 [17]
    ===========> ConfigurationData.test: Wrong Java Version: Should be 1.6.0 [17]
    ===========> ConfigurationData.test: Wrong Java Version: Should be 1.6.0 [17]
    ===========> ConfigurationPanel$1.finished: Error Java Home 
    (Wrong Java Version: Should be 1.6.0) [13]
    ===========> ConfigurationPanel$1.finished: Error Java Home 
    (Wrong Java Version: Should be 1.6.0) [13]
    *** 2013-01-27 14:33:09.409 Adempiere Log (CLogConsole) ***
    ===================================
    ===================================
    Make .sh executable
    Install ADempiere Server
    ./RUN_setup.sh: 8: .: Can't open ./myEnvironment.sh
    

    When i press 'Test' it says 'Error: wrong java version, should be 1.6'

     
  • split

    split - 2013-01-27

    just checked, i have openjdk-7 installed not 6. does that matter?

     
  • Vassilis V

    Vassilis V - 2013-01-27

    Yes it does. Try removing openjdk-7 and installing 6.

    The error  Wrong Java Version: Should be 1.6.0 means that it has to be 6. Either Sun Java or OpenJDK

    Vassilis

     
  • split

    split - 2013-01-27

    its done but now another error:

    Error Database Port
    (DB Server port = 1521)

     
  • Stanislav

    Stanislav - 2013-01-27

    > its kind of frustrating to have a great software but no clear guidelines/steps to install on linux!

    Welcome, splitme!
    Well-known situation for me and it seems to be a standard start-up for Adempiere developers ;-)
    AD is definitely not a "box" product so you'd be prepared to spend some time on familiarizing yourself with it.
    Nevertheless I've got it working on debian and CentOS aobut three months ago. But for now I'm on Windows 7.
    So I have:
    .. Windows 7 Professional 64-bit SP1
    .. jdk1.6.0_37 - the latest version of 1.6 subtree - with Java 7 it won't work (I tried ;-)
    .. PostgreSQL 9.2 (earlier I tried version 8.0 and there were some problems) and pgAdmin 3 (db administration tool)
    .. JasperReports 3.7.3 - for developing reports (actually I have also versions 4.1 and 5, but to develop reports for AD370 you need version 3.7.3. May be you can switch version 5 to work in compatibilty mode with 3.7.3 but I haven't tried it so far)
    .. Eclipse IDE for Java EE Developers 1.5.1.20120917-1257    - that's for making customizations in java classes - I've just made it work

    There are some useful docs
    .. ERP ACCOUNTING by Redhuan D. Oon
    .. ADempiere 3.4 ERP Solutions by Bayu Cahya Pamungkas
    .. ADempiere 3.6 Cookbook by Ajit Kumar

    And also, of course, there are always ADempiere wiki and this sourceforge forum open in of my browser windows :-))
    Actually the main problem with the docs is not that you don't have it but rather that you have it more than you could swallow. And part of it is not fresh already, you know :-/

    So, good luck!
    Stanislav

     
  • Stanislav

    Stanislav - 2013-01-27

    Error Database Port (DB Server port = 1521)

    My PostgreSQL 9.2 is running on port 5432

     
  • split

    split - 2013-01-27

    Even that port doesnt work for me.

     
  • split

    split - 2013-01-27

    Its probably some issue with installation. Even cannot create a db with

    createdb mydb
    

    command.
    Outputs

    createdb: could not connect to database postgres: could not connect to server: No such file or directory
            Is the server running locally and accepting
            connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
    
     
  • split

    split - 2013-01-27

    Tried port 5433. Did get some progress. Now a new error :)

    Error JDBC Connection
    (Error connecting: jdbc:postgresql://linux:5433/template1 - postgres/)

    I'm able to connect to server through 'pgAdmin3'

     
  • Stanislav

    Stanislav - 2013-01-28

    There was a similar problem described here http://www.adempiere.ru/forum/9/1769
    They ended up with the following successful combinations
    - Adempiere 370LTS on Ubuntu Server 11.04, PostgreSQL 8.4
    - Adempiere 370LTS on Ubuntu Server 11.04, PostgreSQL 9.1

    As for my own experience… here are some key points, may be they wil be of some help.
    The main instruction that I was following was this   http://www.adempiere.com/Install_Adempiere_3.5.4_on_Centos_5.4_/_PostgreSQL_8.4.2

    Of course, I was using more fresh versions of all products, namely
    - CentOS release 6.3 (Final)
    - PostgreSQL 9.2.1
    - java 1.6.0_24
    - Adempiere_370LTS

    1) Look into   /var/lib/pgsql/9.2/data/pg_hba.conf

    local   all             all                                     trust
    host    all             all             127.0.0.1/32            trust
    host    all             all             ::1/128                 trust

    That was sucessful but probably not secure.

    2) You should have a database and a role in Postgres created like this
    su - postgres
    psql
    create database adempiere;
    create role adempiere;
    create schema adempiere;
    \q

    3) Linux user - I created it also
    adduser adempiere
    passwd adempiere
    It's home catalogue was  /home/adempiere/Adempiere
    usermod -g wheel adempiere

    4) after downloading and unpacking Adempiere:
    chmod -R 755 /var/adempiere/Adempiere/
    5) In file     /etc/profile.d/java.sh
            export ADEMPIERE_HOME=/var/adempiere/Adempiere
            export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0
    6) re-login
    7) ./RUN_setup.sh

    Well, looking back I think that it was a bit a lot of … eh… pain… with that linux installations.

    Regards,
    Stanislav

     
  • split

    split - 2013-01-29

    Installed it on Windows 7 quite easily.
    But thanks for all your help and time.

     
  • Stanislav

    Stanislav - 2013-01-31

    Well, thanks for letting us know.
    It is always interesting to know the end of the story (preferably in advance :)))

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks