Skip to content

Instantly share code, notes, and snippets.

@lovelock
Last active December 28, 2015 12:09
Show Gist options
  • Save lovelock/7498982 to your computer and use it in GitHub Desktop.
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.
#!/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