Software Development Kit (SDK) and API Discussions
Can't locate NaServer.pm in @INC
use lib "/root/netapp/sdk50/perl/NetApp;/root/netapp/sdk50/perl/NetApp/XML";
use NaServer (this is where is dies)
I opened a case with NetApp but support isn't there.
Did you check if NaServer.pm is present under one of the folders you have mentioned for 'use lib', i.e.:
Usually the perl libraries for NMSDK are located under:
<path to nmsdk root>/lib/perl/NetApp
Yes the file is there:
You are seeing an error because of the wrong usage of Perl "use lib" (and nothing specific to NMSDK).
If you are providing multiple paths in "use lib", you can either specify them as a list (e.g. using "qw") or as separate "use lib" statements.
use lib qw(/root/netapp/sdk50/perl/NetApp /root/netapp/sdk50/perl/NetApp/XML);
use lib "/root/netapp/sdk50/perl/NetApp";
use lib "/root/netapp/sdk50/perl/NetApp/XML";
Please let me know if this helps.
Didn't change anything:
Not I have:
Can't locate loadable object for module XML::Parser::Expat in @INC (@INC contains: /root/netapp/sdk50/perl/NetApp /root/netapp/sdk50/perl/NetApp/XML /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /root/netapp/sdk50/perl/NetApp/XML/Parser.pm line 15
From the error message it seems to me that XML:Parser.pm and/or Parser:Expat.pm were not installed properly (or at least not installed under a default location, somewhere under '@INC').
I am guessing you have the following files/directories under /root/netapp/sdk50/perl/NetApp/XML
Parser.pm # file
Parser # directory
And under Parser directory, you would have the Expat.pm.
Parser directory would also have other dependencies (e.g. Encodings) required for Expat.pm.
If this is the case, you would need to add /root/netapp/sdk50/perl/NetApp/XML/Parser and subsequent dependent directories to the lib path (using "use lib").
However, it is recommended to install the module under usual @INC paths so that "use lib" does not get too big.
Moreover, just ensure that XML:Parser module is "installed" (using make) and not just "copied" under /root/netapp/sdk50/perl/NetApp/XML.
I'm a novice user of Linux. I solved the problem.
Anybody else that has this problem verify Parser is installed:
rpm -qa | grep -i parser | grep -i xml
To get it working:
yum install perl-XML-Parser
Glad to know that your problem is resolved after installing XML::Parser.
In case you face any other issues while using NMSDK, please feel free to post your queries on the communities.
Live Chat, Watch Parties, and More!
Engage digitally throughout the sales process, from product discovery to conﬁguration, and handle all your post-purchase needs.