[I ran into this problem last week, and so am posting my experience in case someone else has the same issue]
Crossover 12 is not supported on RHEL/CentOS 5!!. Hopefully you're reading this before attempting an install. Crossover 11.3.0 is the last version of the product that will install and run successfully on RHEL/CentOS 5.
If you've installed Crossover 12 on RHEL 5, you'll see an error message like this:
# rpm -ivh crossover-12.0.0-1.i386.rpm
Preparing... ########################################### [100%]
1:crossover ########################################### [100%]
Traceback (most recent call last):
File "/opt/cxoffice/bin/cxtie", line 81, in ?
import cxutils
File "/opt/cxoffice/lib/python/cxutils.py", line 487
a = a.split('.') if a else ()
^
SyntaxError: invalid syntax
error: %post(crossover-12.0.0-1.i386) scriptlet failed, exit status 1
Note that Crossover actually is installed after this, but it won't work, at all. So, a reasonable person would try to remove Crossover, but that will fail:
# /opt/cxoffice/bin/cxuninstall
Traceback (most recent call last):
File "/opt/cxoffice/bin/cxmessage", line 81, in ?
import cxutils
File "/opt/cxoffice/lib/python/cxutils.py", line 487
a = a.split('.') if a else ()
^
SyntaxError: invalid syntax
cxuninstall:warning: cxmessage died. You may want to try 'cxuninstall --help' for alternatives
Next, I tried using yum to remove it
# yum remove crossover.i386
Yum reports that this succeeds, though I still got the "import cxutils" error. However, yum is lying - Crossover is still installed, as I see from checking my /opt/cxoffice directory.
To finally get it of it, I completely deleted my Crossover directory, manually:
# rm -rf /opt/cxoffice
But even after doing that, an install of Crossover 11 will fail:
# rpm -ivh crossover-11.3.0-1.i386.rpm
file /opt/cxoffice/share/wine/wine.inf from install of crossover-11.3.0-1.i386
conflicts with file from package crossover-12.0.0-1.i386
To get out of this pickle I needed to create the "/opt/cxoffice/bin/cxtie" file that the transaction check is looking for.
# mkdir /opt/cxoffice/
# mkdir /opt/cxoffice/bin/
# touch /opt/cxoffice/bin/cxtie
make that file executable:
# chmod 755 /opt/cxoffice/bin/cxtie
and then run the removal:
# rpm -e crossover.i386
That finally succeeded without error, and I was then able to install Crossover 11.3.0 on my RHEL 5 machine.