[asterisk-users] Strange problem with PRI on 64-bit?
tony at softins.co.uk
Wed Apr 4 09:00:06 CDT 2018
In article <20180404133024.kpidrkuiyjoqd3ox at xorcom.com>,
Tzafrir Cohen <tzafrir.cohen at xorcom.com> wrote:
> On Wed, Apr 04, 2018 at 11:28:33AM +0000, Tony Mountifield wrote:
> > In article <CALD46g3Wz8kajro4_nDE211OsV8PaXfdSZW-G6T2qxjLk-YQWg at mail.gmail.com>,
> > Richard Mudgett <rmudgett at digium.com> wrote:
> > >
> > > The libpri makefile doesn't install things for 64 bit systems in the right
> > > place  without your help. You'll need to specify where to install the
> > > library on the command line for your system:
> > >
> > > sudo make install libdir=/usr/lib64
> > >
> > >
> > > Richard
> > >
> > >  https://issues.asterisk.org/jira/browse/PRI-100
> > Ah, thanks. I did in fact discover the following 64-bit libraries were
> > installed into /usr/lib instead of /usr/lib64:
> > 1. From DAHDI, libtonezone.so
> dahdi-tools 2.11 now uses autoconf. It still installs to /usr/lib or is
> it an older version?
I compiled dahdi-linux-complete-2.11.1+2.11.1, by doing:
make -C tools install-config
In fact I did all the above with a DESTDIR=$DESTDIR appended to each line,
as I was building a binary bundle for system building.
Before doing so I also did:
mkdir -p $DESTDIR/etc/udev/rules.d $DESTDIR/etc/rc.d/init.d $DESTDIR/etc/sysconfig/network-scripts
Maybe that defeated autoconf, and made it default to /usr/lib?
If I had also done a mkdir $DESTDIR/usr/lib64 before building, maybe
autoconf would have found it?
But in any case, running ldconfig made everything get found:
[root at bridge05 ~]# ldconfig -p | fgrep -v lib64
552 libs found in cache `/etc/ld.so.cache'
libtonezone.so.2 (libc6,x86-64) => /usr/lib/libtonezone.so.2
libtonezone.so (libc6,x86-64) => /usr/lib/libtonezone.so
libpri.so.1.4 (libc6,x86-64) => /usr/lib/libpri.so.1.4
libpri.so (libc6,x86-64) => /usr/lib/libpri.so
libasteriskssl.so.1 (libc6,x86-64) => /usr/lib/libasteriskssl.so.1
libasteriskssl.so (libc6,x86-64) => /usr/lib/libasteriskssl.so
[root at bridge05 ~]#
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org
More information about the asterisk-users