0

I have a tool. This tool extracts an executable file (called binA) and then this tool call ./binA binA file is in where is the same tool's location. I make a soft link to this tool run anywhere:

ln -s /home/user/Desktop/tool /usr/local/bin

This tool extracted successfully but can't call ./binA I tried call ln -s /home/user/Desktop/tool /usr/local/bin this tool can't extract binA file.

What is the best solution for this problem?

4
  • 1
    Possible solutions to help: askubuntu.com/questions/108771/…
    – Terrance
    Nov 20, 2018 at 3:21
  • Sorry, I know difference between them but how to resolve my problem, either soft link and hard link both don't resolve this case.
    – kien bui
    Nov 20, 2018 at 6:34
  • I used a soft link but I can't call ./binA
    – kien bui
    Nov 20, 2018 at 6:37
  • 2
    Did you make your file binA executable, so that you can run it, when you call it directly from the directory, where is is located: ./binA ? In that case a symbolic link to it should also make it run. An alternative is to move the file binA to a directory in PATH, for example /usr/local/bin
    – sudodus
    Nov 20, 2018 at 7:53

0

You must log in to answer this question.

Browse other questions tagged .