<div dir="ltr"><p style="font:15px/19.5px Arial,"Helvetica Neue",Helvetica,sans-serif;margin:0px 0px 1em;padding:0px;border:0px currentColor;text-align:left;color:rgb(36,39,41);text-transform:none;text-indent:0px;letter-spacing:normal;clear:both;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal;background-color:rgb(255,255,255)">Where do C# executables running on an Ubuntu Linux 16.04 Lenovo Thinkstation desktop which use source code that DLLImport's shared objects (so's) look for shared objects at runtime? Even if the shared object libxyz.so resides in same subdirectory as the C# executable's subdirectory, I found that it is necessary to export LD_LIBRARY_PATH to ensure correct C# executable program behavior. Why is this the case?</p><p style="font:15px/19.5px Arial,"Helvetica Neue",Helvetica,sans-serif;margin:0px 0px 1em;padding:0px;border:0px currentColor;text-align:left;color:rgb(36,39,41);text-transform:none;text-indent:0px;letter-spacing:normal;clear:both;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal;background-color:rgb(255,255,255)">We noticed that during the installation of many third-party Linux software products, the installation programs or scripts manage to find libc.so.6 in the subdirectory /usr/libx86_64-linux-gnu without requiring the customer specify an LD_LIBRARY_PATH containing that subdirectory. Why is that the case?</p><div style="font:15px/19.5px Arial,"Helvetica Neue",Helvetica,sans-serif;margin:0px 0px 1em;padding:0px;border:0px currentColor;text-align:left;color:rgb(36,39,41);text-transform:none;text-indent:0px;letter-spacing:normal;clear:both;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal;background-color:rgb(255,255,255)">Also, if we wish to run the C# executable as a point and click mono-service, how do we globally specify LD_LIBRARY_PATH, until the computer reboots, without resorting to opening an Ubuntu Linux 16.04 terminal?</div><div style="font:15px/19.5px Arial,"Helvetica Neue",Helvetica,sans-serif;margin:0px 0px 1em;padding:0px;border:0px currentColor;text-align:left;color:rgb(36,39,41);text-transform:none;text-indent:0px;letter-spacing:normal;clear:both;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal;background-color:rgb(255,255,255)">This is not a C# or C++ programming question.</div><div style="font:15px/19.5px Arial,"Helvetica Neue",Helvetica,sans-serif;margin:0px 0px 1em;padding:0px;border:0px currentColor;text-align:left;color:rgb(36,39,41);text-transform:none;text-indent:0px;letter-spacing:normal;clear:both;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal;background-color:rgb(255,255,255)">Any help is welcomed,</div><div style="font:15px/19.5px Arial,"Helvetica Neue",Helvetica,sans-serif;margin:0px 0px 1em;padding:0px;border:0px currentColor;text-align:left;color:rgb(36,39,41);text-transform:none;text-indent:0px;letter-spacing:normal;clear:both;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal;background-color:rgb(255,255,255)"><br></div></div>