linux install gnome-dekstop error keyword “msgctxt”
I use Linux Centos 5.3 at my computer. I try to install gnome-dekstop-2.30.0.tar.bz2 at my system. To install this source, I use steps:
- Ekstract source, I use command: tar jxvf gnome-desktop-2.30.0.tar.bz2
- cd gnome-desktop-2.30.0
- configure source, I use command : ./configure –prefix=/opt/gnome/
- make
I get error message when executed make command.
bn.po:174: keyword "msgctxt" unknown bn.po:174:8: parse error /usr/bin/msgfmt: found 2 fatal errors make[2]: *** [bn.gmo] Error 1
This error happen because Centos 5.3 have gettext version is too old. If we want check gettext version in linux, we can use command :
msgfmt –version
and we get output from this command :
msgfmt (GNU gettext-tools) 0.14.6
To solve this problem, I will install gettext-0.17.0. To install this source, I use steps:
- Download gettext-0.17.0.tar.gz
- Ekstract source, tar zxvf gettext-0.17.0.tar.gz
- cd gettext-0.17.0
- ./configure –prefix=/opt/gnome/
- make
- make install
- copy gettext original (as backup). I use command : mv /usr/bin/msgfmt /usr/bin/msgfmtold
- copy gettext new compiled. I use command : cp /opt/gnome/bin/msgfmt /usr/bin/
- check new version of gettext. Use command : msgfmt –version
We must add library path from gettext to my system, so linux can detect new library from source compiled. Edit your ~/.bashrc and add following text at bottom from this file:
export GNOME_INST=/opt/gnome export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GNOME_INST/lib export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$GNOME_INST/lib/pkgconfig export PATH=$PATH:$GNOME_INST/bin
After this step, you must restart or logoff your system and repeat to install gnome-desktop.
In awe of that aenwsr! Really cool!