Re: Passing LD_LIBRARY_PATH through sudo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Alexander Farber wrote:
> 
> Still my test call fails:
> 
> afarber@VM:~> echo $LD_LIBRARY_PATH
> /usr/lib/oracle/11.2/client64
> afarber@VM:~> sudo -E perl -e 'print $ENV{LD_LIBRARY_PATH}';
> afarber@VM:~>
> afarber@VM:~> sudo -E perl -e 'print $ENV{HOME}';
> /home/afarber
> 
> Does anybody please have a suggestion here?

Have you tried:

sudo LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64 perl -e 'print 
$ENV{LD_LIBRARY_PATH}'

James Pearson
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux