Skip to content

Compile R-1.7.0 on Mac OS 10.2.6

4 messages · David Orme, Ulises M. Alvarez, Mark E. Perkins

#
Hi,

I can't get R-1.7.0 to compile on my Mac. Can someone give me some 
pointers?

The machine is an 800MHz iBook running OS 10.2.6. I have installed the 
December 2002 Developers Tools and have installed g77, f2c and dlcompat 
via fink. I've checked the versions of g77 and gcc and they're both 
based on gcc version 3.1. I've got Apple's X11 (Beta 3). I've added 
/sw/bin to my path. I've read through R-admin.pdf, particularly the 
appendix on OS X.

The problem seems to be something to do with the fortran compiler. The 
final lines of the configure output are:
Checking config.log, both the warning and error are associated with the 
following message:
Can anyone help?

Many thanks,
David
---------------------------------------
Dr. David Orme

Department of Biological Sciences
Imperial College London
Silwood Park Campus
Ascot, Berkshire SL5 7PY UK.

Tel: +44 (0)20 759 42358
Fax: +44 (0)20 759 42339
e-mail: d.orme at imperial.ac.uk
4 days later
#
Hi!

Your log file clearly indicates that  /sw/lib/libiconv.2.dylib is missing. 
You may want to verify with 'ls /sw/lib/libiconv.2.dylib'

If your library is missing I'll recommend to reinstall  again g77 and gcc. 
You may want to use the binaries instead of the sources to save some time. 
I'll also recommend to install finkcommander 
(finkcommander.sourceforge.net) 

Regards.
On Thu, 15 May 2003, David Orme wrote:

            

  
    
#
Hi,

Thanks for the suggestion but that isn't it. The library is there...
... but something about the library version is wrong. My version of g77 
was freshly (last week) installed from source using finkcommander; I'm 
using the December 2002 Apple Developer Tools version of gcc.

David
On Monday, May 19, 2003, at 08:19 pm, Ulises Mora Alvarez wrote:

            
#
--On Tuesday, May 20, 2003 09:59 +0100 David Orme <d.orme at imperial.ac.uk>
wrote:
I don't *think* libiconv is installed with g77. It looks to me as if it's
installed with the fink distribution and base files.On my system,
libiconv.2.dylib is a symlink to /sw/lib/libiconv.2.0.4.dylib
Try this:
        cd /sw/lib && ls -lF libiconv*

Here's what I get:

-> cd /sw/lib && ls -lF libiconv*
-rw-r--r--  1 root  admin  897284 May 19 08:58 libiconv.2.0.4.dylib
lrwxr-xr-x  1 root  admin      20 May 19 09:07 libiconv.2.dylib@ ->
libiconv.2.0.4.dylib
lrwxr-xr-x  1 root  admin      20 May 19 09:07 libiconv.dylib@ ->
libiconv.2.0.4.dylib
-rw-r--r--  1 root  admin     710 May 19 08:58 libiconv.la

Note that these have date and time from yesterday morning, which is the
last time I updated fink. You might try updating fink (I don't use fink
commander, but run 'fink selfupdate-cvs' directly). If *that* doesn't fix
the problem, you might try 'fink update libiconv'.

If updating libiconv still doesn't help, you might try

        fink install r-base

I built R-1.7.0 just last week with no problems. I first installed R via
fink, but uninstalled and went to the CRAN distribution because I wanted
docs in info and other formats (fink r-base only installs the html
versions). I also tend to update fink before I install any new package.

HTH,
--
Mark Perkins
perkinsm at bway.net