YGP has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I tried to Install Net::FtpServer, I am getting this once I do ' make install'.
"install: The -c, -f, -n options each require a directory following!"
It is able to create the directory /etc but install commad fails
The following command caused the error: if [ ! "" ]; then \ mkdir -p /Perl_Modules/new/etc; \ if [ ! -f /Perl_Modules/new/etc/ftpd.conf ]; then \ install -c -m 0644 ftpd.conf /Perl_Modules/new/etc/ftpd.co +nf; \ else \ install -c -m 0644 ftpd.conf /Perl_Modules/new/etc/ftpd.co +nf.new; \ echo "Old configuration file /Perl_Modules/new/etc/ftpd.co +nf not overwritten."; \ echo "New configuration file installed as /Perl_Modules/ne +w/etc/ftpd.conf.new"; \ fi; \ fi make: Fatal error: Command failed for target `install'

Replies are listed 'Best First'.
Re: Net FTPServer
by Corion (Patriarch) on Mar 11, 2008 at 07:19 UTC

    My guess is that the install command of your unix is incompatible with the assumptions of the module author. As the Makefile.PL is full of hand-rolled code, it seems that the author is not fond of ExtUtils::MakeMaker and the mechanisms it provides for installing files.

    A possible way out could be to avoid the configuration overall and do the copying manually, as hinted in the INSTALL file:

    You can override where the configuration file will go by specifying the SYSCONFDIR setting. /etc is the default. Or to avoid installing a configuration altogether use "make NOCONF=1 install" instead.
Re: Net FTPServer
by pc88mxer (Vicar) on Mar 11, 2008 at 16:00 UTC
      Hi, thansk for the reply, I did a work around here, tried to install it without installing config file, later I copied the ftpd.conf file to the location where it should be ( /etc) and started the server, It worked............Thanks a lot for your help.