Installing Asterisk on Mac OS X - step by step please

Discussion in 'macOS' started by RichardF, Aug 6, 2008.

  1. RichardF macrumors 6502a

    RichardF

    Joined:
    Oct 27, 2006
    Location:
    New York City
    #1
    Dear friends - I spent the last 48 hours googling for a tutorial to install Asterisk (www.asterisk.org) on Mac OS X without much success.

    What I need, given my limited knowledge and skills, is a set-by-step (literally) tutorial for doing the installation, configuring and then using Asterisk.

    If anyone has the knowledge and the patience to explain this to me, no doubt it will be immensely beneficial to many users out there and should be the number 1 result to a Google search about this, in no time.

    I would post on Asterisk.org forums but they are full of Spam and I think this is a better shot.

    I love this community. Thank you very much.
     
  2. tmactater macrumors newbie

    Joined:
    Aug 17, 2008
    #2
  3. jibberia macrumors newbie

    Joined:
    Sep 30, 2003
    #4
    Crud. I just wrote a few pleasant sentences of a nice solution to your problem (which I just assumed would be "install MacPorts, open a terminal and type 'sudo port install asterisk'"). Then I discovered that neither macports nor fink has asterisk. D'oh!

    Actually, I'll paste my wasted time because if you don't know about using a package manager, you should. (AND you can read this while I try to actually help you with your problem!) A package manager is the thing Linux fans are talking about when they say "our 'add/remove programs' can actually add programs, because they're all Free! Installing all the software you want is a really curious experience the first time -- at first, it seems too good to be true, and you almost expect to receive a large bill in the mail. Then you go through these giant lists and hierarchies thinking "hmm, I could use that; at least it's worth a try." Then you brace for bad news and hit "Apply" and, a little while later, everything is cleanly installed, with menu entries, init scripts, a layout on the file system that is actually consistent with the rest of your OS, etc. Later on, when the software is updated, it's a piece of cake because the software does it for you (sudo port update asterisk).

    There are two such projects for OS X: Fink and MacPorts (recently known as "DarwinPorts"). Both are community projects, so in the beginning, it was Just A Guy who wanted his expensive Mac to have all of Linux's features and then some, so he started "porting" (making subtle tweaks to a program's code and installation process to make it smooth for others) free/open source Linux and unix software to OS X. Add some people and momentum, and while the Mac package managers will never be as complete as the *nix ones, they're still indispensable.

    Personally, I use MacPorts because it tends to have what I need. Don't install both of them (waste of disk space, leads to collisions, just generally confusing and goffy); just look at the lists on their websites to figure out which fits you best.

    brb with real help, i think i've guessed your problem :)

    1. First, make sure you have the Developer Tools installed. They're on your OS X disc or were included with your mac.
    2. Try what you were doing before, because that might have been the whole problem.
    3. Download a fresh copy of Asterisk, and move that file onto your desktop. Double-click it and OS X will untar it for you.
    4. Open Terminal. type
      cd
      Make sure you leave a space after "cd "
    5. Drag the folder you previously untar'd onto the terminal. This just types in the whole path to the file for you -- easy and typo-free. Hit return.
    6. (whoa, asterisk is missing a lot of instructions) Type
      ./configure
      and hit return.
    7. Then you can
      sudo make install
      Enter your password.

    That's a solid start, at least.

    The only other thing that could go wrong is if you don't have some of those libraries that are required:
    • dfs
    • ncurses, and associated -devel
    • openssl, and associated -devel
    • zlib, and associated -devel
      bison, and associated -devel (1.0.X only)

    You can use your new port skills if you do to install any of those, ie:
    port search ncurses
    sudo port install ncurses

    etc. It's good to search first so you can get the spelling of the name right.
    Finally, two points:
    1. Ask for help before you waste 48 hours on something like this! :D
    2. Include some information about what errors you're getting so people can actually help you. I'm driving completely blind here!
     
  4. TTDaVeTT macrumors newbie

    Joined:
    Oct 20, 2008
    #5
    Mac OS X help

    Hi I am in the same situation. I have downloaded and done a sudo make install on asterisk-1.6.0.1 and it looks like it was installed correctly, but I cannot find the extensions.conf it order to configure asterisk to play well with my ruby on rails environment. Does anyone know how to access this file?
     
  5. maccoylton macrumors newbie

    Joined:
    Oct 22, 2008
    #6
    Looks like DarwinPorts may have and asterisk package

    Haven't tried it out yet but take a look here:- http://asterisk.darwinports.com/ may help get it installed

    Regards

    David
     
  6. bbell2000 macrumors newbie

    Joined:
    Nov 9, 2007
    #7

Share This Page