launching executable from /usr/local/bin needs access to local file
Posted
by
kedmond
on Ask Ubuntu
See other posts from Ask Ubuntu
or by kedmond
Published on 2012-12-19T17:10:08Z
Indexed on
2012/12/19
17:13 UTC
Read the original article
Hit count: 327
I have an executable, called "octane", that I want to be able to launch globally. The executable requires access to a local binary, "octane.dat", in order to run.
I placed the directory containing the executable and the binary in /opt/ as root and created a symbolic link of the executable in /usr/local/bin/. Now, if I type "octane" anywhere, it launches but throws up an error saying it won't run without the binary, "octane.dat". Octane will only launch if my current working directory is the same as the executable and binary, in /usr/local/bin.
Any suggestions on how to fix this? Do I have to make that directory global using .bashrc?
Thanks.
© Ask Ubuntu or respective owner