English 中文(简体)
在Mac OS X 10.5.8上安装rpy2-2.1.5失败
原标题:Installing rpy2 -2.1.5 on Mac OS X 10.5.8 fails

I ve searched far and wide, read a previous question in stackoverflow but cant seem to solve the problem of installing rpy2 on my Mac with OS X 10.5.8. I have Xcode 3.1.4 installed and R 2.1.11. when I run:

sudo python setup.py build install

我明白了:

running build
running build_py
running build_ext
building  rpy2.rinterface.rinterface  extension
gcc-4.0 -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch ppc -arch x86_64 -g -O2 -DNDEBUG -g -O3 -DR_INTERFACE_PTRS=1        -DHAVE_POSIX_SIGJMP=1 -DCSTACK_DEFNS=1 -DRIF_HAS_RSIGHAND=1 -Irpy/rinterface -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/i386 -c rpy/rinterface/rinterface.c -o build/temp.macosx-10.5-fat3-2.7/rpy/rinterface/rinterface.o -F/Library/Frameworks/R.framework/.. -framework R -L/Library/Frameworks/R.framework/Resources/lib/i386 -lRlapack -L/Library/Frameworks/R.framework/Resources/lib/i386 -lRblas
i686-apple-darwin9-gcc-4.0.1: -lRlapack: linker input file unused because linking not done
i686-apple-darwin9-gcc-4.0.1: -lRblas: linker input file unused because linking not done
i686-apple-darwin9-gcc-4.0.1: -lRlapack: linker input file unused because linking not done
i686-apple-darwin9-gcc-4.0.1: -lRblas: linker input file unused because linking not done
powerpc-apple-darwin9-gcc-4.0.1: -lRlapack: linker input file unused because linking not done
powerpc-apple-darwin9-gcc-4.0.1: -lRblas: linker input file unused because linking not done
gcc-4.0 -arch i386 -arch ppc -arch x86_64 -isysroot / -g -bundle -undefined dynamic_lookup build/temp.macosx-10.5-fat3-2.7/rpy/rinterface/rinterface.o -L-F/Library/Frameworks/R.framework/.. -L-framework -LR -L/Library/Frameworks/R.framework/Resources/modules -L-F/Library/Frameworks/R.framework/.. -L-framework -LR  L/Library/Frameworks/R.framework/Resources/modules -lR -o build/lib.macosx-10.5-fat3-2.7/rpy2/rinterface/rinterface.so
ld: library not found for -lR
ld: library not found for -lR
collect2: ld returned 1 exit status
ldcollect2: : library ld returned 1 exit status
not found for -lR
collect2: ld returned 1 exit status
lipo: can t open input file: /var/tmp//ccFngK8H.out (No such file or directory)
error: command  gcc-4.0  failed with exit status 1

任何帮助都将不胜感激。

问题回答

Can you try a snapshot from the mercurial repository ? (either branch version_2.1.x - future version 2.1.6 -, or version_2.2.x - future version 2.2.0)

构建过程已经被简化,应该可以适应更好的OSX。





相关问题
Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

An enterprise scheduler for python (like quartz)

I am looking for an enterprise tasks scheduler for python, like quartz is for Java. Requirements: Persistent: if the process restarts or the machine restarts, then all the jobs must stay there and ...

How to remove unique, then duplicate dictionaries in a list?

Given the following list that contains some duplicate and some unique dictionaries, what is the best method to remove unique dictionaries first, then reduce the duplicate dictionaries to single ...

What is suggested seed value to use with random.seed()?

Simple enough question: I m using python random module to generate random integers. I want to know what is the suggested value to use with the random.seed() function? Currently I am letting this ...

How can I make the PyDev editor selectively ignore errors?

I m using PyDev under Eclipse to write some Jython code. I ve got numerous instances where I need to do something like this: import com.work.project.component.client.Interface.ISubInterface as ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

Converting Dictionary to List? [duplicate]

I m trying to convert a Python dictionary into a Python list, in order to perform some calculations. #My dictionary dict = {} dict[ Capital ]="London" dict[ Food ]="Fish&Chips" dict[ 2012 ]="...

热门标签