<div dir="ltr">Are you installing python-dev or just python? python-dev is required for embedding it in mod_python.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 22 August 2014 16:39, Devin Fee <span dir="ltr"><<a href="mailto:devin.fee@gmail.com" target="_blank">devin.fee@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
<div><div>When configuring the FreeSWITCH package, I get the following error and then the process halts:</div><div><br></div></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
<div><div><div><div>./configure --enable-core-pgsql-support --with-python=/usr/local/bin/python2.7</div></div></div></div></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
<div><div><div><div style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
…</div></div></div></div></div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><div><div><div><div style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
checking for python... /usr/bin/python</div></div></div></div></div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><div><div><div><div style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
checking python version... 2.7.5+</div></div></div></div></div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><div><div><div><div style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
checking for python distutils... yes</div></div></div></div></div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><div><div><div><div style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
checking location of site-packages... /usr/lib/python2.7/dist-packages</div></div></div></div></div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><div><div><div>
<div style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
checking python libdir... /usr/lib</div></div></div></div></div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><div><div><div><div style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
checking for main in -lpython2.7… no</div></div></div></div></div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><div><div><div><div style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
configure: error: python2.7 is unusable</div></div></div></div></div></blockquote><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><div><div><div><div><br></div><div>
Looking at the config.log file, this seemed to be most relevant (and it was the same in every failure, regardless of platform or version).</div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>
...</div><div>| #define HAVE_LIBSSL 1</div><div>| #define HAVE_OPENSSL 1</div><div>| #define HAVE_TLS 1</div><div>| #define HAVE_OPENSSL_DTLS_SRTP 1</div><div>| #define HAVE_OPENSSL_DTLS 1</div><div>| /* end confdefs.h. */</div>
<div>|</div><div>|</div><div>| int</div><div>| main ()</div><div>| {</div><div>| return main ();</div><div>| ;</div><div>| return 0;</div><div>| }</div><div>configure:23841: result: no</div><div>configure:23855: error: python2.7 is unusable</div>
</blockquote><div></div></div><div><br></div><div><br></div><div>I had this problem across two platforms: Ubuntu as a guest VM on my computer and a fresh CentOS EC2 instance, across two versions (git checkout of v1.2 and v1.4), and across three versions of Python. Here were my efforts:</div>
<div><br></div><div>Ubuntu 14.04</div><div>------------------</div><div>[x] FS v1.2 - Python 2.7.5 [stock]</div><div>[x] FS v1.4 - Python 2.7.5 [stock]</div><div>[x] FS v1.4 -Python 3.3.2 [installed from source]</div><div>
<br></div><div>CentOS 6.5</div><div>----------------</div><div>[x] FS v1.4 - Python 2.6.6 [stock]</div><div>[+] FS v1.4 - Python 2.7.6 [installed from source]</div><div>[x] FS v1.4 - Python 3.3.3 [installed from source]</div>
<div><br></div><div>For five out of my six configurations attempts (five permutations listed above failed [x], one succeed [√]). Why was pythonX.Y unusable? What versions of Python are supported?</div><div><br></div></div>
<div>I installed Python from source on CentOS, using the instructions posted by Digital Ocean, here: <a href="https://www.digitalocean.com/community/tutorials/how-to-set-up-python-2-7-6-and-3-3-3-on-centos-6-4" target="_blank">https://www.digitalocean.com/community/tutorials/how-to-set-up-python-2-7-6-and-3-3-3-on-centos-6-4</a></div>
<div>The only change I made was to add the compilation flag “—enable-shared” during configure of the Python which led to a successful installation. That however, was almost certainly a different bug.</div><div><br></div>
<div>
<div>Thanks,</div><div>Devin</div></div></div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>