About the hard link

Discussion in 'General Linux' started by yeosn, Jun 9, 2014.

  1. yeosn

    yeosn New Member

    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    1
    Hello everyone!
    I had installed a software, but the path not in environment variable, so, every time I want to start it must input its full path in terminal, it's too trouble. so, I had established a hard link like this :
    Code:
    ln /home/yeosn/programs/oald8/oald8 /usr/local/bin/oald8
    but when I typed 'oald8' in terminal, it prompted "Cannot find oald8 runtime directory. Exiting." Why? How can I solve this problem?

  2. arochester

    arochester Well-Known Member

    Messages:
    817
    Likes Received:
    261
    Trophy Points:
    63
    Which distro are you using?
  3. yeosn

    yeosn New Member

    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    1
    It is Linux mint.
  4. arochester

    arochester Well-Known Member

    Messages:
    817
    Likes Received:
    261
    Trophy Points:
    63
  5. yeosn

    yeosn New Member

    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    1
    Thanks for your patience! But I think the problem may be on the hard link, because when I typed the full path "/home/yeosn/programs/oald8/oald8" in the terminal, the application could be started normally, but when I typed the "oald8" only, it will prompt an error message.
  6. yeosn

    yeosn New Member

    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    1
    I am running 64bit OS,and the software is 32bit
  7. yeosn

    yeosn New Member

    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    1
    I had found out the reason results in this problem. I should create a symbolic link instead, not a hard link
    Code:
    ln -s /home/yeosn/programs/oald8/oald8 /usr/local/bin/oald8 
    Thanks for your help!
    ryanvade likes this.

Share This Page