Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Installing Zimbra Source on Fedora

Hybrid View

  1. #1
    Join Date
    Mar 2006
    Posts
    14
    Rep Power
    9

    Default Installing Zimbra Source on Fedora

    Guys,
    Following the directions given in ZimbraServer/docs/INSTALL.txt, I have installed all the components i.e. tomcat, mysql, ldap and now I am trying to build ZimbraServer using ant. I couldnt get connected to perforce but I got the source from cvs.zimbra.com. In LDAP, after installing sleepycat, I found that one of the tests was failing due to some version mismatch. I ingored the test and moved forward to install LDAP which completed without any problems.
    Then I added zimbraServer, ZimbraWebclient and Ajax directories as projects in java prespective on eclipse. But once I try to build ZimbraServer using ant with the target "reset-the-world", I get whole lot of errors. Below is top few lines of the errors I am getting.
    clean: ...
    build-init: ...
    [mkdir] Created dir: /opt/zimbra/ZimbraServer/build/dist/openldap/etc/openldap/schema
    [mkdir] Created dir: /opt/zimbra/ZimbraServer/build/generated/src/java
    [mkdir] Created dir: /opt/zimbra/ZimbraServer/build/dist/zimlets
    [mkdir] Created dir: /opt/zimbra/ZimbraServer/build/dist/zimlets-extra
    compile:
    [javac] Compiling 751 source files to /opt/zimbra/ZimbraServer/build/classes
    [javac] ----------
    [javac] 1. WARNING in /opt/zimbra/ZimbraServer/src/java/com/zimbra/cs/account/Account.java
    [javac] (at line 38)
    [javac] public static enum CalendarUserType {
    [javac] ^^^^
    [javac] 'enum' should not be used as an identifier, since it is a reserved keyword from source level 5.0 on
    [javac] ----------
    [javac] ----------
    [javac] 2. ERROR in /opt/zimbra/ZimbraServer/src/java/com/zimbra/cs/account/Account.java
    [javac] (at line 38)
    [javac] public static enum CalendarUserType {
    [javac] ^^^^
    [javac] Syntax error on token "enum", class expected
    [javac] ----------
    [javac] 3. ERROR in /opt/zimbra/ZimbraServer/src/java/com/zimbra/cs/account/Account.java
    [javac] (at line 38)
    ................... and many many more

    I couldnt quite get to the bottom of problem as there seems to be a mismatch between the version of jdk I have on my machine and the version the code was written in. My java version is 1.4.2.
    Can anybody help me with this please. I downloaded files from CRAY folder at zimbra which is supposed to be last stable release.
    Thanks

  2. #2
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    You must use JDK 1.5 +
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  3. #3
    Join Date
    Mar 2006
    Posts
    14
    Rep Power
    9

    Default

    Thanks Kevin,
    Its pretty strange that no matter what I do Fedora core 4 still shows version of java as 1.4.2. I have added java in path and have pointed JAVA_HOME to version 5 as well. But nothing seems to change it. I could see that presently /usr/bin/java is infact a link to etc/alternatives/java in fedora. Any ideas how to change this to version5. I have also seen some comments that version 5 is not that stable, have you faced any problems with this version?
    Thanks

  4. #4
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    You have to put java in your path as well as set JAVA_HOME. 1.5 is the latest stable version of Java. Remember you need to have the Sun JDK from http://java.sun.com and not some other version.
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  5. #5
    Join Date
    Mar 2006
    Posts
    14
    Rep Power
    9

    Default

    Yes, thats what I did, but still the OS reads the older version. I guess this is intentional as JDK 1.5 or 5 is not completely backward compatible.

  6. #6
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    What aer you doing to check the version.

    Make sure it is in your path, verify that, and then run -version so like:

    env | grep PATH
    which java
    java -version
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  7. #7
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    This error means there is a problem with the server (service webapp) which can't start unless LDAP is there as it needs to get it's config from LDAP. So you need LDAP working and loaded by reset-the-world to get the rest of the parts to fall into place.
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  8. #8
    Join Date
    Mar 2006
    Posts
    14
    Rep Power
    9

    Default

    Kevin,
    For LDAP, what all components I have to configure? There is sleepycat, cyrus and others that can be installed. Kindly let me know the minimum components that If I install with LDAP, the system shall start running.
    Thanks

  9. #9
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    Well you have to compile or get a binary build of openldap. In general you shouldn't need to configure anything. Just need to get it running, set an admin password and get it to listen on port 389. The build will take care of creating a schema and loading all the Zimbra defaults.
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  10. #10
    Join Date
    Mar 2006
    Posts
    14
    Rep Power
    9

    Default

    But the schema shall be created in sleepy cat dbms right?

Similar Threads

  1. huge log size
    By rmvg in forum Administrators
    Replies: 5
    Last Post: 01-02-2007, 10:39 AM
  2. zimbra-core missing
    By kinaole in forum Developers
    Replies: 1
    Last Post: 10-02-2006, 12:59 PM
  3. Logger
    By jholder in forum Installation
    Replies: 24
    Last Post: 03-31-2006, 11:50 AM
  4. M3 problem with shares
    By titangears in forum Users
    Replies: 4
    Last Post: 01-12-2006, 01:01 PM
  5. Monitoring : Data not yet avalaible
    By s3nz3x in forum Installation
    Replies: 7
    Last Post: 11-30-2005, 07:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •