JazzCore / ctrlp-cmatcher

CtrlP C matching extension
BSD 2-Clause "Simplified" License
207 stars 22 forks source link

working on OSX? #3

Closed skwp closed 11 years ago

skwp commented 11 years ago

It seems to have compiled correctly, but when I type anything into ctrlp it doesn't match. Any ideas?

$ python setup.py install                                                                                                                    [ruby-2.0.0-p0]
running install
running build
running build_ext
building 'fuzzycomt' extension
creating build
creating build/temp.macosx-10.4-x86_64-2.7
/usr/bin/clang -fno-strict-aliasing -Os -w -pipe -march=native -Qunused-arguments -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch x86_64 -I/usr/local/Cellar/python/2.7.3/include/python2.7 -c fuzzycomt.c -o build/temp.macosx-10.4-x86_64-2.7/fuzzycomt.o -std=c99
creating build/lib.macosx-10.4-x86_64-2.7
/usr/bin/clang -bundle -undefined dynamic_lookup -L/usr/local/Cellar/readline/6.2.2/lib -arch x86_64 build/temp.macosx-10.4-x86_64-2.7/fuzzycomt.o -o build/lib.macosx-10.4-x86_64-2.7/fuzzycomt.so
running install_lib
copying build/lib.macosx-10.4-x86_64-2.7/fuzzycomt.so -> /usr/local/Cellar/python/2.7.3/lib/python2.7/site-packages
running install_egg_info
Writing /usr/local/Cellar/python/2.7.3/lib/python2.7/site-packages/fuzzycomt-0.1-py2.7.egg-info

In vimrc:

let g:ctrlp_match_func = {'match' : 'matcher#cmatch' }
JazzCore commented 11 years ago

Can you import from a python session? Try running python and then run import fuzzycomt. Also please try copying a .so file from build/lib.macosx-10.4-x86_64-2.7/ to the ctrlp-cmatcher/autoload dir.

skwp commented 11 years ago

Copying the .so file did it, thanks!

JazzCore commented 11 years ago

Actually it's strange that it does not work after python setup.py install. I've tested on a bunch of linuxes, all fine. Guess this is specific to OS X