owner-r-help@stat.math.ethz.ch
1998-Sep-30 15:09 UTC
R-beta: compiling R-0.62.3 on SuSe Linux
On my RedHat 5.1 machine at the office I am happily using R installed from Martyn Plummer's RPM's of R-62.3 for RH 5.1 At home I have SuSe Linux 5.3 on my PC and as RH 5.1 is libc6 based and SuSe 5.3 is still libc5 based the RH 5.1 RPM's do not install and work on SuSe (even though they have a test version of glibc). So I downloaded R-0.62.3.tgz from www.ci.tuwien.ac.at/R and tried to compile it on SuSe. This gives a lot of errors that I don't understand because I don't program in C/C++ and only vaguely comprehend the workings of 'configure' and 'make'. I used the available 'gcc-2.7.2.1-6' and 'g77-0.5.19.1-1'. SuSe has 'libc-5.4.46-1'. I uncompressed/untarred the 'tgz' to /usr/local/ and then ran ./configure in the resulting directory /R-0.62.3 This seemed to complete OK but consulting the config.log file showed things like:>>configure:1888: gcc -o conftest -g -O2 conftest.c -ldxml >> -ldl -lncurses -lm 1>&5 >>/usr/i486-linux/bin/ld: cannot open -ldxml: No such file or directory >>configure: failed program was: >>#line 1881 "configure" >>#include "confdefs.h"I still tried to run 'make' and this resulted in failure messages of which I include the following:>>make[3]: Leaving directory `/usr/local/R-0.62.3/src/appl' >>cd unix; make >>make[3]: Entering directory `/usr/local/R-0.62.3/src/unix' >>gcc -g -O2 -I../../src/include -c dataentry.c >>In file included from dataentry.c:24: >>dataentry.h:22: X11/X.h: No such file or directory >>dataentry.h:23: X11/Xlib.h: No such file or directory >>dataentry.h:24: X11/Xutil.h: No such file or directory >>dataentry.h:25: X11/keysym.h: No such file or directory >>dataentry.h:26: X11/cursorfont.h: No such file or directory >>make[3]: *** [dataentry.o] Error 1 >>make[3]: Leaving directory `/usr/local/R-0.62.3/src/unix' >>make[2]: *** [build] Error 2 >>make[2]: Leaving directory `/usr/local/R-0.62.3/src' >>make[1]: *** [R] Error 2 >>make[1]: Leaving directory `/usr/local/R-0.62.3' >>make: *** [all] Error 2Can somebody give me some idea of what is going wrong and what to do to correct it. I can't find the files "X.h, Xlib.h, Xutil.h, keysym.h, cursorfont.h" either in RH 5.1 or SuSe 5.3. R-0.62.3.tgz only contains R-base. So if I get it working where can I find the sources for the contributions and VR. I can't find them on tuwien. ------------------------------------- Alexander Volovics Dept of Methodology & Statistics Maastricht University, Maastricht, NL ------------------------------------- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Sorry to reply to the entire list - the message didn't contain an e-mail address for Alexander Volovics.>>>>> "AA" == "Alexander Volovics" writes:AV> Can somebody give me some idea of what is going wrong and what AV> to do to correct it. I can't find the files "X.h, Xlib.h, AV> Xutil.h, keysym.h, cursorfont.h" either in RH 5.1 or SuSe 5.3. These files are include files for the X11 window system. They are usually found in /usr/include/X11/ or /usr/X11R6/include. Try the locate command, as in bash-2.01$ locate Xlib.h /usr/lib/perl5/i386-linux/5.004/Tk/pTk/Xlib.h /usr/X11R6/include/X11/PEX5/PEXlib.h /usr/X11R6/include/X11/Xlib.h to determine where they are. The ./configure script should be able to determine the location of these automatically. Since it didn't this may mean that your C compiler needs to be tweaked. There are two options to ./configure --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR that you can use to set /usr/X11R6/include and /usr/X11R6/lib on the include path and the libraries path respectively. It is unusual to need to use them. AV> R-0.62.3.tgz only contains R-base. So if I get it working where AV> can I find the sources for the contributions and VR. I can't AV> find them on tuwien. They are available on the Comprehensive R Archive Network (CRAN) sites in the src/contrib section. The primary CRAN site is http://www.ci.tuwien.ac.at/R/ -- Douglas Bates bates at stat.wisc.edu Statistics Department 608/262-2598 University of Wisconsin - Madison http://www.stat.wisc.edu/~bates/ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Wed, 30 Sep 1998 owner-r-help at stat.math.ethz.ch wrote:> On my RedHat 5.1 machine at the office I am happily using R > installed from Martyn Plummer's RPM's of R-62.3 for RH 5.1 > > At home I have SuSe Linux 5.3 on my PC and as RH 5.1 is libc6 > based and SuSe 5.3 is still libc5 based the RH 5.1 RPM's do > not install and work on SuSe (even though they have a test > version of glibc). > ...I'm using R (0.62.3) with SuSE 5.3 without problems. You can find my R- (and other stuff) RPMs prepared for SuSE 5.3 on my Web server: http://www-stat.uni-klu.ac.at/RPMS/uni-klu-suse/RByName.html This RPM repository is generated with rpm2html, so it should help you finding required packages (my R version needs libblas, this needs libF77 ... and so on)> I uncompressed/untarred the 'tgz' to /usr/local/ and then > ran ./configure in the resulting directory /R-0.62.3 > This seemed to complete OK but consulting the config.log > file showed things like: > > >>configure:1888: gcc -o conftest -g -O2 conftest.c -ldxml > >> -ldl -lncurses -lm 1>&5 > >>/usr/i486-linux/bin/ld: cannot open -ldxml: No such file or directory > >>configure: failed program was: > >>#line 1881 "configure" > >>#include "confdefs.h"This is ok because libdxml does only exist on Digital Alpha machines. The above message just illustrates the way "configure" works to determine if a specific library exists: it tries to run a "cc -ldxml" and then parses the error messages.> I still tried to run 'make' and this resulted in failure messages > of which I include the following: > > >>make[3]: Leaving directory `/usr/local/R-0.62.3/src/appl' > >>cd unix; make > >>make[3]: Entering directory `/usr/local/R-0.62.3/src/unix' > >>gcc -g -O2 -I../../src/include -c dataentry.c > >>In file included from dataentry.c:24: > >>dataentry.h:22: X11/X.h: No such file or directory > .....The include path -I/usr/X11R6/include was missing in your commandline. But more likely you have not installed the "xdevel"-RPM from your SuSE CDs -- it contains these header files. Albrecht ...................................................................... | Albrecht Gebhardt Tel.: (++43 463) 2700/837 | | Institut fuer Mathematik Fax : (++43 463) 2700/834 | | Universitaet Klagenfurt mailto:albrecht.gebhardt at uni-klu.ac.at | | Villacher Str. 161 http://www-stat.uni-klu.ac.at/~agebhard | | A-9020 Klagenfurt, Austria | `--------------------------------------------------------------------' -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>> ... problems with R and SuSE ...I should have mentioned that I am using a different approach to build my RPM packages of R (available at http://www-stat.uni-klu.ac.at/RPMS): + I put every additional library in an extra package. + All packages are split into a "binary" and "source tree" part (R-somelibrary.i386.rpm and R-somelibrary-devel.i386.rpm) So if someone does not need the sources, he can omit the "devel"-packages. I do so because this makes it easier for me to maintain the campus-wide R installation and to stay up to date. A minimal R installation with sources needs the packages "R-0.62.3" and "R-devel-0.62.3" and additionally "blas-dynamic", "f2c-shared" and "readline-shared". Albrecht PS: We have also an RPM repository for Digital Unix freeware: ftp://ftp.uni-klu.ac.at/pub/uni-klu.ac.at/rpms/osf1/alpha/RPMS/ It contains the same R-RPMs for DEC Alpha machines. But of course you will need to install many other packages first to get rpm up and running on DEC Unix (4.0D). ...................................................................... | Albrecht Gebhardt Tel.: (++43 463) 2700/837 | | Institut fuer Mathematik Fax : (++43 463) 2700/834 | | Universitaet Klagenfurt mailto:albrecht.gebhardt at uni-klu.ac.at | | Villacher Str. 161 http://www-stat.uni-klu.ac.at/~agebhard | | A-9020 Klagenfurt, Austria | `--------------------------------------------------------------------' -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
owner-r-help at stat.math.ethz.ch writes:> > >>configure:1888: gcc -o conftest -g -O2 conftest.c -ldxml > >> -ldl -lncurses -lm 1>&5 > >>/usr/i486-linux/bin/ld: cannot open -ldxml: No such file or directory > >>configure: failed program was: > >>#line 1881 "configure" > >>#include "confdefs.h"This kind of thing is normal. Just configure's way of finding out that you don't have that lib.> > I still tried to run 'make' and this resulted in failure messages > of which I include the following: > > >>make[3]: Leaving directory `/usr/local/R-0.62.3/src/appl' > >>cd unix; make > >>make[3]: Entering directory `/usr/local/R-0.62.3/src/unix' > >>gcc -g -O2 -I../../src/include -c dataentry.c > >>In file included from dataentry.c:24: > >>dataentry.h:22: X11/X.h: No such file or directory > >>dataentry.h:23: X11/Xlib.h: No such file or directory > >>dataentry.h:24: X11/Xutil.h: No such file or directory > >>dataentry.h:25: X11/keysym.h: No such file or directory > >>dataentry.h:26: X11/cursorfont.h: No such file or directoryThis, however, indicates that you're not set for compiling any X11 program, including R. I don't know SuSe very well, but I'd suspect that you're missing an "X11-devel" package or something like that. (R doesn't have the proper #ifdef's in to compile without X11, although it probably should get them at some point.) -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._