简体   繁体   中英

Error with gedit installation in centos

I installed gedit by:

sudo yum install gedit

OUTPUT:

(process:29842): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale.

(gedit:29842): Gtk-WARNING **: cannot open display:

So i installed gtk:

sudo yum install gtk2

But still getting the same error

This can be caused by a couple of things, either you don't have the right locales installed or they're not loaded. You can see what is loaded with

locale -a

You may see some "no such file or directory" errors, fix this with

/usr/sbin/build-locale-archive

If it still fails then try

sudo yum reinstall glibc-common

or

sudo yum install glibc-common

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM