Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib::Requester #2

Open
0x0-art opened this issue Mar 18, 2021 · 3 comments
Open

lib::Requester #2

0x0-art opened this issue Mar 18, 2021 · 3 comments

Comments

@0x0-art
Copy link

0x0-art commented Mar 18, 2021

Can't locate lib/Requester.pm in @INC (you may need to install the lib::Requester module) (@INC contains: lib /home/al0ne/perl5/lib/perl5/5.32.1/x86_64-linux-gnu-thread-multi /home/al0ne/perl5/lib/perl5/5.32.1 /home/al0ne/perl5/lib/perl5/x86_64-linux-gnu-thread-multi /home/al0ne/perl5/lib/perl5 /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/x86_64-linux-gnu/perl5/5.32 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.32 /usr/share/perl/5.32 /home/al0ne/perl5/lib/perl5/5.32.0 /home/al0ne/perl5/lib/perl5/5.32.0/x86_64-linux-gnu-thread-multi /usr/local/lib/site_perl) at wpflak.pl line 18. BEGIN failed--compilation aborted at wpflak.pl line 18.
codes:
git clone https://github.com/gottburgm/wpFlak/
cd wpFlak
perl wpflak.pl -u http://127.0.0.1/

i tried to install requests library but that doesn't installing so that doesn't exists in library

Loading internal logger. Log::Log4perl recommended for better logging
Reading '/home/al0ne/.cpan/Metadata'
Database was generated on Wed, 17 Mar 2021 15:56:08 GMT
(error): Could not expand [lib::Requester]. Check the module name.
(info): I can suggest names if you install one of Text::Levenshtein::XS, Text::Levenshtein::Damerau::XS, Text::Levenshtein, and Text::Levenshtein::Damerau::PP
(info): and you provide the -x option on invocation.
(error): Skipping lib::Requester because I couldn't find a matching namespace.

@gottburgm
Copy link
Owner

Hello,

I think the problem is coming from your perl installation/settings but it's probably not a big deal.

Can you please try to replace 'use lib qw(lib);' in wpFlak.pl by the following lines please:

use FindBin qw($Bin);
use lib "$Bin/lib";

and try again ?

@gottburgm
Copy link
Owner

I just realized that's in fact its probably not you but my code, as we have 'use lib qw(lib);' we shouldnt have 'use lib::' but 'use ;'

my first comment and the steps i mentionned will work anyway so you can leave it is, but can you rather try this please:

cd wpFlak
find lib/ -type file | xargs -P1 -I{} sed 's# lib::# #g' -i {}

and run it again

@gottburgm
Copy link
Owner

I actually tested with perl-5.24.4 from the repo code, and even the 'lib::' thing is not a problem as packages also start with it.

and the script ran withiut issues, try perl-5.24.X

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants