<html><body>
<p><tt>According to Distrowatch ,<br>
</tt><tt><a href="http://distrowatch.com/table.php?distribution=redhat">http://distrowatch.com/table.php?distribution=redhat</a> , Red Hat 6 has Python 2.6.2.<br>
</tt><br>
<tt>Doug<br>
</tt><br>
<tt>Doug Newcomb<br>
</tt><tt>USFWS<br>
</tt><tt>Raleigh, NC<br>
</tt><tt>919-856-4520 ext. 14 doug_newcomb@fws.gov<br>
</tt><tt>---------------------------------------------------------------------------------------------------------<br>
</tt><tt>The opinions I express are my own and are not representative of the official policy of the U.S.Fish and Wildlife Service or Dept. of the Interior.   Life is too short for undocumented, proprietary data formats.<br>
</tt><br>
<tt>-----grass-dev-bounces@lists.osgeo.org wrote: -----<br>
</tt><br>
<tt>To: Markus Neteler &lt;neteler@osgeo.org&gt;<br>
</tt><tt>From: Helena Mitasova &lt;hmitaso@unity.ncsu.edu&gt;<br>
</tt><tt>Sent by: grass-dev-bounces@lists.osgeo.org<br>
</tt><tt>Date: 08/18/2010 04:11PM<br>
</tt><tt>cc: GRASS developers list &lt;grass-dev@lists.osgeo.org&gt;<br>
</tt><tt>Subject: Re: [GRASS-dev] G65/7 ctypes compilation problem on Enterprise Linux<br>
</tt><br>
<tt>Markus,<br>
</tt><br>
<tt>this is the same problem here - the problem is with python2.4 that is used as default<br>
</tt><tt>and that does not include ctypes so you need to make symlink in grass to make sure<br>
</tt><tt>it looks for python2.6 (which I have also installed) or there may be some other solution -<br>
</tt><tt>You cannot remove python2.4 because it is used for system management.<br>
</tt><tt>I did not have time to get it fully resolved yet.<br>
</tt><br>
<tt>The problem should go away with the next release of RHEL which is in beta and<br>
</tt><tt>should use python 2.6 (I think),<br>
</tt><br>
<tt>Helena<br>
</tt><br>
<br>
<tt>On Aug 18, 2010, at 3:40 PM, Markus Neteler wrote:<br>
</tt><br>
<tt>&gt; Hi,<br>
</tt><tt>&gt;<br>
</tt><tt>&gt; since Helena mentioned a problem on enterprise Linux, I tried to compile 6.5 on<br>
</tt><tt>&gt; Scientific Linux, a RHEL derivate.<br>
</tt><tt>&gt;<br>
</tt><tt>&gt; Indeed, I get this problem:<br>
</tt><tt>&gt;<br>
</tt><tt>&gt; make[1]: Entering directory<br>
</tt><tt>&gt; `/home/neteler/software/grass65_release/lib/python/ctypes'<br>
</tt><tt>&gt; GISRC=/home/neteler/software/grass65_release/dist.x86_64-unknown-linux-gnu/demolocation/.grassrc65<br>
</tt><tt>&gt; GISBASE=/home/neteler/software/grass65_release/dist.x86_64-unknown-linux-gnu<br>
</tt><tt>&gt; PATH=&quot;/home/neteler/software/grass65_release/dist.x86_64-unknown-linux-gnu/bin:$PATH&quot;<br>
</tt><tt>&gt; PYTHONPATH=&quot;&quot; LD_LIBRARY_PATH=&quot;/home/neteler/software/grass65_release/dist.x86_64-unknown-linux-gnu/bin:/home/neteler/software/grass65_release/dist.x86_64-unknown-linux-gnu/lib::/home/neteler/binaries/lib/&quot;<br>
</tt><tt>&gt; LC_ALL=C ./ctypesgen.py --cpp &quot;gcc -E     -DPACKAGE=\&quot;&quot;grasslibs&quot;\&quot;<br>
</tt><tt>&gt; -DPACKAGE=\&quot;&quot;grasslibs&quot;\&quot;<br>
</tt><tt>&gt; -I/home/neteler/software/grass65_release/dist.x86_64-unknown-linux-gnu/include&quot;<br>
</tt><tt>&gt; -lgrass_datetime<br>
</tt><tt>&gt; /home/neteler/software/grass65_release/dist.x86_64-unknown-linux-gnu/include/grass/datetime.h<br>
</tt><tt>&gt; /home/neteler/software/grass65_release/dist.x86_64-unknown-linux-gnu/include/grass/P_datetime.h<br>
</tt><tt>&gt; -o date.py<br>
</tt><tt>&gt; Traceback (most recent call last):<br>
</tt><tt>&gt;  File &quot;./ctypesgen.py&quot;, line 36, in ?<br>
</tt><tt>&gt;    import ctypesgencore<br>
</tt><tt>&gt;  File &quot;/home/neteler/software/grass65_release/lib/python/ctypes/ctypesgencore/__init__.py&quot;,<br>
</tt><tt>&gt; line 51, in ?<br>
</tt><tt>&gt;    import parser<br>
</tt><tt>&gt;  File &quot;/home/neteler/software/grass65_release/lib/python/ctypes/ctypesgencore/parser/__init__.py&quot;,<br>
</tt><tt>&gt; line 17, in ?<br>
</tt><tt>&gt;    from datacollectingparser import DataCollectingParser<br>
</tt><tt>&gt;  File &quot;/home/neteler/software/grass65_release/lib/python/ctypes/ctypesgencore/parser/datacollectingparser.py&quot;,<br>
</tt><tt>&gt; line 10, in ?<br>
</tt><tt>&gt;    import ctypesparser<br>
</tt><tt>&gt;  File &quot;/home/neteler/software/grass65_release/lib/python/ctypes/ctypesgencore/parser/ctypesparser.py&quot;,<br>
</tt><tt>&gt; line 15, in ?<br>
</tt><tt>&gt;    from cparser import *<br>
</tt><tt>&gt;  File &quot;/home/neteler/software/grass65_release/lib/python/ctypes/ctypesgencore/parser/cparser.py&quot;,<br>
</tt><tt>&gt; line 19, in ?<br>
</tt><tt>&gt;    import preprocessor<br>
</tt><tt>&gt;  File &quot;/home/neteler/software/grass65_release/lib/python/ctypes/ctypesgencore/parser/preprocessor.py&quot;,<br>
</tt><tt>&gt; line 14, in ?<br>
</tt><tt>&gt;    import ctypes<br>
</tt><tt>&gt; ImportError: No module named ctypes<br>
</tt><tt>&gt; make[1]: *** [date.py] Error 1<br>
</tt><tt>&gt; make[1]: Leaving directory<br>
</tt><tt>&gt; `/home/neteler/software/grass65_release/lib/python/ctypes'<br>
</tt><tt>&gt; make: *** [default] Error 2<br>
</tt><tt>&gt;<br>
</tt><tt>&gt; I also tried on GRASS 7, same thing.<br>
</tt><tt>&gt;<br>
</tt><tt>&gt; SciLin 5.2 provides python2.4.<br>
</tt><tt>&gt;<br>
</tt><tt>&gt; A fix would be appreciated.<br>
</tt><tt>&gt;<br>
</tt><tt>&gt; Markus<br>
</tt><tt>&gt; _______________________________________________<br>
</tt><tt>&gt; grass-dev mailing list<br>
</tt><tt>&gt; grass-dev@lists.osgeo.org<br>
</tt><tt>&gt; <a href="http://lists.osgeo.org/mailman/listinfo/grass-dev">http://lists.osgeo.org/mailman/listinfo/grass-dev</a><br>
</tt><br>
<tt>_______________________________________________<br>
</tt><tt>grass-dev mailing list<br>
</tt><tt>grass-dev@lists.osgeo.org<br>
</tt><tt><a href="http://lists.osgeo.org/mailman/listinfo/grass-dev">http://lists.osgeo.org/mailman/listinfo/grass-dev</a></tt><br>
</body></html>