install.sh print not found [Solved]
install.sh print not found [Solved]
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
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.
Re: install.sh print not found
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.
Re: install.sh print not found
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
my guess is it's a library version compatibility issue.
Could you check from what library print command is and what version.
Cheers
Re: install.sh print not found
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
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
Re: install.sh print not found
I do have printf on my /usr/lib/
- JDunphy
- 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
Observe from the line where you are aborting:
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?
In the directory where you have install.sh ... do this.
Because of this...
You could use the --platform-override with install.sh but I think you probably want to figure out why you are failing first.
Code: Select all
if [ $PLATFORM = "RHEL6_64" ]; then
repo="rhel6"
elif [ $PLATFORM = "RHEL7_64" ]; then
repo="rhel7"
else
print "Aborting, unknown platform: $PLATFORM"
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
Code: Select all
% cat .BUILD_PLATFORM
RHEL7_64
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
Re: install.sh print not found
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?
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.
- JDunphy
- 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
Code: Select all
util/globals.sh:PLATFORM=`bin/get_plat_tag.sh`
Re: install.sh print not found
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.
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.
- JDunphy
- 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
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.