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

ora2pg tempdir errors on windows #1810

Open
niteshn24 opened this issue Aug 20, 2024 · 3 comments
Open

ora2pg tempdir errors on windows #1810

niteshn24 opened this issue Aug 20, 2024 · 3 comments

Comments

@niteshn24
Copy link

Hi,

When i run the below command, i am unclear on where to look to resolve this. Please advise:

perl -MFile::Spec -e "print $File::Spec::VERSION;" 3.90

C:\ora2pg>ora2pg -t show_report --estimate_cost -c ora2pg.conf --dump_as_html > ora2pg.html

``
Attempt to call undefined import method with arguments ("tmpdir") via package "File::Spec" (Perhaps you forgot to load the package?) at c:/Strawberry/perl/site/lib/Ora2Pg.pm line 38.
Attempt to call undefined import method with arguments ("tmpdir") via package "File::Spec" (Perhaps you forgot to load the package?) at c:\Strawberry\perl\site\bin/ora2pg line 29.
Aborting export...

@naotsugu-kobayashi
Copy link

A similar error occurred with Strawberry Perl 5.40.
If you use 5.38 or 5.36, the error does not occur.

@Indhu-Jayaraj-DFT
Copy link

But how to resolve this if I'm using strawberry Perl 5.40

@ewie
Copy link

ewie commented Oct 8, 2024

I've also seen this error in Postgres' pgindent tool: https://www.postgresql.org/message-id/acd151f0-4548-4ff9-a58e-99f5616dbe22%40ewie.name

The problem is that with Perl 5.40 this import:

use File::Spec qw/ tmpdir /;

will now produce a warning: https://metacpan.org/release/HAARG/perl-5.40.0/view/pod/perldelta.pod#Calling-the-import-method-of-an-unknown-package-produces-a-warning

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

4 participants