That means your "sudo" configuration doesn't allow the use of the `-E`
flag; at least in that specific use case. Alternatively, your system
doesn't preserve the value of `LD_LIBRARY_PATH` when the shell is invoked
via `sudo -E` because the shell's startup scripts clobber that var.
I hope you
HI Michael,
Looks like it is still not preserving the env variable:
nsaboo@ubuntu:~/Documents/goworkspace/src/poc$ export
LD_LIBRARY_PATH=/usr/local/lib/syslog-ng
nsaboo@ubuntu:~/Documents/goworkspace/src/poc$ sudo -E bash -c 'echo
$LD_LIBRARY_PATH'
You could try:
sudo -E bash -c 'echo $LD_LIBRARY_PATH'
The -E is --preserve-env
On 6/24/19 12:32 PM, Marcin Romaszewicz wrote:
sudo echo $LD_LIBRARY_PATH
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and
Hi,
i think sudo kills the LD_LIBRARY_PATH variable.
But this is configurable, try something like:
Defaultsenv_keep += “LD_LIBRARY_PATH"
in /etc/sudoers and / or consult the sudo man page.
Best regards,
Michael
> On 24. Jun 2019, at 18:48, Nitish Saboo wrote:
>
> Hi ,
>
> I am
sudo does not preserve environment variables for security reasons, run:
sudo echo $LD_LIBRARY_PATH
You'll likely see that it's empty, unless you have a global system one set.
On Mon, Jun 24, 2019 at 9:48 AM Nitish Saboo
wrote:
> Hi ,
>
> I am using cgo in this project where I need the
Hi ,
I am using cgo in this project where I need the following given .so files.
After building the go code, I get the binary 'main'.
ubuntu@hexint09-ingest-0693b91d:/opt/tap-parsing/bin$ ls -lrt
total 17000
-rwxr-xr-x 1 parsing parsing 17405424 Jun 24 11:14 main
'.*/main' works fine whereas