系统:Mac OSX 最新
我使用端口安装了 xapian-core -
> Aarons-MacBook-Air:plugin aaron$ sudo port install xapian-core
> ---> Computing dependencies for xapian-core
> ---> Fetching archive for xapian-core
> ---> Attempting to fetch xapian-core-1.2.8_1.darwin_13.x86_64.tbz2 from http://packages.macports.org/xapian-core
> ---> Attempting to fetch xapian-core-1.2.8_1.darwin_13.x86_64.tbz2 from
> http://mse.uk.packages.macports.org/sites/packages.macports.org/xapian-core
> ---> Attempting to fetch xapian-core-1.2.8_1.darwin_13.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/xapian-core
> ---> Fetching distfiles for xapian-core
> ---> Attempting to fetch xapian-core-1.2.8.tar.gz from http://distfiles.macports.org/xapian-core
> ---> Verifying checksums for xapian-core
> ---> Extracting xapian-core
> ---> Configuring xapian-core
> ---> Building xapian-core
> ---> Staging xapian-core into destroot
> ---> Installing xapian-core @1.2.8_1
> ---> Activating xapian-core @1.2.8_1
> ---> Cleaning xapian-core
> ---> Updating database of binaries: 100.0%
> ---> Scanning binaries for linking errors: 100.0%
> ---> No broken files found.
然后我打开 vim 并尝试使用 :Nvim 打开 nvim。我收到了一些错误-
> Error detected while processing function NVIM_init...10_DefPython:
> Traceback (most recent call last): File
> "/Users/Aaron/.vim/plugin/python/nvim.py", line 3 import xapian
> ImportError: No module named xapian
有人可以让我知道我需要做什么才能让 Nvim 认识到我已经安装了 xapian。我猜我需要将 nvim.py 中的 import xapian 指向一个“硬编码”地址。就像是
import /usr/libs/xapian
有人可以让我知道我是否走在正确的轨道上,或者是否有更简单的方法让系统了解 xapian 现在对于 vim 的位置?