Skip to content

R 2.1.1 available in DarwinPorts

3 messages · Kjell Konis, Simon Urbanek, Jim McLoughlin

#
The R configure script checks to make sure that the C compiler works  
by compiling the file conftest.c and its not working on your  
computer.   If you want you can give it a try.  Use this compile command

gcc-3.3  -I/opt/local/include -L/opt/local/lib -lcc_dynamic conftest.c

and this C code:

/* confdefs.h.  */

#define PACKAGE_NAME "R"
#define PACKAGE_TARNAME "R"
#define PACKAGE_VERSION "2.1.1"
#define PACKAGE_STRING "R 2.1.1"
#define PACKAGE_BUGREPORT "r-bugs at R-project.org"
#define PACKAGE "R"
#define VERSION "2.1.1"
#define R_PLATFORM "powerpc-apple-darwin8.2.0"
#define R_CPU "powerpc"
#define R_VENDOR "apple"
#define R_OS "darwin8.2.0"
#define Unix 1
/* end confdefs.h.  */
int main ()

{
   ;
   return 0;
}

It says it can't find /usr/lib/libcc_dynamic.a

Kjell
On 7 Sep 2005, at 16:02, Jim McLoughlin wrote:

            
#
On Sep 7, 2005, at 7:38 PM, Kjell Konis wrote:

            
This will be the case if you default gcc is 4.0. You should run
sudo gcc_select 3.3
then it should be there.

I don't mind how you do it (i.e. which compiler you choose), just  
make sure your users don't get confused as of which compiler to use.  
Any reasonable packaging system should make sure the proper compiler  
is there before installing. The flags differ from compiler to  
compiler, so you cannot build binary R unless you make up your mind  
as of exactly which compiler binary you require. Using any other  
binary simply doesn't work.

Cheers,
Simon