Skip to main content
hochul yoo
Associate III
December 26, 2022
Solved

How to add perl modules on my distribution package?

  • December 26, 2022
  • 3 replies
  • 2431 views

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.

This topic has been closed for replies.
Best answer by Jean-Marc B

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

3 replies

Jean-Marc B
Jean-Marc BBest answer
ST Employee
January 2, 2023

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
January 6, 2023

Thank you for your help ~

hochul yoo
Associate III
January 6, 2023

Thank you for your help ~