[R-SIG-Mac] problematic MACOSX_DEPLOYMENT_TARGET

stephen sefick ssefick at gmail.com
Wed Oct 22 23:33:50 CEST 2008


I am sure that this doesn't help, but I just compiled 2.8.0 from
source on a ibook g4 os x 10.3.9

./configure -without--aqua
make
sudo make install

I sucessfully installed gee with

install.packages("gee", dependencies=TRUE)

Stephen

On Wed, Oct 22, 2008 at 4:23 PM, Simon Urbanek
<simon.urbanek at r-project.org> wrote:
> Christoph,
>
> please make sure you have:
> - Xcode 2.4 or higher installed (2.5 recommended)
> - you are using Apple's compilers
> - MACOSX_DEPLOYMENT_TARGET is not explicitly set (e.g. try
> Sys.getenv("MACOSX_DEPLOYMENT_TARGET"))
>
> If all the above is true, please send me the output in Terminal:
> which gcc
> gcc --version
>
> then try
> Sys.setenv("MACOSX_DEPLOYMENT_TARGET"="10.4")
> before installing a package from source.
>
> Thanks,
> Simon
>
>
> On Oct 22, 2008, at 5:33 , Christoph Heibl wrote:
>
>> Dear list,
>>
>> after having installed R-2.8.0 on Mac OS 10.4.11, I get an error message
>> when I try to install the source of a package (please see below). I was
>> trying to find a solution on the web, but my understanding of the
>> architecture of Mac OS is to weak to make something out of the hints I
>> found. Can someone point me towards an easy-understandable solution to the
>> problem? What do I have to change exactly and how can I do it?
>>
>> Thank you in advance!
>> Christoph Heibl
>>
>> # The problem ...
>> # trying to install 'gee'
>>
>> > install.packages("gee", type = "source")
>> trying URL 'http://cran.miroir-francais.fr/src/contrib/gee_4.13-13.tar.gz'
>> Content type 'application/x-gzip' length 50101 bytes (48 Kb)
>> opened URL
>> ==================================================
>> downloaded 48 Kb
>>
>> WARNING: ignoring environment value of R_HOME
>> * Installing *source* package 'gee' ...
>> ** libs
>> ** arch - i386
>> gfortran -arch i386   -fPIC  -g -O2 -c dgedi.f -o dgedi.o
>> gfortran -arch i386   -fPIC  -g -O2 -c dgefa.f -o dgefa.o
>> gcc -arch i386 -std=gnu99
>> -I/Library/Frameworks/R.framework/Resources/include
>> -I/Library/Frameworks/R.framework/Resources/include/i386
>>  -I/usr/local/include    -fPIC  -g -O2 -c ugee.c -o ugee.o
>> gcc -arch i386 -std=gnu99 -dynamiclib -Wl,-headerpad_max_install_names
>>  -undefined dynamic_lookup -single_module -multiply_defined suppress
>> -L/usr/local/lib -o gee.so dgedi.o dgefa.o ugee.o
>> -L/Library/Frameworks/R.framework/Resources/lib/i386 -lRblas -lgfortran
>> -lgfortran -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework
>> -Wl,CoreFoundation
>> ** arch - ppc
>> gfortran -arch ppc   -fPIC  -g -O2 -c dgedi.f -o dgedi.o
>> gfortran -arch ppc   -fPIC  -g -O2 -c dgefa.f -o dgefa.o
>> gcc -arch ppc -std=gnu99
>> -I/Library/Frameworks/R.framework/Resources/include
>> -I/Library/Frameworks/R.framework/Resources/include/ppc
>>  -I/usr/local/include    -fPIC  -g -O2 -c ugee.c -o ugee.o
>> gcc -arch ppc -std=gnu99 -dynamiclib -Wl,-headerpad_max_install_names
>>  -undefined dynamic_lookup -single_module -multiply_defined suppress
>> -L/usr/local/lib -o gee.so dgedi.o dgefa.o ugee.o
>> -L/Library/Frameworks/R.framework/Resources/lib/ppc -lRblas -lgfortran
>> -lSystemStubs -lgfortran -lSystemStubs -F/Library/Frameworks/R.framework/..
>> -framework R -Wl,-framework -Wl,CoreFoundation
>> ld: flag: -undefined dynamic_lookup can't be used with
>> MACOSX_DEPLOYMENT_TARGET environment variable set to: 10.1
>> /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: internal link edit
>> command failed
>> make: *** [gee.so] Error 1
>> chmod:
>> /Library/Frameworks/R.framework/Versions/2.8/Resources/library/gee/libs/ppc/*:
>> No such file or directory
>> ERROR: compilation failed for package 'gee'
>> ** Removing
>> '/Library/Frameworks/R.framework/Versions/2.8/Resources/library/gee'
>>
>> The downloaded packages are in
>>        /private/tmp/RtmpH8ykpZ/downloaded_packages
>> Updating HTML index of packages in '.Library'
>> Warning message:
>> In install.packages("gee", type = "source") :
>>  installation of package 'gee' had non-zero exit status
>>
>>
>> ________________________________________________________
>>
>> Christoph Heibl
>>
>> Systematic Botany
>> Ludwig-Maximilians-Universität München
>> Menzinger Str. 67
>> D-80638 München
>> GERMANY
>>
>> phone:     +49-(0)89-17861-251
>> e-mail:    heibl at lmu.de
>>
>> http://www.christophheibl.de/ch-home.html
>>
>> SAVE PAPER - THINK BEFORE YOU PRINT
>>
>> _______________________________________________
>> R-SIG-Mac mailing list
>> R-SIG-Mac at stat.math.ethz.ch
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>>
>>
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>



-- 
Stephen Sefick
Research Scientist
Southeastern Natural Sciences Academy

Let's not spend our time and resources thinking about things that are
so little or so large that all they really do for us is puff us up and
make us feel like gods.  We are mammals, and have not exhausted the
annoying little problems of being mammals.

								-K. Mullis


More information about the R-SIG-Mac mailing list