Skip to content

Conversation

@lewart3
Copy link

@lewart3 lewart3 commented Nov 27, 2025

On Debian and derivatives, Oracle Instant Client installation is simplest with ZIP files and ldconfig.
No RPMs and no Alien.

Then neither ORACLE_HOME nor LDCONFIG are necessary.

@djzort
Copy link
Collaborator

djzort commented Dec 3, 2025

This seems quite sensible. Lets see if there is any more feedback before merging it.

Makefile.PL Outdated
push @oh, $1;
}
}
my $error = close $fh;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no use in catching the error and then ignoring it

close $fh or warn "Closing @cmd failed: $!\n";

Makefile.PL Outdated
s:/lib\w*/?$:: for @oh; # remove possible trailing lib dir
}
if ( !@oh && $^O eq 'linux' && -x '/sbin/ldconfig' ) {
my $command = '/sbin/ldconfig -p';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my @cmd = qw( /sbin/ldconfig -p );

Makefile.PL Outdated
}
if ( !@oh && $^O eq 'linux' && -x '/sbin/ldconfig' ) {
my $command = '/sbin/ldconfig -p';
if ( open my $fh, q{-|}, $command ) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (open my $fh, '-|', @cmd) {
    local $/;
    push @oh => (<$fh> =~ m{^\tlibclntsh.$so[ ].*[ ]=>[ ](/.*)/libclntsh.so$}msg);
    close $fh;
    }

@lewart3
Copy link
Author

lewart3 commented Dec 11, 2025

@Tux , thank you for your helpful feedback!
I believe that I have incorporated your suggestions.
However, I'm not sure if you or I should be the one to Resolve conversations.

@djzort
Copy link
Collaborator

djzort commented Dec 12, 2025

Squashing in to one commit would be better. Then we can cleanly pull the changes.

@lewart3
Copy link
Author

lewart3 commented Dec 12, 2025

@djzort, the two commits have been squashed into one

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

Successfully merging this pull request may close these issues.

4 participants