Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: VMware V12 and V15 in Windows 10, MX Linux 23.1, Kubuntu 23.10, IBM z/VM 5.4
Posts: 558
Rep:
Missing Module from @INC
Greetings,
Can anyone help me with resolving the error below.
I need this fixed before I can run Clamtk in CentOS 7. (KDE or Shell)
I've tried just about everything I know of with my limited knowledge of linux. Already downloaded CPAN and tried to do an install of this but it doesn't know anything about JSON.pm
Checking my RHEL7 system I see there is an RPM containing JSON.pm:
perl-JSON-2.59-2.el7.noarch
Since CentOS is a binary compile of RHEL source that same package should be available by running yum on your CentOS:
Code:
yum install perl-JSON
You may need to update your cache first as sometimes older cache won't list newer packages.
Code:
yum makecache fast
Also you might want to verify the perl you're running is the one you think you are. Default on RHEL7 is Perl 5.16. Earlier RHEL/CentOS had earlier upstream Perl Versions (5.8.8 on RHEL5, 5.10 on RHEL6). Some apps install their own copies of Perl or other tools that might not be compatible with the default system versions so you have to update those versions instead.
Distribution: VMware V12 and V15 in Windows 10, MX Linux 23.1, Kubuntu 23.10, IBM z/VM 5.4
Posts: 558
Original Poster
Rep:
First, thanks all for responding to the indicated issue.
I will try the relevant suggestions and get back with the results.
Second, Laserberk, This is an installed app (Clamtk) that I’m trying to get working, I’m not writing anything but thanks for the suggestion.
Third, Pan64, Posted the question here because there weren’t any relevant responses where the original post was made and needed more exposure to my question. And yes I installed the app from a downloaded RPM.
BEGIN {
push (@INC, "/directory/where/JSON.pm/is");
}
Actually, the preferred method is use lib ... refer to the hyperlinked perldoc page for details.
However, it is likely that the actual root cause is that something is missing or not-installed, as other posters have suggested. As with other languages, many distros package various components separately. You should not have to specify the library path manually. You can expect the JSON module to be loaded into one of the default paths, if it has been installed at all.
Last edited by sundialsvcs; 06-20-2017 at 12:51 PM.
When perl does major update, it commonly it breaks clamtk. As others mentioned, install the packages either via your package manager (preferred) or if not available thru it install the modules via
whereas "MODULE::Of::Interest" is not a real module, replace it with the module that is missing and MCPAN will install it. Launching Clamtk from terminal will tell you what modules are missing. Install, try again and do the next module if more are missing, until it launches normal in the end.
Clamtk has these dependencies: clamav, cron (fcron , fcron , cronie , cronie), desktop-file-utils, gnome-icon-theme, gtk2-perl, perl, perl-http-message, perl-json, perl-libwww, perl-locale-gettext, perl-lwp-protocol-https, perl-text-csv, python, zenity
Distribution: VMware V12 and V15 in Windows 10, MX Linux 23.1, Kubuntu 23.10, IBM z/VM 5.4
Posts: 558
Original Poster
Rep:
Thank you everyone for staying with me on this problem.
After following the instructions for updating Perl I'm now getting the message below:
[root@localhost Downloads]# clamtk
Icon 'gtk-new' not present in theme at /usr/share/perl5/vendor_perl/ClamTk/GUI.pm line 282.
[root@localhost Downloads]#
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.