failed install on RHEL4: jar command not found

Ask questions about your setup or get help installing ZCS server (ZD section below).
Post Reply
mcgaffin
Posts: 11
Joined: Fri Sep 12, 2014 10:00 pm

failed install on RHEL4: jar command not found

Post by mcgaffin »

Hi,
I'm trying to install M2 on a fresh Red Hat box. Everything goes well until the installation of zimbra-store, which fails, leaving these messages in the log:


Preparing packages for installation...

zimbra-store-3.0.0_M2_740.RHEL4-20051114171614

cat: /opt/zimbra/zimbramon/zimbramail.cf: No such file or directory

-bash: jar: command not found

-bash: jar: command not found

error: %post(zimbra-store-3.0.0_M2_740.RHEL4-20051114171614.i386) scriptlet failed, exit status 127


I couldn't find any other references to this error message in the forums. Thanks for any suggestions.
- david
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

failed install on RHEL4: jar command not found

Post by marcmac »

We should be installing the jar cmd in /opt/zimbra/java/... Did the zimbra user get created?
mcgaffin
Posts: 11
Joined: Fri Sep 12, 2014 10:00 pm

failed install on RHEL4: jar command not found

Post by mcgaffin »

i had already created a zimbra user before the install. there is a 'jar' binary in /opt/zimbra/jdk1.5.0_05/bin and a symlink to it at /opt/zimbra/java. For some reason, I guess it's not being found.
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

failed install on RHEL4: jar command not found

Post by marcmac »

The environment probably isn't getting set. What shell did you give you zimbra user?
mcgaffin
Posts: 11
Joined: Fri Sep 12, 2014 10:00 pm

failed install on RHEL4: jar command not found

Post by mcgaffin »

/bin/bash
FWIW, I just tried the network edition with the same results.
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

failed install on RHEL4: jar command not found

Post by marcmac »

Try deleting the user and re-installing.
mcgaffin
Posts: 11
Joined: Fri Sep 12, 2014 10:00 pm

failed install on RHEL4: jar command not found

Post by mcgaffin »

That's much better. One thing I noticed right away is that when Zimbra created the 'zimbra' user, it set its home directory to /opt/zimbra instead of /home/zimbra. That's probably why I was getting the 'command not found' error.
Thanks for your help.
- david
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

failed install on RHEL4: jar command not found

Post by marcmac »

I'll add some logic to reset the home and shell if the user already exists.
Post Reply