[Perl-unix-users] Installing the SGI::FAM module
Has anyone tried to install the SGI::FAM module under Red Hat 8.0? When I try using CPAN I get the following errors. CPAN.pm: Going to build J/JG/JGLICK/SGI-FAM-1.002.tar.gz Ignore "Not a known parameter name" warnings.WARNING: PRCS_PROJECT is not a known parameter. Checking if your kit is complete... Looks good 'PRCS_PROJECT' is not a known MakeMaker parameter name. Note (probably harmless): No library found for -lC Writing Makefile for SGI::FAM cp lib/SGI/FAM.pm blib/lib/SGI/FAM.pm AutoSplitting blib/lib/SGI/FAM.pm (blib/lib/auto/SGI/FAM) /usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.0/ExtUtils/typemap -typemap typemap FAM.xs > FAM.xsc && mv FAM.xsc FAM.c gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -march=i386 -mcpu=i686 -DVERSION=\"1.002\" -DXS_VERSION=\"1.002\" -fpic "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE" FAM.c FAM.xs:11:17: fam.h: No such file or directory FAM.xs: In function `constant': FAM.xs:52: `FAMChanged' undeclared (first use in this function) FAM.xs:52: (Each undeclared identifier is reported only once FAM.xs:52: for each function it appears in.) FAM.xs:54: `FAMDeleted' undeclared (first use in this function) FAM.xs:56: `FAMStartExecuting' undeclared (first use in this function) FAM.xs:58: `FAMStopExecuting' undeclared (first use in this function) FAM.xs:60: `FAMCreated' undeclared (first use in this function) FAM.xs:62: `FAMMoved' undeclared (first use in this function) FAM.xs:64: `FAMAcknowledge' undeclared (first use in this function) FAM.xs:66: `FAMExists' undeclared (first use in this function) FAM.xs:68: `FAMEndExist' undeclared (first use in this function) FAM.xs: In function `famerror': FAM.xs:123: `FAMErrno' undeclared (first use in this function) FAM.xs:123: `FamErrlist' undeclared (first use in this function) FAM.xs: In function `famwarn': FAM.xs:132: `FAMErrno' undeclared (first use in this function) FAM.xs:132: `FamErrlist' undeclared (first use in this function) FAM.c: In function `XS_FAMConnectionPtr_Open2': FAM.c:188: `FAMConnection' undeclared (first use in this function) FAM.c:188: `fc' undeclared (first use in this function) FAM.c:195: parse error before ')' token FAM.c: In function `XS_FAMConnectionPtr_Close': FAM.c:213: `FAMConnection' undeclared (first use in this function) FAM.c:213: `fc' undeclared (first use in this function) FAM.c:219: parse error before ')' token FAM.c: In function `XS_FAMConnectionPtr_MonitorCollection': FAM.c:237: `FAMConnection' undeclared (first use in this function) FAM.c:237: `fc' undeclared (first use in this function) FAM.c:239: `FAMRequest' undeclared (first use in this function) FAM.c:239: `fr' undeclared (first use in this function) FAM.c:248: parse error before ')' token FAM.c:255: parse error before ')' token FAM.c: In function `XS_FAMConnectionPtr_MonitorDirectory2': FAM.c:273: `FAMConnection' undeclared (first use in this function) FAM.c:273: `fc' undeclared (first use in this function) FAM.c:275: `FAMRequest' undeclared (first use in this function) FAM.c:275: `fr' undeclared (first use in this function) FAM.c:281: parse error before ')' token FAM.c:288: parse error before ')' token FAM.c: In function `XS_FAMConnectionPtr_MonitorFile2': FAM.c:306: `FAMConnection' undeclared (first use in this function) FAM.c:306: `fc' undeclared (first use in this function) FAM.c:308: `FAMRequest' undeclared (first use in this function) FAM.c:308: `fr' undeclared (first use in this function) FAM.c:314: parse error before ')' token FAM.c:321: parse error before ')' token FAM.c: In function `XS_FAMConnectionPtr_SuspendMonitor': FAM.c:339: `FAMConnection' undeclared (first use in this function) FAM.c:339: `fc' undeclared (first use in this function) FAM.c:340: `FAMRequest' undeclared (first use in this function) FAM.c:340: `fr' undeclared (first use in this function) FAM.c:346: parse error before ')' token FAM.c:353: parse error before ')' token FAM.c: In function `XS_FAMConnectionPtr_ResumeMonitor': FAM.c:371: `FAMConnection' undeclared (first use in this function) FAM.c:371: `fc' undeclared (first use in this function) FAM.c:372: `FAMRequest' undeclared (first use in this function) FAM.c:372: `fr' undeclared (first use in this function) FAM.c:378: parse error before ')' token FAM.c:385: parse error before ')' token FAM.c: In function `XS_FAMConnectionPtr_CancelMonitor': FAM.c:403: `FAMConnection' undeclared (first use in this function) FAM.c:403: `fc' undeclared (first use in this function) FAM.c:404: `FAMRequest' undeclared (first use in this function) FAM.c:404: `fr' undeclared (first use in this function) FAM.c:410: parse error before ')' token FAM.c:417: parse error before ')' token FAM.c: In function `XS_FAMConnectionPtr_NextEvent': FAM.c:435: `FAMConnection' undeclared (first use in this function) FAM.c:435: `fc' undeclared (first use in this function) FAM.c:436: `FAMEvent' undeclared (first use in this function)
[Perl-unix-users] File::Copy Copying directories
I’m having a problem with the File:Copy copy command. When I run the script below the move works perfectly but the copy translates the directory I’ve asked it to move into a file. Has any one any ideas how I can get it to copy a directory and get another directory out the other end. I’d greatly appreciate any help as this thing has been driving me up the wall since last week. #!/bin/perl # $CopyFromHere = "/home/mpr/testdir"; $CopyToHere = "/home/mpr/testcopy"; $MoveToHere = "/home/mpr/testmove"; umask(000); use File::Copy; copy($CopyFromHere, $CopyToHere) or die "Coping of file $CopyFromHere failed"; move("$CopyFromHere", "$MoveToHere") or die "Moving of file $CopyFromHere failed"; print "Complete OK.\n"; Thanks. Martin. L This email is from Civica Plc or one of its subsidiaries ("Civica") and it, together with any attachments, is confidential to the intended recipient(s) and the contents may be legally privileged or contain proprietary and private information. It is intended solely for the person to whom it is addressed. If you are not an intended recipient, you may not review, copy or distribute this email. If received in error, please notify the sender and delete the message from your system immediately. Any views or opinions expressed in this email and any files transmitted with it are those of the author only and may not necessarily reflect the views of Civica and do not create any legally binding rights or obligations whatsoever. Unless otherwise pre-agreed by exchange of hard copy documents signed by duly authorised representatives, contracts may not be concluded on behalf of Civica by email. Please note that neither Civica nor the sender accepts any responsibility for any viruses and it is your responsibility to scan the email and the attachments (if any). All email received and sent by Civica may be monitored to protect the business interests of Civica.