Installing Links (terminal browser)

Discussion in 'Mac Apps and Mac App Store' started by someguy, Feb 18, 2006.

  1. someguy macrumors 68020

    someguy

    Joined:
    Dec 4, 2005
    Location:
    Still here.
    #1
    I downloaded Links.pkg from http://links.sourceforge.net/ and intalled it on my PowerBook (OS 10.4.5), but for some reason it just won't work. I must be doing something wrong, but I can't figure it out.

    I've restarted Terminal after the installation, even restarted the entire system.

    Any clue as to what might be wrong?

    P.S. Sorry if this is covered in another thread, I searched, but the word "links" is almost never used to describe this particular program.. :)
     
  2. risc macrumors 68030

    risc

    Joined:
    Jul 23, 2004
    Location:
    Melbourne, Australia
    #2
    I just downloaded the package and it works fine.

    What error are you getting when you try to run it from the terminal?

    Off the top of my head the only thing I can think of is you don't have /usr/local/bin in your path?
     
  3. someguy thread starter macrumors 68020

    someguy

    Joined:
    Dec 4, 2005
    Location:
    Still here.
    #3
    Last login: Sat Feb 18 16:01:09 on ttyp1
    Welcome to Darwin!
    Mac:~ Gary$ links
    -bash: links: command not found
     
  4. risc macrumors 68030

    risc

    Joined:
    Jul 23, 2004
    Location:
    Melbourne, Australia
    #4
    Check your path first

    echo $PATH

    You probably don't have /usr/local/bin in there, what you need to do is edit a file called ~/.profile and add the following:

    ##
    # DELUXE-USR-LOCAL-BIN-INSERT
    # (do not remove this comment)
    ##
    echo $PATH | grep -q -s "/usr/local/bin"
    if [ $? -eq 1 ] ; then
    PATH=$PATH:/usr/local/bin
    export PATH
    fi


    You might not even have a .profile so just create one and add that script. Once you've done that quit the terminal and restart it (you might need to log out) and try again.

    If you aren't sure what that script above does I recommend you read the man pages for all of the commands there, you can trust me but it's best to be sure. ;)

    If you do have /usr/local/bin in your path did you install it to default drive / location?
     
  5. someguy thread starter macrumors 68020

    someguy

    Joined:
    Dec 4, 2005
    Location:
    Still here.
    #5
    Mac:~ Gary$ echo $PATH
    /bin:/sbin:/usr/bin:/usr/sbin


    Again, total n00b. :) Does this tell you anything, though?
     
  6. risc macrumors 68030

    risc

    Joined:
    Jul 23, 2004
    Location:
    Melbourne, Australia
    #6
    Yes you don't have /usr/local/bin in your path. Edit /Users/Gary/.profile and add the script above.
     
  7. someguy thread starter macrumors 68020

    someguy

    Joined:
    Dec 4, 2005
    Location:
    Still here.
    #7
    Will do. How do I edit .profile if I can't see it in the finder? Do I have to use Terminal somehow?
     
  8. risc macrumors 68030

    risc

    Joined:
    Jul 23, 2004
    Location:
    Melbourne, Australia
    #8
    Since you seem to be pretty new at this try pico from the terminal:

    pico ~/.profile

    add the script and then save and quit using ctrl + o then ctrl + x.
     
  9. someguy thread starter macrumors 68020

    someguy

    Joined:
    Dec 4, 2005
    Location:
    Still here.
    #9
    Excellent. Works great now. Thanks for your help! :)
     
  10. risc macrumors 68030

    risc

    Joined:
    Jul 23, 2004
    Location:
    Melbourne, Australia
    #10
    No problem. If you are interested in open source apps you might want to install the developer tools and then check out DarwinPorts or Fink they are both huge software repositories. Personally I prefer DarwinPorts.
     

Share This Page