Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[gentoo-user] Can't locate Net/IMAP/Client.pm

300 views
Skip to first unread message

hw

unread,
Feb 28, 2015, 5:30:03 AM2/28/15
to
Hi,

I'm trying to "use Net::IMAP::Client;" in a perl script and keep getting
the message:


Can't locate Net/IMAP/Client.pm in @INC (you may need to install the
Net::IMAP::Client module) (@INC contains: /etc/perl
/usr/local/lib64/perl5/5.20.1/x86_64-linux /usr/local/lib64/perl5/5.20.1
/usr/lib64/perl5/vendor_perl/5.20.1/x86_64-linux
/usr/lib64/perl5/vendor_perl/5.20.1 /usr/local/lib64/perl5
/usr/lib64/perl5/vendor_perl /usr/lib64/perl5/5.20.1/x86_64-linux
/usr/lib64/perl5/5.20.1 .) at [scriptname]


Does anyone know which package(s) I need to emerge to install the
missing perl module?

Alexander Kapshuk

unread,
Feb 28, 2015, 5:40:03 AM2/28/15
to
dev-perl/Mail-IMAPClient IMAP client module for Perl

hw

unread,
Feb 28, 2015, 6:50:02 AM2/28/15
to
Thank you!

I've emerged it and am still getting the same error message.


sunflo ~ # find /usr -name Client.pm
/usr/lib64/perl5/5.20.1/CPAN/HTTP/Client.pm
sunflo ~ #


Any ideas?

Alan McKinnon

unread,
Feb 28, 2015, 7:10:03 AM2/28/15
to
If memory serves (and if my eix skillz are up to it), it's this

dev-perl/Net-IMAP-Simple

>

Alexander Kapshuk

unread,
Feb 28, 2015, 7:50:03 AM2/28/15
to
The module above probably comes from the pkg below:
equery -q b /usr/lib/perl5/5.20.1/CPAN/HTTP/Client.pm
dev-lang/perl-5.20.1-r4

Looks like the pkg I suggested installing was wrong. Sorry about that.
The portage tree doesn't seem to have a Net-IMAP-Client pkg:
ls -1d /usr/portage/dev-perl/Net-IMAP*
/usr/portage/dev-perl/Net-IMAP-Simple
/usr/portage/dev-perl/Net-IMAP-Simple-SSL

Someone else might have an idea for you.

Sorry.

Alexander Kapshuk

unread,
Feb 28, 2015, 8:00:05 AM2/28/15
to
I could be wrong, but dev-perl/Net-IMAP-Simple does not contain Net-IMAP-Client.pm:

grep module /usr/portage/dev-perl/Net-IMAP-Simple/metadata.xml
    <remote-id type="cpan-module">Net::IMAP::Simple</remote-id>
    <remote-id type="cpan-module">Net::IMAP::Simple::PipeSocket</remote-id>
    <remote-id type="cpan-module">Net::IMAP::SimpleX</remote-id>
    <remote-id type="cpan-module">Net::IMAP::SimpleX::Body</remote-id>
    <remote-id type="cpan-module">Net::IMAP::SimpleX::BodySummary</remote-id>
    <remote-id type="cpan-module">Net::IMAP::SimpleX::NIL</remote-id>

Stroller

unread,
Feb 28, 2015, 4:30:04 PM2/28/15
to

On Sat, 28 February 2015, at 10:29 am, hw <h...@gartencenter-vaehning.de> wrote:
>
> I'm trying to "use Net::IMAP::Client;" in a perl script and keep getting the message:
>
> ...
> Does anyone know which package(s) I need to emerge to install the missing perl module?

http://search.cpan.org/~ganglion/Net-IMAP-Client/

eix imap -C dev-perl

I don't think there's a package for this is in portage.

You could try app-portage/g-cpan and seeing if that will install it. I believe I read a few months ago that it's in need of maintenance, but I'd expect it to work in most packages.

http://www.gentoo.org/proj/en/perl/g-cpan.xml

Stroller.

hw

unread,
Mar 4, 2015, 5:10:03 AM3/4/15
to
Np, at first I thought it should be in this package. I tried to emerge
some packages which looked as if they might contain the module, to no avail.

> The portage tree doesn't seem to have a Net-IMAP-Client pkg:
> ls -1d /usr/portage/dev-perl/Net-IMAP*
> /usr/portage/dev-perl/Net-IMAP-Simple
> /usr/portage/dev-perl/Net-IMAP-Simple-SSL
>
> Someone else might have an idea for you.
>
> Sorry.
>

If anything fails, I might be able to install it from cpan or so. Is
there anything special to consider when doing this on Gentoo?

hw

unread,
Mar 4, 2015, 5:20:04 AM3/4/15
to
sunflo ~ # eix dev-perl/Net-IMAP-Simple


[I] dev-perl/Net-IMAP-Simple
Available versions: (~)1.220.100-r1
Installed versions: 1.220.100-r1(16:16:45 20.02.2015)
Homepage: http://search.cpan.org/dist/Net-IMAP-Simple/
Description: Perl extension for simple IMAP account handling


It's already installed ...

hw

unread,
Mar 4, 2015, 5:20:04 AM3/4/15
to


Am 28.02.2015 um 22:26 schrieb Stroller:
>
> On Sat, 28 February 2015, at 10:29 am, hw <h...@gartencenter-vaehning.de> wrote:
>>
>> I'm trying to "use Net::IMAP::Client;" in a perl script and keep getting the message:
>
> I don't think there's a package for this is in portage.
>
> You could try app-portage/g-cpan and seeing if that will install it. I believe I read a few months ago that it's in need of maintenance, but I'd expect it to work in most packages.
>
> http://www.gentoo.org/proj/en/perl/g-cpan.xml

Thank you, I'll look into it and see if I can install the module I need :)

Michael Orlitzky

unread,
Mar 4, 2015, 11:00:04 AM3/4/15
to
On 03/04/2015 05:16 AM, hw wrote:
>>
>> You could try app-portage/g-cpan and seeing if that will install
>> it. I believe I read a few months ago that it's in need of
>> maintenance, but I'd expect it to work in most packages.
>>
>> http://www.gentoo.org/proj/en/perl/g-cpan.xml
>
> Thank you, I'll look into it and see if I can install the module I
> need :)
>
>

File a bug for it. Even if no one commits to maintaining it in the tree,
we can at least post ebuilds there and keep track of them in one place.

hw

unread,
Mar 17, 2015, 11:40:03 AM3/17/15
to
Sounds like a good idea :)


For now, I've installed the missing module with cpan. Are we actually
supposed to run cpan as root to be able to put the required files into
the library directory?

Michael Orlitzky

unread,
Mar 17, 2015, 11:50:03 AM3/17/15
to
On 03/17/2015 11:35 AM, hw wrote:
>
> For now, I've installed the missing module with cpan. Are we actually
> supposed to run cpan as root to be able to put the required files into
> the library directory?
>

You aren't supposed to use CPAN at all, it will break stuff. Here's an
ebuild for dev-perl/Net-IMAP-Client-0.950.500 (attached).

I could file the bug for you, but it will be beneficial in the long run
for you to get comfortable with the process.

Net-IMAP-Client-0.950.500.ebuild
0 new messages