WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: TACACS+  (Read 2393 times)

Offline Encyder

  • Newbie
  • *
  • Posts: 4
TACACS+
« on: February 16, 2022, 06:14:00 PM »
Hello,

Need help installing tac_plus. I’ve tried to create a TCZ file from an RPM and DEB file, it always said it successfully installed but wouldn’t work.

I think this would be a great extension for the community. Any help would be greatly appreciated.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11635
Re: TACACS+
« Reply #1 on: February 16, 2022, 08:23:21 PM »
Hi Encyder
Welcome to the forum.

... I’ve tried to create a TCZ file from an RPM and DEB file, ...
What steps did you perform to do this? We are not mind readers.

Quote
... it always said it successfully installed but wouldn’t work. ...
That's not enough information to determine what is wrong.
If I told you my computer doesn't work, could you tell me why?  ::)

Offline Encyder

  • Newbie
  • *
  • Posts: 4
Re: TACACS+
« Reply #2 on: February 18, 2022, 07:37:24 AM »
Hey Rich, thanks for your reply.

I’m using TinyCore version 10.1.

Steps I no doubt erroneously performed:
•   Downloaded  tac_plus_x86_64.rpm
            o   Not sure if I need a .deb or can use a .rpm – had trouble finding intel version of .deb
•   rpm2cpio <tac_plus_x86_64.rpm> | cpio -id
            o   created the folder structure of files inside folder tac_plus/
•   mksquashfs tac_plus/ tac_plus.tcz
            o   created tac_plus.tcz
•   tce-load -i tac_plus.tcz
            o   it says Ok, and if I run again it says its already installed but when I try to run it, I receive line 2 syntax error.
            o   I’m not sure if I’m using an incompatible RPM/DEB or if it’s a problem with a different step.

Appreciate the help.

Offline polikuo

  • Hero Member
  • *****
  • Posts: 730
Re: TACACS+
« Reply #3 on: February 18, 2022, 08:05:03 AM »
Tiny Core doesn't use library path "lib64"
So if you convert any package from other distros directly, there's a great chance it won't work.
It's better to recompile from source

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: TACACS+
« Reply #4 on: February 18, 2022, 08:17:35 AM »
In addition, the deb/rpm probably doesn’t contain any required dependencies.

Offline Encyder

  • Newbie
  • *
  • Posts: 4
Re: TACACS+
« Reply #5 on: February 18, 2022, 01:08:47 PM »
Thanks. I tried to recompile from source:

It successfully configures. Now I run 'make' and receive:

tac_plus.c:35:11: fatal error: tcpd.h: no such file or directory
 include <tcpd.h>
compilation terminated.

I ran which tcpd and it says /usr/local/sbin/tcpd
I ran ls -lr /usr/local/sbin/tcpd -> /tmp/tcloop/tcp_wrappers/usr/local/sbin/tcpd

Any thoughts? Thanks

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11635
Re: TACACS+
« Reply #6 on: February 18, 2022, 01:16:15 PM »
Hi Encyder
Install  tcp_wrappers-dev.tcz:
Code: [Select]
tce-load -wi tcp_wrappers-dev

Offline Encyder

  • Newbie
  • *
  • Posts: 4
Re: TACACS+
« Reply #7 on: February 18, 2022, 02:01:26 PM »
Thanks! I only had tcp_wrappers. After installing tcp_wrappers_dev, make worked. I'll see if I can successfully finish the process and report back.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11635
Re: TACACS+
« Reply #8 on: February 18, 2022, 02:13:05 PM »
Hi Encyder
The  tcp_wrappers-dev  package is only required for compiling. It is not needed when running the program. It's not
unusual for  -dev.tcz  packages to be required when compiling programs.