<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" 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; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 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; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 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; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 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; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 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; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 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; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 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; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 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; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 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">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></body></html>