[tac_plus] TACACS installation to Redhat 7.1

Peter Mraz trubela at gmail.com
Sun May 3 13:24:09 UTC 2015


Looks

during installation it put into /usr/local/bin/ just tac_pwd, tac_plus and
tac_plus.conf is not there.

[root at SELABSK bin]# pwd
/usr/local/bin
[root at SELABSK bin]# ll
total 24
-rwxr-xr-x 1 root root 21285 May  3 13:20 tac_pwd

[root at SELABSK tacacs-F4.0.4.28]# make install
/usr/bin/gmake  install-am
gmake[1]: Entering directory `/home/il574w/tacacs-F4.0.4.28'
gmake[2]: Entering directory `/home/il574w/tacacs-F4.0.4.28'
 /usr/bin/mkdir -p '/usr/local/lib'
 /bin/sh ./libtool   --mode=install /usr/bin/install -c   libtacacs.la
'/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libtacacs.so.1.0.0
/usr/local/lib/libtacacs.so.1.0.0
libtool: install: (cd /usr/local/lib && { ln -s -f libtacacs.so.1.0.0
libtacacs.so.1 || { rm -f libtacacs.so.1 && ln -s libtacacs.so.1.0.0
libtacacs.so.1; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libtacacs.so.1.0.0
libtacacs.so || { rm -f libtacacs.so && ln -s libtacacs.so.1.0.0
libtacacs.so; }; })
libtool: install: /usr/bin/install -c .libs/libtacacs.lai /usr/local/lib/
libtacacs.la
libtool: install: /usr/bin/install -c .libs/libtacacs.a
/usr/local/lib/libtacacs.a
libtool: install: chmod 644 /usr/local/lib/libtacacs.a
libtool: install: ranlib /usr/local/lib/libtacacs.a
libtool: finish:
PATH="/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/pm7625/bin:/sbin"
ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
 /usr/bin/mkdir -p '/usr/local/bin'
  /bin/sh ./libtool   --mode=install /usr/bin/install -c tac_pwd
'/usr/local/bin'
libtool: install: /usr/bin/install -c tac_pwd /usr/local/bin/tac_pwd
 /usr/bin/mkdir -p '/usr/local/sbin'
  /bin/sh ./libtool   --mode=install /usr/bin/install -c tac_plus
'/usr/local/sbin'
libtool: install: /usr/bin/install -c .libs/tac_plus
/usr/local/sbin/tac_plus
 /usr/bin/mkdir -p '/usr/local/include'
 /usr/bin/install -c -m 644 tacacs.h '/usr/local/include'
 /usr/bin/mkdir -p '/usr/local/share/man/man5'
 /usr/bin/install -c -m 644 tac_plus.conf.5 '/usr/local/share/man/man5'
 /usr/bin/mkdir -p '/usr/local/share/man/man8'
 /usr/bin/install -c -m 644 tac_plus.8 tac_pwd.8 '/usr/local/share/man/man8'
 /usr/bin/mkdir -p '/usr/local/share/tacacs'
 /usr/bin/install -c -m 644 do_auth.py users_guide '/usr/local/share/tacacs'
 /usr/bin/mkdir -p '/usr/local/share/tacacs'
 /usr/bin/install -c tac_convert '/usr/local/share/tacacs'
gmake[2]: Leaving directory `/home/il574w/tacacs-F4.0.4.28'
gmake[1]: Leaving directory `/home/il574w/tacacs-F4.0.4.28'

On 3 May 2015 at 14:30, Peter Mraz <trubela at gmail.com> wrote:

> The most probably, tcp_wrappers should be 32 bit.
>
> tcp_wrappers.x86_64                 7.6-77.el7
> @anaconda/7.1
> tcp_wrappers-devel.i686             7.6-77.el7
> @rhel-7-server-rpms
> tcp_wrappers-devel.x86_64           7.6-77.el7
> @rhel-7-server-rpms
> tcp_wrappers-libs.i686              7.6-77.el7
> @rhel-7-server-rpms
> tcp_wrappers-libs.x86_64            7.6-77.el7
> @anaconda/7.1
>
> (based on this output : /usr/bin/ld: skipping incompatible /lib/libwrap.so
> when searching for -lwrap)
>
> On 2 May 2015 at 17:38, heasley <heas at shrubbery.net> wrote:
>
>> Sat, May 02, 2015 at 02:28:44PM +0200, Peter Mraz:
>> > Hello guys,
>> >
>> > Last few weeks, we are trying to install tacacs on new virtual server
>> > running on vmware, redhat 7.1
>> > Tacacs+ worked pretty well on 5.7 version, but on this 7.1 64 bit,
>> there is
>> > some strange error and I dont know what to do with that :)
>>
>> > [root at SELABSK tacacs+]# /etc/tacacs+/tac_process FDO1550K0T8 49 start
>> > /usr/local/bin/tac_plus: error while loading shared libraries:
>> libtacacs.so.1: wrong ELF class: ELFCLASS64
>>
>> looks like your tacacs is linked 32bit but libtacacs is 64bit.  check the
>> libs in .libs where you built it.  it doesnt look like any of it was
>> built 64bit, so you have a conflicting libtacacs installed.
>>
>> > Tacacs for FDO1550K0T8 with port:49 Pid: started!
>> > [root at SELABSK tacacs+]#
>>
>> this is a separate bug.  when ld.so fails above, does it not return an
>> error result code?  whatever the starting wrapper is, it should have
>> recognized an error and reported it.
>>
>
>
>
> --
> Ďakujem / Thank you
>
> -----------------------------------------------------------
>          Peter Mraz
> -----------------------------------------------------------
>



-- 
Ďakujem / Thank you

-----------------------------------------------------------
         Peter Mraz
-----------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/tac_plus/attachments/20150503/71d5e140/attachment.html>


More information about the tac_plus mailing list