Last active
December 28, 2015 12:09
-
-
Save lovelock/7498982 to your computer and use it in GitHub Desktop.
Python 2.6.6 is installed in CentOS/RHEL/Scientific 6.4, while a lot of applications depend on python2.7 or later. After python2.7 is installed, ibus throws an error. This script can sort of solve the problem.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Please run this script as root | |
# This script is to solve the ibus errors after python2.7 or later has been installed. | |
for FILE in /usr/libexec/ibus-engine-table /usr/libexec/ibus-ui-gtk /usr/bin/ibus-setup /usr/bin/table-createdb | |
do | |
sed -i 's/python/python2.6/g' $FILE | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment