Talk:Using vzpkg and vzyum on x86 64
Revision as of 19:53, 19 March 2012 by Kir (talk | contribs) (moved Talk:Install OpenVZ on a x86 64 system Centos-Fedora to Talk:Using vzpkg and vzyum on x86 64)
I am running CentOS 5.5 64-bit and the installation script setx86_64 was throwing an error at line 90:
./setx86_64: line 90: [: too many arguments
It appears that line 89 needed to be changed, at least for me, in order for this to work right. The 'yum -d0 --version' command was throwing a version line along with a bunch of other information that was confusing the test on line 90. The output on my system looked like this:
- yum -d0 --version
3.2.22
Installed: rpm-4.4.2.3-20.el5_5.1.x86_64 at 2011-01-20 22:10 Built : [] at 2010-09-08 15:08 Committed: Jindrich Novy <jnovy@redhat.com> at 2010-08-30 22:00
Installed: yum-3.2.22-26.el5.centos.noarch at 2011-01-20 21:18 Built : [] at 2010-04-04 19:48 Committed: Karanbir Singh <kbsingh@centos.org> at 2010-04-04 22:00
Installed: yum-metadata-parser-1.1.2-3.el5.centos.x86_64 at 2011-01-20 21:17 Built : [] at 2009-08-27 16:19 Committed: James Antill <james.antill@redhat.com> at 2009-04-06 22:00
So I changed line 89 to just look at the first line, as such:
yumversion=`yum -d0 --version | head -n1 | awk 'BEGIN {FS="."}; {print $1$2}'`