xclip icon indicating copy to clipboard operation
xclip copied to clipboard

Install on maxOS: missing X11/Xmu

Open temok-cse opened this issue 8 years ago • 7 comments

Dear All, -- I am trying to install xclip on a Mac computer. The configure process fails due to configure: error: *** X11/Xmu/Atoms.h is missing ***

However such header file exists on /opt/X11/include/X11/Xmu and is not empty. I am issuing ./configure --x-includes=/opt/X11/include/X11/ but I have also tried /opt/X11/include/X11, /opt/X11/include and /opt/X11/; all fail.

I am using the X11 provided by XQuartz (https://www.xquartz.org). I would appreciate any suggestions. Thanks, Temok

temok-cse avatar Feb 23 '17 05:02 temok-cse

I'm missing the same question in linux.Do you have any another solutions?

regiondavid avatar Apr 26 '17 11:04 regiondavid

On Linux, X11/Xmu/Atoms.h is typically in a package called libXmu-devel or similar.

astrand avatar Apr 26 '17 12:04 astrand

macOS 10.12.5, xclip 0.12. I've just had the same issue, the following has worked out for me:

  • CFLAGS="-I/opt/X11/include" LDFLAGS="-L/opt/X11/lib" ./configure
  • make install

HonzaOsobne avatar Sep 02 '17 21:09 HonzaOsobne

I am still experiencing this issue on CenOS 7.4 with libXmu-devel being installed in the non-standard location $HOME/usr/. Setting the flags CFLAGS or --x-includes do not solve the issue.

sarlinpe avatar Apr 23 '18 15:04 sarlinpe

Same problem on Msys/mingw64, How about on there, how is the solution ?

abdulbadii avatar May 03 '19 23:05 abdulbadii

I've had the same issue (Linux Mint 19.1 Tessa). But following @astrand 's advice I run sudo apt-get install libxmu-dev and everything worked fine.

alexander-winkler avatar Jan 20 '20 09:01 alexander-winkler

I've appended "-I/path/to/my_custom/include" to the CFLAGS variable in Makefile, then things worked fine for me.

sitadivon avatar Nov 21 '21 07:11 sitadivon