How to compile gedit LaTeX plugin?

Solution 1:

  1. Library necessaries to build the configuration files

    sudo apt-get install intltool libtool
    
  2. Dependency necessary to compile this plug-ins

    sudo apt-get install gedit-dev
    
  3. Build the configuration file

    touch config.rpath
    ./autogen.sh
    
  4. Configure and compile

    ./configure --prefix=/usr
    make
    sudo make install
    

If you are using a 64bit distribution, you also need to pass --libdir=/usr/lib64 to ./configure script.

    ./configure --prefix=/usr --libdir=/usr/lib64

With a 64bit distribution, I also had to create two symbolic links, otherwise the plugin would not show up:

sudo ln -s /usr/lib64/gedit/plugins/latex.plugin /usr/lib/gedit/plugins/
sudo ln -s /usr/lib64/gedit/plugins/latex /usr/lib/gedit/plugins/