I'm having a hard time getting Emacs to build under CentOS 7.1 where I don't have admin rights to install dependencies. After downloading Emacs sources I tried ./configure, and I found out that I was missing X libraries.
I grabbed the gtk3-dev libraries from an rpm repository and extracted them with:
rpm2cpio ../gtk3-devel-3.8.8-10.el7.x86_64.rpm | cpio -idv
And then I tried both:
GTK_LIBS=-L$HOME/tmp/gtk3/usr/lib64/ ./configure \
--prefix=$HOME/Downloads/emacs-25.1/build-out --with-x-toolkit=gtk3
and
./configure --x-includes=$HOME/tmp/gtk3/usr/include/ \
--x-libraries=$HOME/tmp/gtk3/usr/lib64 --with-x-toolkit=gtk3
but the configure script through other messages telling me that other gtk3 dependencies where missing, or that it couldn't find everything.
I was wondering if anyone knows where to find a statically build Emacs 25 for centOS x86_64, or how to build Emacs without admin rights in such a way that all dependencies are handled and installed locally?
Any help would be greatly appreciated.