[Freeswitch-users] FS compilation errored out at building mod_cdr_pg_csv

Zenny garbytrash at gmail.com
Wed Mar 21 15:42:16 MSK 2012


On 3/21/12, Patrick Lists <freeswitch-list at puzzled.xs4all.nl> wrote:
> On 21-03-12 12:01, Zenny wrote:
>> I also tried to export with 'pg_config --includedir' instead of
>> --pkgincludedir below before I executed ./configure:
>>
>> # export CFLAGS=-I'pg_config --includedir'
>> [freeswitch]# ./configure
>> checking for a BSD-compatible install... /usr/bin/install -c
>> checking whether build environment is sane... yes
>> checking for a thread-safe mkdir -p... /bin/mkdir -p
>> checking for gawk... gawk
>> checking whether make sets $(MAKE)... yes
>> checking build system type... x86_64-unknown-linux-gnu
>> checking host system type... x86_64-unknown-linux-gnu
>> checking for gcc... gcc
>> checking for C compiler default output file name...
>> configure: error: in `/usr/src/freeswitch':
>> configure: error: C compiler cannot create executables
>>
>> In this case, even ./configure failed. My include directories are:
>>
>> # pg_config | grep INCLUDE
>> INCLUDEDIR = /usr/pgsql-9.1/include
>> PKGINCLUDEDIR = /usr/pgsql-9.1/include
>> INCLUDEDIR-SERVER = /usr/pgsql-9.1/include/server
>>
>> Where did I go wrong?
>
> I don't know which distro you use but that directory (/usr/pgsql-9.1)
> looks odd. If you use CentOS or RHEL why don't you just remove all stock
> postgresql RPMs from your box and install a decent PostgreSQL 9.1 RPM
> via http://yum.postgresql.org/

I am using CentOS6. I installed the RPMs directly downloading the repos from:
rpm -ivh http://yum.postgresql.org/9.1/redhat/rhel-6-x86:64/pgdg-centos91-9.1-4.noarch.rpm



>
> Regards,
> Patrick
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list