Results 1 to 7 of 7

Thread: Erlang Help

  1. #1


    Member Since
    Jan 10, 2012
    Posts
    2
    Erlang Help
    Hi, im very new to using terminal and im having problems with installing erlang. I have followed the instructions on this site Installing Erlang on Mac OS X to install erlang. Now i think the installation ran well but I cant seem to use the command "erl" because terminal doesnt recognize it. What should I do?

    PS
    I downloaded and have xcode on my computer which is a requirement to run erlang. Im 10.5.8

  2. #2

    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Location
    Tucson, AZ
    Posts
    6,881
    Specs:
    Way... way too many specs to list.
    do a ..


    find / |grep -i erl


    if it replies with something, than the directory it's located in just isn't in your path.
    mike
    This machine kills fascists
    Got # ? phear the command line!

  3. #3


    Member Since
    Jan 10, 2012
    Posts
    2
    Unknown option
    Hi, i did what you asked and all i get is find: -i: unknown option

  4. #4

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,782
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    The -i switch is used to ignore case and therefore, you shouldn't need it if you know for a fact that the binary (or symlink) is called erl. Exclude it from the command and try again.

    Also of note - there should be a space between the | and grep:
    Code:
    find / | grep -i erl
    You may also have to throw sudo in front of all that - find sometimes complains that it doesn't have privileges to read certain directories.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  5. #5

    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Location
    Tucson, AZ
    Posts
    6,881
    Specs:
    Way... way too many specs to list.
    Read his statement again, FIND is saying it's an invalid option (which is is for find), I'm gonna bet the pipe (|) is missing
    mike
    This machine kills fascists
    Got # ? phear the command line!

  6. #6

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,782
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    Quote Originally Posted by Dysfunction View Post
    Read his statement again, FIND is saying it's an invalid option (which is is for find), I'm gonna bet the pipe (|) is missing
    Haha, evidently my morning coffee hadn't kicked in yet. My mistake. This is what happens when you try to think before your brain is ready.

    Indeed you're correct - you get the unknown option error if the pipe is missing.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  7. #7

    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Location
    Tucson, AZ
    Posts
    6,881
    Specs:
    Way... way too many specs to list.
    Quote Originally Posted by vansmith View Post
    Haha, evidently my morning coffee hadn't kicked in yet. My mistake. This is what happens when you try to think before your brain is ready.

    Indeed you're correct - you get the unknown option error if the pipe is missing.
    It's probably a lowercase "L" in his syntax. That won't work
    mike
    This machine kills fascists
    Got # ? phear the command line!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •