Saturday, October 15, 2011

Install Symbol Browser plugin for Gedit on Centos 6

HOW-TO install the Symbol Browser plugin for Gedit 2.28.4 (default for Centos 6)
You might need to install some more dependencies depending of your type of CentOS install.
(./configre will report what you are missing)

Open a terminal
# FIX DEPENDENCIES 
    su - root
    yum install enchant-aspell enchant-develiso-codes-devel    
    exit

# DOWNLOAD AND EXTRACT SOURCES
    cd ~
    wget http://ftp.acc.umu.se/pub/gnome/sources/gedit/2.28/gedit-2.28.4.tar.gz
    tar -xzf gedit-2.28.4.tar.gz
    cd gedit-2.28.4
    cd plugins
    wget http://sourceforge.net/projects/symbol-browser/files/symbol-browser/gedit-symbol-browser-plugin/gedit-symbol-browser-plugin-0.1.tar.gz
    tar -xzf gedit-symbol-browser-plugin-0.1.tar.gz

# EDIT MAKE AND CONFIGURE FILES
    sed -i 's/SUBDIRS =/SUBDIRS = \t\\\n\tsymbolbrowser\t/g' Makefile.am
    sed -i 's/DIST_SUBDIRS =/DIST_SUBDIRS =\t\\\n\tsymbolbrowser\t/g' Makefile.am
    cd ..
    sed -i 's/AC_CONFIG_FILES(\[/AC_CONFIG_FILES(\[\nplugins\/symbolbrowser\/Makefile/g' configure.ac

# BUILD THE PLUGIN
    autoconf
    automake
    ./configure
    cd plugins/symbolbrowser
    make

# COPY TO HOME FOLDER 
    cp symbolbrowser.gedit-plugin .libs/libsymbolbrowser.so ~/.gnome2/gedit/plugins/
    cp -r symbols ~/.gnome2/gedit/
Web Analytics