I work with a opensource software that I have built locally. After build the manual says to run it like this while inside the build directory
$ LD_LIBRARY_PATH=../applicationExeFile
Then the application runs fine.
Now I tried to make a simple shell to call quickly without typing much (run.sh) with the following content:
#!/bin/bash
export -n LD_LIBRARY_PATH=.
./applicationExeFile
But it seems that LD_LIBRARY_PATH does not get registered in shell as I get error regarding the application executable can not find a library that is in the same folder
./applicationExeFile: error while loading shared libraries: libchart.so: cannot open shared object file: No such file or directory
What am I doing wrong and how to achieve this?
.
, is that what you want?-n
to the export command? that's for removing a variable from the environmentcd
into the target directory and only then run the script.