This repository has been archived by the owner. It is now read-only.

Python 2.7.2: Need libpython2.7.dylib #10541

Closed
davetcoleman opened this Issue Feb 27, 2012 · 4 comments

Comments

Projects
None yet
4 participants
@davetcoleman

davetcoleman commented Feb 27, 2012

I'm trying to install pysvn 1.7.5 from source, without homebrew. The issue is that it is relying on Homebrew's install of Python and make fails on "/usr/local/Cellar/python/2.7.2/libpython2.7.dylib: No such file or directory". I've looked at the Python recipe but have not figure out how to have libpython2.7.dylib installed. I installed the framework version. Any help is much appreciated!

make
Compile pysvn/_pysvn_2_7.so
g++ -bundle  -u _PyMac_Error -framework System /usr/local/Cellar/python/2.7.2/libpython2.7.dylib -framework CoreFoundation -framework Kerberos -framework Security  -o pysvn/_pysvn_2_7.so pysvn.o pysvn_callbacks.o pysvn_client.o pysvn_static_strings.o pysvn_enum_string.o pysvn_client_cmd_add.o pysvn_client_cmd_changelist.o pysvn_client_cmd_checkin.o pysvn_client_cmd_copy.o pysvn_client_cmd_diff.o pysvn_client_cmd_export.o pysvn_client_cmd_info.o pysvn_client_cmd_list.o pysvn_client_cmd_lock.o pysvn_client_cmd_merge.o pysvn_client_cmd_prop.o pysvn_client_cmd_revprop.o pysvn_client_cmd_switch.o pysvn_transaction.o pysvn_revision.o pysvn_docs.o pysvn_path.o pysvn_arg_processing.o pysvn_converters.o pysvn_svnenv.o pysvn_profile.o cxxsupport.o cxx_extensions.o cxxextensions.o IndirectPythonInterface.o -L/usr/lib -L/usr/lib -lsvn_client-1 -lsvn_repos-1 -lsvn_wc-1 -lsvn_fs-1 -lsvn_subr-1 -lsvn_diff-1 -lapr-1
i686-apple-darwin11-llvm-g++-4.2: /usr/local/Cellar/python/2.7.2/libpython2.7.dylib: No such file or directory
make: *** [pysvn/_pysvn_2_7.so] Error 1
@samueljohn

This comment has been minimized.

Contributor

samueljohn commented Feb 28, 2012

@davetcoleman have you installed python like so: brew install python --framework or without the framework?

@jacknagel

This comment has been minimized.

Contributor

jacknagel commented Feb 28, 2012

Quote:

I installed the framework version.

@samueljohn

This comment has been minimized.

Contributor

samueljohn commented Feb 29, 2012

I was blind. Sorry.

python -c "import distutils.sysconfig as c; print(c.PREFIX)" gives you the path. Just append "/lib".
I don't know about the specific Makefile of pysvn, perhaps more has to be done.
Does adding the Python framework to the compiler via the -framework switch work?
I think one can give the full path to the -framework switch.

@adamv

This comment has been minimized.

Contributor

adamv commented May 8, 2012

Closing.

@adamv adamv closed this May 8, 2012

@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.