f.middleton at apogeect.com
2008-Apr-07 00:15 UTC
[Rd] R-2.6.2 Solaris 11 build, install, and check failures (PR#11093)
Actually, things weren't great using Solaris 9, but building and installing under Solaris 11 required some workarounds - the installation process seems to fail completely under Solaris 11. A plain "./configure" fails in pretty much the same way. Note: "make" is aliased to "gmake -j 4" to use all 4 cpus in this hardware. bash-3.2# uname -a SunOS apogee5 5.11 snv_85 sun4u sparc SUNW,Ultra-80 bash-3.2> ./configure --disable-fast-install --enable-threads=solaris --disable-rpath ...... bash-3.2> make ...... begin installing recommended package foreign * Installing *source* package 'foreign' ... checking for gcc... gmake[3]: Entering directory `/tmp/R.INSTALL.BfaONZ/foreign' gcc -std=gnu99 gmake[3]: Leaving directory `/tmp/R.INSTALL.BfaONZ/foreign' checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. ERROR: configuration failed for package 'foreign' ** Removing '/usr/local/src/R-2.6.2/library/foreign' gmake[2]: *** [foreign.ts] Error 1 gmake[2]: *** Waiting for unfinished jobs.... ..... ** building package indices ... * DONE (spatial) gmake[2]: Leaving directory `/usr/local/src/R-2.6.2/src/library/Recommended' gmake[1]: *** [recommended-packages] Error 2 gmake[1]: Leaving directory `/usr/local/src/R-2.6.2/src/library/Recommended' gmake: *** [stamp-recommended] Error 2 ..... bash-3.2> make clean ..... ./configure --disable-fast-install --enable-threads=solaris --disable-rpath --without-recommended-packages ..... configure: WARNING: you cannot build DVI versions of the R manuals, configure: WARNING: you cannot build PDF versions of the R manuals ..... bash-3.2> make ...... [no errors] ..... bash-3.2# make install ...... mkdir /usr/local/lib/R gmake[1]: Entering directory `/usr/local/src/R-2.6.2/m4' gmake[1]: Nothing to be done for `install'. gmake[1]: Leaving directory `/usr/local/src/R-2.6.2/m4' gmake[1]: Entering directory `/usr/local/src/R-2.6.2/tools' gmake[1]: Nothing to be done for `install'. gmake[1]: Leaving directory `/usr/local/src/R-2.6.2/tools' gmake[1]: Entering directory `/usr/local/src/R-2.6.2/doc' installing doc ... /bin/ginstall: cannot change permissions of `/usr/local/lib/R/doc': No such file or directory mkdir /usr/local/lib/R/doc mkdir: Failed to make directory "/usr/local/lib/R/doc"; File exists gmake[1]: *** [installdirs] Error 2 gmake[1]: *** Waiting for unfinished jobs.... /bin/ginstall -c -m 644 ../NEWS "/usr/local/lib/R/doc" gmake[1]: Leaving directory `/usr/local/src/R-2.6.2/doc' gmake: *** [install] Error 1 .... bash-3.2> ls -lrt /usr/local/bin/R /usr/local/bin/R: No such file or directory bash-3.2# cd /usr/local/bin bash-3.2# ln -s ../src/R-2.6.2/bin/R Works! See http://www.apogeect.com/html/pca/ One little glitch, if you try to postcript() or "png()" with an output filename containing a "%", it segfaults. bash-3.2# make check ..... comparing 'reg-S4.Rout' to './reg-S4.Rout.save' ... OK OK comparing 'reg-tests-2.Rout' to './reg-tests-2.Rout.save' ... OK gmake[3]: *** [reg-tests-1.Rout] Error 1 gmake[3]: Leaving directory `/usr/local/src/R-2.6.2/tests' gmake[2]: *** [test-Reg] Error 2 gmake[2]: Leaving directory `/usr/local/src/R-2.6.2/tests' gmake[1]: *** [test-all-basics] Error 1 gmake[1]: Leaving directory `/usr/local/src/R-2.6.2/tests' gmake: *** [check] Error 2 It would be nice to save some of the 160M bytes that the R distribution takes. Would a functioning install eliminate the need to keep the entire source? Thanks for a cool language! Let me know if I can help with debugging or testing... Regards -- Frank Middleton