install.sh print not found [Solved]

Ask questions about your setup or get help installing ZCS server (ZD section below).
EDev
Posts: 6
Joined: Fri Aug 24, 2018 9:13 am

install.sh print not found [Solved]

Post by EDev »

Hi all,

I'm trying to install Zimbra on a RHE7 64 bits.

Running install.sh I get a list of Zimbra services to install.

Afterwards I type Y to agreement I type Y to use Zimbra package repository and then I get an error.

./util/utilfunc.sh: line 2285: print: command not found

I tried installing the required libraries but it seems they are all there.

Any suggestions?

Cheers
Last edited by EDev on Fri Aug 24, 2018 7:30 pm, edited 1 time in total.
phoenix
Ambassador
Ambassador
Posts: 27272
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: install.sh print not found

Post by phoenix »

You would be the first person to have that problem in the past thirteen years that I've been here. :) What shell are you using? I don't have a problem using the bash shell for my users and ZCS installs fine on my CentOS7 (7.5) servers.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
EDev
Posts: 6
Joined: Fri Aug 24, 2018 9:13 am

Re: install.sh print not found

Post by EDev »

Hi phoenix,

my guess is it's a library version compatibility issue.

Could you check from what library print command is and what version.

Cheers
EDev
Posts: 6
Joined: Fri Aug 24, 2018 9:13 am

Re: install.sh print not found

Post by EDev »

Hi Phoenix,

Thanks for your post.

I'm using RHE7.

Could you help me find print command?

If you could tell me the library where it's from and what version you have installed it might help.

Cheers
EDev
Posts: 6
Joined: Fri Aug 24, 2018 9:13 am

Re: install.sh print not found

Post by EDev »

I do have printf on my /usr/lib/
User avatar
JDunphy
Outstanding Member
Outstanding Member
Posts: 889
Joined: Fri Sep 12, 2014 11:18 pm
Location: Victoria, BC
ZCS/ZD Version: 9.0.0_P39 NETWORK Edition

Re: install.sh print not found

Post by JDunphy »

Observe from the line where you are aborting:

Code: Select all

     if [ $PLATFORM = "RHEL6_64" ]; then
        repo="rhel6"
      elif [ $PLATFORM = "RHEL7_64" ]; then
        repo="rhel7"
      else
        print "Aborting, unknown platform: $PLATFORM"
So that print shouldn't be executed and if it does, it would abort ... Question is why $PLATFORM isn't supported since you believe you are running RHE7 64

What does this return?

Code: Select all

% cat /etc/redhat-release 
CentOS Linux release 7.5.1804 (Core) 
% uname -r
3.10.0-862.9.1.el7.x86_64
In the directory where you have install.sh ... do this.

Code: Select all

% cat .BUILD_PLATFORM 
RHEL7_64
Because of this...

Code: Select all

install.sh:installable_platform=$(cat ${MYDIR}/.BUILD_PLATFORM)
install.sh:if [ x"$PLATFORM" = x"$installable_platform" -a x"${ALLOW_PLATFORM_OVERRIDE}" = "xyes" ]; then
You could use the --platform-override with install.sh but I think you probably want to figure out why you are failing first.
EDev
Posts: 6
Joined: Fri Aug 24, 2018 9:13 am

Re: install.sh print not found

Post by EDev »

that's great. thanks for that JDunphy.

My platform build is RHE7L_64, same as yours, so it should work but during the setup it says platform: UNKNOWN. very strange.

-----

You appear to be installing packages on a platform different
than the platform for which they were built.

This platform is UNKNOWN
Packages found: RHEL7_64
This may or may not work.

Using packages for a platform in which they were not designed for
may result in an installation that is NOT usable. Your support
options may be limited if you choose to continue.
You will also be responsible for configuring the system to point
at an appropriate package repository for third party.

-----

Running installation with forcing platform flag still fails in:

-----

Beginning Installation - see /tmp/install.log.RyhuwOpn for details...

zimbra-core-components is missing. ERROR
zimbra-timezone-data will be installed.
zimbra-common-core-jar will be installed.
zimbra-common-mbox-conf will be installed.
zimbra-common-mbox-conf-attrs will be installed.
........

Unable to find missing packages in repository. System is not modified.

-----

could it be something related to this part?

Code: Select all

installable_platform=$(cat ${MYDIR}/.BUILD_PLATFORM)

if [ x"$PLATFORM" = x"$installable_platform" -a x"${ALLOW_PLATFORM_OVERRIDE}" = "xyes" ]; then
  ALLOW_PLATFORM_OVERRIDE="no"
fi
Last edited by EDev on Fri Aug 24, 2018 5:42 pm, edited 1 time in total.
User avatar
JDunphy
Outstanding Member
Outstanding Member
Posts: 889
Joined: Fri Sep 12, 2014 11:18 pm
Location: Victoria, BC
ZCS/ZD Version: 9.0.0_P39 NETWORK Edition

Re: install.sh print not found

Post by JDunphy »

Code: Select all

util/globals.sh:PLATFORM=`bin/get_plat_tag.sh`
Verify what this returns... also look inside get_plat_tag.sh to see what they are testing with.
EDev
Posts: 6
Joined: Fri Aug 24, 2018 9:13 am

Re: install.sh print not found

Post by EDev »

get_plat_tag.sh was returning unknown and after tracing the script I've found the issue.

The os name in /etc/redhad-release was corrupted. I've amended and now it seems install.sh is working without force flag.

Fingers crossed.
User avatar
JDunphy
Outstanding Member
Outstanding Member
Posts: 889
Joined: Fri Sep 12, 2014 11:18 pm
Location: Victoria, BC
ZCS/ZD Version: 9.0.0_P39 NETWORK Edition

Re: install.sh print not found

Post by JDunphy »

You should be good... They broke this with 8.7 when they introduced the repositories. Previously, you could just force it and install what there but now they need platform so I would consider this override option a bug in the install script going forward. If it works, edit your title and put [Solved] if you could.
Post Reply