cgustave / fgtconfig

FortiGate configuration analysis and transformation
10 stars 3 forks source link

How to use the tool? #11

Open danje57 opened 1 year ago

danje57 commented 1 year ago

Dear,

Sorry to ask this.

However, I would like to use the tool but I don't remember how Perl works.

I cloned the github space

Then try the command:

perl fgtconfig -config MYCONFIG.xml

But I've this error:

Can't locate cfg_fgtconfig.pm in @INC (you may need to install the cfg_fgtconfig module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/x86_64-linux-gnu/perl5/5.36 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.36 /usr/share/perl/5.36 /usr/local/lib/site_perl) at fgtconfig.pl line 6. BEGIN failed--compilation aborted at fgtconfig.pl line 6.

Is it possible to ahve a step by step explanation?

Regards

cgustave commented 1 year ago

Hi danje57,

I have added a very simple INSTALL.md file to add the required packages and setup the PERL5LIB environment variable which are the 2 steps required for installation.

In your case, you need to update PERL5LIB env variable to add the tool path. Without this, perl can't find the tool modules files cfg_*.pm

Hope that helps. Cedric.

danje57 commented 1 year ago

Hi danje57,

I have added a very simple INSTALL.md file to add the required packages and setup the PERL5LIB environment variable which are the 2 steps required for installation.

In your case, you need to update PERL5LIB env variable to add the tool path. Without this, perl can't find the tool modules files cfg_*.pm

Hope that helps. Cedric.

Thanks a lot, I4ll try it this week!

Regards!

danje57 commented 1 year ago

Thanks for the help. It works.

Excepted the same error as already mentionned in issue 12