[asterisk-users] trying to build 1.8.6.0 on CentOS 6, problems with ptlib

Danny Nicholas danny at debsinc.com
Tue Sep 6 16:07:20 CDT 2011


First, have you tried ./configure --help?
Next try the --with-pwlib parameter
Somewhere in the list, make sure your YUM paths are happy.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of David
Backeberg
Sent: Tuesday, September 06, 2011 3:08 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] trying to build 1.8.6.0 on CentOS 6, problems with
ptlib

I'm having annoying errors trying to get configure working.

tar xvzf /usr/local/src/asterisk-1.8.6.0.tar.gz
cd asterisk-1.8.6.0
./configure

I get complaints related to pwlib / ptlib...

checking for openr2_chan_new in -lopenr2... no checking
/root/pwlib/include/ptlib.h usability... no checking
/root/pwlib/include/ptlib.h presence... no checking for
/root/pwlib/include/ptlib.h... no checking /usr/local/include/ptlib.h
usability... no checking /usr/local/include/ptlib.h presence... no checking
for /usr/local/include/ptlib.h... no checking /usr/include/ptlib.h
usability... yes checking /usr/include/ptlib.h presence... yes checking for
/usr/include/ptlib.h... yes checking for ptlib-config...
/usr/bin/ptlib-config
./configure: line 24978: 2*10000+6*100+5 /usr/lib64/ /usr/lib/:
division by 0 (error token is "/lib64/ /usr/lib/")

There seems to also be a problem with CentOS 6 in general that I have not
found a package that actually provides /usr/bin/ptlib-config. I copied that
binary over from a CentOS 5 install to see if I could get my original error
to clear.

Here's THAT error...

checking for openr2_chan_new in -lopenr2... no checking
/root/pwlib/include/ptlib.h usability... no checking
/root/pwlib/include/ptlib.h presence... no checking for
/root/pwlib/include/ptlib.h... no checking /usr/local/include/ptlib.h
usability... no checking /usr/local/include/ptlib.h presence... no checking
for /usr/local/include/ptlib.h... no checking /usr/include/ptlib.h
usability... yes checking /usr/include/ptlib.h presence... yes checking for
/usr/include/ptlib.h... yes checking for ptlib-config... no
./configure: line 24906: --ldflags: command not found Cannot find
ptlib-config - please install and try again

And then I searched around the config trying to figure out how not to use
ptlib at all, and ultimately I tried just doing...

rpm -e ptlib ptlib-devel (and the other packages)

And this got my asterisk configure to complete.

But really, I'm wondering if other people have run into the same problem, or
if there is a nifty configure argument that would keep me from needing to
uninstall the library.

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to
Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list