Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to compile emacs-23.4 on a Linux box with no root privileges, and I got stuck at this point:

../emacs-23.4/configure      --with-gif=no --with-tiff=no
make -j32
/usr/bin/ld: skipping incompatible /usr/lib/ when searching for -lXaw
/usr/bin/ld: cannot find -lXaw
make[1]: *** [temacs] Error 1
make[1]: Leaving directory `/home/username/src/emacs/latest/src'
make: *** [src] Error 2

I also tried with gtk, but also got stuck with it:

checking for gtk+-2.0 >= 2.6 glib-2.0 >= 2.6... no

../emacs-23.4/configure --with-x-toolkit=gtk --with-gif=no --with-tiff=no
configure: error: Package xau was not found in the pkg-config search path.
Perhaps you should add the directory containing `xau.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xau', required by 'XCB', not found

Any ideas?

share|improve this question

Try building it with gtk support in stead of with the Athena toolkit.

./configure --with-x-toolkit=gtk --with-gif=no --with-tiff=no
make -j8


PS: Do you actually have 16+ cores available on your build box?


If that doesn't work either, you could try to disable the X functionality altogether with

./configure --without-x --without-ns --with-gif=no --with-tiff=no


Or, even better, do

./configure --help

and disable everything you don't really want and know you have the deps for in the "Optional Packages: " section.

share|improve this answer
edited now, it seems there is also a problem trying to do it with gtk. – 719016 Feb 24 '12 at 13:41
I can do it without, but still looking forward to a way of having it with gtk or similar. – 719016 Feb 25 '12 at 10:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.