Not exactly sure what you're doing here. You don't have to give it a single configure flag for python, https://www.dropbox.com/s/z1xvrtel3ds12wp/Screenshot%202014-08-22%2010.49.50... On Fri, Aug 22, 2014 at 10:39 AM, Devin Fee <devin.fee@gmail.com> wrote:
When configuring the FreeSWITCH package, I get the following error and then the process halts:
./configure --enable-core-pgsql-support --with-python=/usr/local/bin/python2.7
… checking for python... /usr/bin/python checking python version... 2.7.5+ checking for python distutils... yes checking location of site-packages... /usr/lib/python2.7/dist-packages checking python libdir... /usr/lib checking for main in -lpython2.7… no configure: error: python2.7 is unusable
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).
... | #define HAVE_LIBSSL 1 | #define HAVE_OPENSSL 1 | #define HAVE_TLS 1 | #define HAVE_OPENSSL_DTLS_SRTP 1 | #define HAVE_OPENSSL_DTLS 1 | /* end confdefs.h. */ | | | int | main () | { | return main (); | ; | return 0; | } configure:23841: result: no configure:23855: error: python2.7 is unusable
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:
Ubuntu 14.04 ------------------ [x] FS v1.2 - Python 2.7.5 [stock] [x] FS v1.4 - Python 2.7.5 [stock] [x] FS v1.4 -Python 3.3.2 [installed from source]
CentOS 6.5 ---------------- [x] FS v1.4 - Python 2.6.6 [stock] [+] FS v1.4 - Python 2.7.6 [installed from source] [x] FS v1.4 - Python 3.3.3 [installed from source]
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?
I installed Python from source on CentOS, using the instructions posted by Digital Ocean, here: https://www.digitalocean.com/community/tutorials/how-to-set-up-python-2-7-6-... 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.
Thanks, Devin
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Brian West* brian@freeswitch.org *Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest