Skip to content

Arin Bulk whois data perl Can’t locate BulkWhois/ in @INC

I have tried this on two operating systems (first on Fedora then on Ubuntu(recommended)) and I am still confused so I am reaching out to the community.

I have access to ARIN’s bulk whois data and want to parse the xml file and throw it into a database. I came across a Perl script that does exactly this in a github repo This is done on Ubuntu and stored in a mysql database.

I followed all of the steps, 1.) Download the project, 2.) Untar, 3.) Install libraries, 4.) Install perl modules, 5.) Install mysql, start the mysql-server, and create the “BulkWhois” database as suggested.

When I run the command:

ubuntu@ubuntu:~$ ./McKizzle-Arin-XML-Data-to-MySQL-dc77a54/src/ --file ~/arin_db.xml --dbms mysql --database BulkWhois --host localhost --port 3306

I get this error message:

Can't locate BulkWhois/ in @INC (you may need to install the BulkWhois::Schema module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at ./McKizzle-Arin-XML-Data-to-MySQL-dc77a54/src/ line 12.BEGIN failed--compilation aborted at ./McKizzle-Arin-XML-Data-to-MySQL-dc77a54/src/ line 12.

Line 12 in

use BulkWhois::Schema;

The error says Can't locate BulkWhois/ in @INC. I know that in the directory above the one that is in there is

ubuntu@ubuntu:~/McKizzle-Arin-XML-Data-to-MySQL-dc77a54/src/BulkWhois$ ls

Do I need to move that somewhere? Maybe there is another issue?



With all of the help from Patrick, we solved the issue I was having.

Add the -I adds the current directory and made perl find the missing perl module.

Needed to install the missing Switch module:

sudo cpan -f Switch

Final command that worked:

cd ~/McKizzle-Arin-XML-Data-to-MySQL-dc77a54/src/ ; perl -I. --file /tmp/arin_db.xml --dbms mysql --database BulkWhois --host localhost --port 3306 --user root 
User contributions licensed under: CC BY-SA
8 People found this is helpful