when i login a remote server through ssh, i see the LD_LIBRARY_PATH was :
echo $LD_LIBRARY_PATH
:/usr/local/lib
And when i use fabric in python, to run the same code in fabric run api, the result is empty.
from fabric.api import *
def test():
run("echo $LD_LIBRARY_PATH")
and even when i try to change the LD_LIBRARY_PATH using fabric, it doesn't work at all.
from fabric.api import *
def test():
run("echo $LD_LIBRARY_PATH")
run("export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH")
Does anyone know why?