MacOSX compile problems
Matt Mackall
mpm at selenic.com
Sat Jan 17 12:29:09 CST 2009
On Sat, 2009-01-17 at 19:07 +0100, Bastian Doetsch wrote:
> The same: "version unknown". I guess the import error is the reason,
> but I don't understand why it happens.
>
> $ sudo make install-bin
> python setup.py build
> Traceback (most recent call last):
> File "/usr/local/bin/hg", line 11, in <module>
> from mercurial import demandimport; demandimport.enable()
> ImportError: No module named mercurial
This is running your already not-quite-correctly-installed hg, which
isn't finding its libraries. You need to either set PYTHONPATH to
include /usr/local/python<mumble> (OSX default Python install has dumb
defaults) or override PREFIX in the Makefile:
make PREFIX=/usr/
Because the make process calls hg for version info, you may need to run
it twice to get the version info to stick.
--
http://selenic.com : development and support for Mercurial and Linux
More information about the Mercurial-devel
mailing list