[GRASS-dev] getting vdigit to compile correctly on the Mac

Michael Barton michael.barton at asu.edu
Sat Sep 13 14:38:38 EDT 2008


Answer #2
On Sep 13, 2008, at 10:20 AM, William Kyngesburye wrote:

> On Sep 13, 2008, at 10:54 AM, Michael Barton wrote:
>
>> Here is a link to discussion that may help explain why vdigit is  
>> not compiling correctly on a Mac--especially with OX X 10.5  
>> (Leopard) that comes with Python 2.5--and a couple of solutions to  
>> fixing it.
>>
>> http://mail.python.org/pipermail/pythonmac-sig/2008-January/019628.html
>>
> I've suggested distutils before.  It just needs someone to write the  
> setup.py script.
>
> Also, your problem may be a bit different - it may be configure  
> that's messing up.  Are the python flags in your platform.make  
> pointing to the system python or the python.org python?
>
> Configure uses python-config to get the configuration of python  
> includes and libs.  If you just say "--with-python" (as I have in  
> the example in the GRASS OSX readme) configure will try to find it  
> in your PATH, and may be getting it wrong.
>
> Try setting a path to python-config when configuring.  It should be / 
> usr/local/bin/python-config (symlinks installed by python.org  
> installer).  ie:
>
> --with-python=/usr/local/bin/python-config
>
>
> If configure is getting it right and it's still messing up the  
> linking, another possibility is that the python.org python doesn't  
> install lib symlinks in /usr/local/lib, so even though the library  
> path is specified it may get the system python from /usr/lib.  It's  
> not supposed to, but I've seen it happen with the system sqlite vs.  
> my sqlite framework (though not recently, maybe the new Xcode has  
> fixed this).
>

There are lib symlinks to the system python in /usr/lib but none in / 
usr/local/lib.

I'll try compiling with specifying /usr/local/bin/python-config to see  
if that works. If not, it may be necessary to make the symlinks in / 
usr/local/lib

Michael


>
> I could try it, but I don't want to mess up my MacBook by installing  
> (for real) the python.org python (I like the system python), though  
> I could try it on my Mini.
>
> -----
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
>
> [Trillian]  What are you supposed to do WITH a maniacally depressed  
> robot?
>
> [Marvin]  You think you have problems?  What are you supposed to do  
> if you ARE a maniacally depressed robot?  No, don't try and answer,  
> I'm 50,000 times more intelligent than you and even I don't know the  
> answer...
>
> - HitchHiker's Guide to the Galaxy
>
>



More information about the grass-dev mailing list