cancel
Showing results for 
Search instead for 
Did you mean: 

How to add perl modules on my distribution package?

hochul yoo
Associate III

Hi all ~

I'm using ProFTP and try to use ftpasswd perl script to manage AuthUserFiles.

But when I run ftpasswd command on my system I get the following error 

Can't locate Fcntl.pm in @INC (you may need to install the Fcntl module) 
(@INC contains: 
 
/usr/lib/perl5/site_perl/5.34.1/arm-linux 
/usr/lib/perl5/site_perl/5.34.1 
/usr/lib/perl5/vendor_perl/5.34.1/arm-linux 
/usr/lib/perl5/vendor_perl/5.34.1 
/usr/lib/perl5/5.34.1/arm-linux 
/usr/lib/perl5/5.34.1) 
 
at ./ftpasswd line 29.
 
BEGIN failed--compilation aborted at ./ftpasswd line 29.
 
2022-12-23 00:31:06,788 stm32mp1-prox-mx670 proftpd[3800]: fatal: unknown configuration directive 'AuthUserFile' on line 13 of '/home/hantas/remoteprox_ftpconf'

How can I add perl module on distribution package?

Thanks in advanced.

1 ACCEPTED SOLUTION

Accepted Solutions
Jean-Marc B
ST Employee

Hi @hochul yoo​ 

The perl module Fnctl is available from your board through the package repository service:

root@stm32mp1:~# apt-get update
root@stm32mp1:~# apt-cache policy perl-module-fcntl
perl-module-fcntl:
  Installed: (none)
  Candidate: 5.34.1-r0
  Version table:
     5.34.1-r0 500
        500 http://packages.openstlinux.st.com/4.1 kirkstone/main armhf Packages

You can install it with the command:

root@stm32mp1:~# apt-get install perl-module-fcntl

Best regards,

--JM

View solution in original post

3 REPLIES 3
Jean-Marc B
ST Employee

Hi @hochul yoo​ 

The perl module Fnctl is available from your board through the package repository service:

root@stm32mp1:~# apt-get update
root@stm32mp1:~# apt-cache policy perl-module-fcntl
perl-module-fcntl:
  Installed: (none)
  Candidate: 5.34.1-r0
  Version table:
     5.34.1-r0 500
        500 http://packages.openstlinux.st.com/4.1 kirkstone/main armhf Packages

You can install it with the command:

root@stm32mp1:~# apt-get install perl-module-fcntl

Best regards,

--JM

hochul yoo
Associate III

Thank you for your help ~

Thank you for your help ~