[tac_plus] error while loading shared libraries: libtacacs.so.1: cannot open shared object file: No such file or directory

Alan McKinnon alan.mckinnon at gmail.com
Tue Feb 25 21:23:58 UTC 2014


I think you are going about this in the wrong way, I notice several
unusual aspects of your posted output.

Why are you installing into /opt? Upstream source default is
--prefix=/usr/local which is the norm for autotools. Installs into /opt
tend to be problematic as one often needs to manually adjust library
search paths. This does not occur when using /usr/local/lib

You don't have a pkg-config the package can use.

What are those references to dpkg? Redhat is rpm based, are you trying
to extract and build sources from a Debian package? Debian probably
tweak and adjust sources to suit their layout which might not suit RedHat

40.0.427a is alpha software and may have bugs. 4.0.4.26 is latest
current and works well.

I recommend you follow the normal pattern, this workflow works correctly
for more across many different platforms and distros:

wget ftp://ftp.shrubbery.net/pub/tac_plus/tacacs+-F4.0.4.26.tar.gz
tar xvzf tacacs+-F4.0.4.26.tar.gz
cd tacacs+-F4.0.4.26
./configure --help=short
./configure <your own options here>
make
sudo make install





On 25/02/2014 21:52, Eugene Fotso wrote:
> I HAVE TRIED:
> 
> # ldconfig -v
> 
> # /opt/tacacs/bin/tac_plus -V
> /opt/tacacs/bin/tac_plus: error while loading shared libraries:
> libtacacs.so.1: cannot open shared object file: No such file or directory
> -- ls -altr /usr/lib|grep libtacacs
> 
> 
> On Tue, Feb 25, 2014 at 12:40 PM, Eugene Fotso <efotso63 at gmail.com> wrote:
> 
>> Hello,
>> I CAN'T seem to find SOLUTION for this issue I am having with
>> "libtacacs.so.1 "
>>
>>     *OS= RedHat*
>> *    tac_plusRel=F4.0.4.27a*
>>
>> I have installed as required, but every time I attemp to run "tac_plus", I
>> get "*error while loading shared libraries: libtacacs.so.1: cannot open
>> shared object file: No such file or directory"*
>>
>>
>> # /etc/init.d/tac_plus start
>>
>> Starting Tacacs+ server: /opt/tacacs/bin/tac_plus: *error while loading
>> shared libraries: libtacacs.so.1: cannot open shared object file: No such
>> file or directory*
>> tac_plus.
>>
>> I HAVE TRIED ALL the available SOLUTIONS online, but still NOT WORKING:
>> HELP HELP HELP
>>
>>
>> ---
>>
>> *# ./configure >/dev/null*
>>
>> configure: WARNING: i686 not found in cputable
>>
>> configure: WARNING: linux-gnu not found in ostable
>>
>> ./configure: line 8717: *pkg-config: command not found*
>>
>>
>>
>> *# make >/dev/null*
>>
>> processarc.o: In function `process_archive':
>>
>> /opt/TACACS/dpkg-1.14.31/src/processarc.c:173: warning: the use of
>> `tmpnam' is dangerous, better use `mkstemp'
>>
>> archives.o: In function `tarobject':
>>
>> /opt/TACACS/dpkg-1.14.31/src/archives.c:634: undefined reference to
>> `matchpathcon'
>>
>> /opt/TACACS/dpkg-1.14.31/src/archives.c:640: undefined reference to
>> `setfscreatecon'
>>
>> /opt/TACACS/dpkg-1.14.31/src/archives.c:802: undefined reference to
>> `setfscreatecon'
>>
>> /opt/TACACS/dpkg-1.14.31/src/archives.c:804: undefined reference to
>> `freecon'
>>
>> /opt/TACACS/dpkg-1.14.31/src/archives.c:826: undefined reference to
>> `setfscreatecon'
>>
>> /opt/TACACS/dpkg-1.14.31/src/archives.c:618: undefined reference to
>> `is_selinux_enabled'
>>
>> collect2: ld returned 1 exit status
>>
>> make[2]: *** [dpkg] Error 1
>>
>> make[1]: *** [all-recursive] Error 1
>>
>> make: *** [all] Error 2
>>
>>
>>
>> *# cd utils*
>>
>> *# make install*
>>
>> gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..
>> -DLOCALEDIR=\"/usr/local/share/locale\" -idirafter ../libcompat -I../lib
>> -g -O2 -MT start-stop-daemon.o -MD -MP -MF .deps/start-stop-daemon.Tpo -c
>> -o start-stop-daemon.o start-stop-daemon.c
>>
>> mv -f .deps/start-stop-daemon.Tpo .deps/start-stop-daemon.Po
>>
>> gcc -std=gnu99  -g -O2  -Wl,-O1 -o start-stop-daemon start-stop-daemon.o
>> ../libcompat/libcompat.a
>>
>> make[1]: Entering directory `/opt/TACACS/dpkg-1.14.31/utils'
>>
>> test -z "/usr/local/sbin" || /bin/mkdir -p "/usr/local/sbin"
>>
>>   /usr/bin/install -c 'start-stop-daemon'
>> '/usr/local/sbin/start-stop-daemon'
>>
>> make[1]: Nothing to be done for `install-data-am'.
>>
>> make[1]: Leaving directory `/opt/TACACS/dpkg-1.14.31/utils'
>>
>> --
>> *Eugene "DeFOT's" FOTSO,*
>> *"Be Well, Do Good Work and Above All, KEEP IN TOUCH!"*
>>
> 
> 
> 


-- 
Alan McKinnon
alan.mckinnon at gmail.com



More information about the tac_plus mailing list