-
Notifications
You must be signed in to change notification settings - Fork 26
Use /sbin/ldconfig -p to find ORACLE_HOME #198
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
base: master
Are you sure you want to change the base?
Conversation
|
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; |
There was a problem hiding this comment.
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'; |
There was a problem hiding this comment.
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 ) { |
There was a problem hiding this comment.
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;
}
|
@Tux , thank you for your helpful feedback! |
|
Squashing in to one commit would be better. Then we can cleanly pull the changes. |
Incorporating @Tux's feedback
|
@djzort, the two commits have been squashed into one |
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.