问题 I build a Rust program that calls a C++ function via a C interface. In order to execute the program, I have to run: export LD_LIBRARY_PATH=<path to shared c lib> or I get an error: error while loading shared libraries: libtest.so: cannot open shared object file: No such file or directory I tried to set the variable in a build script using std::process::Command Command::new("sh").arg("export").arg("LD_LIBRARY_PATH=<path to shared c lib>"); Although the command executes without an error, the