MacOSX compile problems
Bastian Doetsch
bastian.doetsch at gmx.de
Sat Jan 17 12:35:12 CST 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am 17.01.2009 um 19:29 schrieb Matt Mackall:
> 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.
It doesn't work either - I've done multiple builds and can use
Mercurial. But it never seems to be able to determine the version.
And, as posted previously, my python path is set to:
PYTHONPATH=/usr/local/lib/python2.6/site-packages:/usr/local/lib/
python2.5/site-packages
Should I really add /usr/local/python2.6/... or was the missing "lib"
an omission?
Bastian
>
>
> --
> http://selenic.com : development and support for Mercurial and Linux
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
iEYEARECAAYFAklyJOAACgkQBqJW4lDO0YKNWACcCR6nuXwf9q0SzBSrUyqNJOcz
0ywAnjGMXPHSyKyApge+V6p1wQbxRJRP
=SNKA
-----END PGP SIGNATURE-----
More information about the Mercurial-devel
mailing list