[asterisk-users] Commands to upgrade to latest Libpri? can I upgrade without touching Asterisk?

bruce bruce bruceb444 at gmail.com
Mon May 17 19:03:04 CDT 2010


When I do "show pri version" I still see 1.4.10. Is that right or should I
see 1.4.10.2 since I upgraded it.

I did the install but shouldn't I get an "Install sucesful message" ?

*Just did a "make clean && make && make install" and output is:*
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC   -MD
-MT copy_string.o -MF .copy_string.o.d -MP -c -o copy_string.o copy_string.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC   -MD
-MT pri.o -MF .pri.o.d -MP -c -o pri.o pri.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC   -MD
-MT q921.o -MF .q921.o.d -MP -c -o q921.o q921.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC   -MD
-MT prisched.o -MF .prisched.o.d -MP -c -o prisched.o prisched.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC   -MD
-MT q931.o -MF .q931.o.d -MP -c -o q931.o q931.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC   -MD
-MT pri_facility.o -MF .pri_facility.o.d -MP -c -o pri_facility.o
pri_facility.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC   -MD
-MT version.o -MF .version.o.d -MP -c -o version.o version.c
ar rcs libpri.a copy_string.o pri.o q921.o prisched.o q931.o pri_facility.o
version.o
ranlib libpri.a
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC   -MD
-MT copy_string.lo -MF .copy_string.lo.d -MP -c -o copy_string.lo
copy_string.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC   -MD
-MT pri.lo -MF .pri.lo.d -MP -c -o pri.lo pri.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC   -MD
-MT q921.lo -MF .q921.lo.d -MP -c -o q921.lo q921.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC   -MD
-MT prisched.lo -MF .prisched.lo.d -MP -c -o prisched.lo prisched.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC   -MD
-MT q931.lo -MF .q931.lo.d -MP -c -o q931.lo q931.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC   -MD
-MT pri_facility.lo -MF .pri_facility.lo.d -MP -c -o pri_facility.lo
pri_facility.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC   -MD
-MT version.lo -MF .version.lo.d -MP -c -o version.lo version.c
gcc -shared -Wl,-hlibpri.so.1.4 -o libpri.so.1.4 copy_string.lo pri.lo
q921.lo prisched.lo q931.lo pri_facility.lo version.lo
/sbin/ldconfig -n .
ln -sf libpri.so.1.4 libpri.so
mkdir -p /usr/lib
mkdir -p /usr/include
install -m 644 libpri.h /usr/include
install -m 755 libpri.so.1.4 /usr/lib
if [ -x /usr/sbin/sestatus ] && ( /usr/sbin/sestatus | grep "SELinux
status:" | grep -q "enabled"); then /sbin/restorecon -v
/usr/lib/libpri.so.1.4; fi
( cd /usr/lib ; ln -sf libpri.so.1.4 libpri.so)
install -m 644 libpri.a /usr/lib
if test $(id -u) = 0; then /sbin/ldconfig -n /usr/lib; fi

Thanks,
Bruce



On Mon, May 17, 2010 at 4:03 PM, bruce bruce <bruceb444 at gmail.com> wrote:

> Thanks for the help Tzafrir.
>
> I think for libpri you meant >= 1.4.x rather than 1.4.4 as the latest
> version available is 1.4.10.2....or maybe 1.4.10 is greater than 1.4.4 ?!
> Why haven't they changed the name to 1.5.0. I never get the nomenclature for
> these things.
>
> Thanks again,
> Bruce
>
>
> On Mon, May 17, 2010 at 3:48 PM, Tzafrir Cohen <tzafrir.cohen at xorcom.com>wrote:
>
>> On Mon, May 17, 2010 at 03:22:04PM -0400, bruce bruce wrote:
>> > Hi Guys,
>> >
>> > I have to upgrade to latest Libpri 1.4.10.2 due to an existing bug in
>> the
>> > current 1.4.10 version. I am running Asterisk 1.4.x (in fact it is a
>> > PBXinaFLASH system).
>> >
>> > How can I upgrade to the latest Libpri? Do I need to re-install
>> Asterisk?
>> > Won't that break the box?
>>
>> If you upgrade from a version of libpri that is >= 1.4.4 , you just need
>> to rebuild and reinstall libpri.
>>
>>
>> >
>> > Can I simply do this to upgrade:
>> >
>> > *rm /usr/src/libpri/*.**
>> >
>> > *rm -rf /usr/src/libpri/**
>>
>> Not really needed
>>
>> >
>> >
>> > Download the new libpri and put files in folder /usr/src/libpri/
>> >
>> > *cd /usr/src/libpri && make clean && make && make install*
>>
>> Basically, yes.
>>
>> 'make clean' is not streactly needed, though it is harmless.
>>
>> --
>>               Tzafrir Cohen
>> icq#16849755              jabber:tzafrir.cohen at xorcom.com<jabber%3Atzafrir.cohen at xorcom.com>
>> +972-50-7952406           mailto:tzafrir.cohen at xorcom.com
>> http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir
>>
>> --
>> _____________________________________________________________________
>> -- 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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100517/827e9d83/attachment.htm 


More information about the asterisk-users mailing list