The Update Error of VCL Backend
Hi, i am updating vcl recently. There were no troubles during the updating of its Frontend(/var/www/html/vcl), but when updating its backend, some error occured. i copies the managementnode to /opt/vcl as shown in the guide and then tried to start the service vcld, while it showed me the following errors: Starting vcld daemon: Can't locate Mail/Mailer.pm in @INC (@INC contains: /opt/vcl/bin/.. /opt/vcl/bin/../lib /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl/5.10.0 .) at /opt/vcl/bin/../lib/VCL/utils.pm line 56. BEGIN failed--compilation aborted at /opt/vcl/bin/../lib/VCL/utils.pm line 56. Compilation failed in require at /opt/vcl/bin/vcld line 61. BEGIN failed--compilation aborted at /opt/vcl/bin/vcld line 61 (#1) (F) You said to do (or require, or use) a file that couldn't be found. Perl looks for the file in all the locations mentioned in @INC, unless the file name included the full path to the file. Perhaps you need to set the PERL5LIB or PERL5OPT environment variable to say where the extra library is, or maybe the script needs to add the library name to @INC. Or maybe you just misspelled the name of the file. See perlfunc/require and lib. Uncaught exception from user code: Can't locate Mail/Mailer.pm in @INC (@INC contains: /opt/vcl/bin/.. /opt/vcl/bin/../lib /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl/5.10.0 .) at /opt/vcl/bin/../lib/VCL/utils.pm line 56. BEGIN failed--compilation aborted at /opt/vcl/bin/../lib/VCL/utils.pm line 56. Compilation failed in require at /opt/vcl/bin/vcld line 61. BEGIN failed--compilation aborted at /opt/vcl/bin/vcld line 61. at /opt/vcl/bin/vcld line 61 [FAILED] I was operating according to the guide on the wiki: http://wiki.oscr.ncsu.edu/wiki/index.php/Updating_the_VCL_VM_to_the_latest_code_version . Is there any mistakes in my understand? Please point it to me ! -- Yang Jie(杨杰) Team of MRMSS, Xi'an Jiaotong University Department of Computer Science and Technology, Xi’an Jiaotong University TEL: +8613468883723;029-82665263 EXT.24 MSN: xtyangjie2...@yahoo.com.cn E-mail: xtyang...@gmail.com
Re: The Update Error of VCL Backend
It looks like it isn't finding the MailTools Perl modules (and probably several others). Did you have it working before on the same management node or is this a new install? If you didn't have the backend code running the that management before, you need to install several Perl modules. Take a look at the managementnode/INSTALL file. It's pretty raw but will show you what you need. You'll have to adjust the paths to /opt/vcl instead of /usr/local/vcl. You can try the following and see if the error message changes: mkdir /opt/vcl/source wget --directory-prefix=/var/vcl/source http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/MailTools-2.04.tar.gz tar -xzf /var/vcl/source/MailTools-2.04.tar.gz -C /var/vcl/source cd /var/vcl/source/MailTools-2.04 perl Makefile.PL make make test make install Hope this helps, Andy 杨杰 wrote: Hi, i am updating vcl recently. There were no troubles during the updating of its Frontend(/var/www/html/vcl), but when updating its backend, some error occured. i copies the managementnode to /opt/vcl as shown in the guide and then tried to start the service vcld, while it showed me the following errors: Starting vcld daemon: Can't locate Mail/Mailer.pm in @INC (@INC contains: /opt/vcl/bin/.. /opt/vcl/bin/../lib /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl/5.10.0 .) at /opt/vcl/bin/../lib/VCL/utils.pm line 56. BEGIN failed--compilation aborted at /opt/vcl/bin/../lib/VCL/utils.pm line 56. Compilation failed in require at /opt/vcl/bin/vcld line 61. BEGIN failed--compilation aborted at /opt/vcl/bin/vcld line 61 (#1) (F) You said to do (or require, or use) a file that couldn't be found. Perl looks for the file in all the locations mentioned in @INC, unless the file name included the full path to the file. Perhaps you need to set the PERL5LIB or PERL5OPT environment variable to say where the extra library is, or maybe the script needs to add the library name to @INC. Or maybe you just misspelled the name of the file. See perlfunc/require and lib. Uncaught exception from user code: Can't locate Mail/Mailer.pm in @INC (@INC contains: /opt/vcl/bin/.. /opt/vcl/bin/../lib /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl/5.10.0 .) at /opt/vcl/bin/../lib/VCL/utils.pm line 56. BEGIN failed--compilation aborted at /opt/vcl/bin/../lib/VCL/utils.pm line 56. Compilation failed in require at /opt/vcl/bin/vcld line 61. BEGIN failed--compilation aborted at /opt/vcl/bin/vcld line 61. at /opt/vcl/bin/vcld line 61 [FAILED] I was operating according to the guide on the wiki: http://wiki.oscr.ncsu.edu/wiki/index.php/Updating_the_VCL_VM_to_the_latest_code_version . Is there any mistakes in my understand? Please point it to me !
Re: The Update Error of VCL Backend
Thank you for your help! I downloaded the component and tried to install it according to your guide, but some errors occured when executing the command make test. The error information is as shown: [r...@xcat MailTools-2.04]# make test PERL_DL_NONLAZY=1 /usr/bin/perl -MExtUtils::Command::MM -e test_harness(0, 'blib/lib', 'blib/arch') t/*.t t/extract.ok t/header..ok t/internetok t/mailcap.ok t/mailer..ok t/pod.Can't locate Test/More.pm in @INC (@INC contains: /var/vcl/source/MailTools-2.04/blib/lib /var/vcl/source/MailTools-2.04/blib/arch /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl/5.10.0 . /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl/5.10.0 .) at t/pod.t line 5. BEGIN failed--compilation aborted at t/pod.t line 5. t/pod.dubious Test returned status 2 (wstat 512, 0x200) t/require.ok t/sendok Failed Test Stat Wstat Total Fail List of Failed --- t/pod.t2 512?? ?? ?? Failed 1/8 test scripts. 0/98 subtests failed. Files=8, Tests=98, 1 wallclock secs ( 0.12 cusr + 0.14 csys = 0.26 CPU) Failed 1/8 test programs. 0/98 subtests failed. make: *** [test_dynamic] Error 255 I found it maybe related to the More.pm. What is it and its function ? How can i resolve the problem ? Thank you ! -- Yang Jie(杨杰) Team of MRMSS, Xi'an Jiaotong University Department of Computer Science and Technology, Xi’an Jiaotong University TEL: +8613468883723;029-82665263 EXT.24 MSN: xtyangjie2...@yahoo.com.cn E-mail: xtyang...@gmail.com