On Mon, 17 Jan 2005, Robert Nelson wrote:

Hello all,

This is my first time posting, so forgive my ignorance. I've searched high and low but haven't come across the specific answer to my questions.

I don't think we have seen such a misconfigured system before. What is `Linux' here?


configure runs fine,

I doubt it, unless erroneously is `fine'.

then make gives this error:

...
gcc -shared -L/usr/local/lib -o R_X11.so dataentry.lo devX11.lo rotated.lo rbitmap.lo -L/usr/X11R6/lib -lX11 -ljpeg -lpng -lz -lreadline -ldl -lncurses -lm
/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.so when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.a when searching for -lX11
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make[4]: *** [R_X11.so] Error 1
make[4]: Leaving directory `/root/R-2.0.1/src/modules/X11'
...


This is a 64-bit machine, so I'm wondering if the problem stems from make not looking in the /usr/X11R6/lib64 directory, as opposed to /usr/X11R6/lib64.

R works well on several Linux x86_64, e.g. FC3. I get

gcc -shared -L/usr/local/lib -o R_X11.so dataentry.lo devX11.lo rotated.lo rbitmap.lo -lSM -lICE -L/usr/X11R6/lib64 -lX11 -ljpeg -lpng -lz

(on R-devel, where the unnecessary -lncurses -lm are skipped).

Both dirs are in /etc/ld.so.conf. I also tried configure --x-libraries=/usr/X11R6/lib64, but that produced the same error. I believe that I have all the requisite packages installed. Could someone please point me in the right direction? Thanks in advance

Where did /usr/X11R6/lib come from? Probably by configure calling xmkmf, and likely that is broken on your `Linux'. Please take a close look at the configure output. I see in config.log:


configure:34402: checking for X
configure:34640: result: libraries /usr/X11R6/lib64, headers /usr/X11R6/include


Setting --x-libraries should work, but you do need to delete the cache first.


--
Brian D. Ripley,                  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to