Call Us Today! 877.742.2583




Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

About

This is part of the Installation and Setup on OS X guide for installing and running FreeSWITCH™. This page describes the installation of FreeSWITCH™ on OS X using an AppleScript program that automates installation steps. The installer is occasionally updated with changes, new features and fixes if needed. Email the author with suggestions or issues.xx

 

Why Use the Script?

There are lot's of advantages to using the script as seen below. The primary ones are:

  • For people new to FreeSWITCH™ it shields you from using Terminal commands and walks them through the whole process.
  • It determines if steps were previously accomplished and performs only what's needed.
  • It creates a folder of log files so it's easy to check for problems.
  • It saves time for people doing a lot of testing. In fact, I developed this so I could click a couple of times then walk away!

What Does it Do?

The installer performs identical steps as described in these links:

You should review the links before using the installer so you know what the program will change and install.

Here is the sequence of functions performed:

  1. Determines if it can run on the OS X release.
  2. Asks what function is desired, install or remove.
  3. For installation, what version to download.
  4. Checks for presence of Xcode.
  5. Checks for presence of Command Line Utilities.
  6. Checks if hidden files are visible.
  7. Checks if the required directories exists.
  8. Checks if the install directory has the correct ownership.
  9. Checks for presence of Homebrew.
  10. Checks for presence of each prerequisites.
  11. Checks for presence of previous FreeSWITCH™ source and runtime libraries.
  12. Produces a list of actions to take and requests verification to proceed.
  13. If required, launches web pages to install Xcode.
  14. If required, launches functions to install Command Line Utilities.
  15. If required, makes hidden files visible.
  16. If required, creates directories exists.
  17. If required, changes the ownership of the install directory.
  18. If required, downloads and installs Homebrew.
  19. If required, downloads and installs prerequisites.
  20. If required, renames previous FreeSWITCH™ source and runtime libraries to prevent changes.
  21. Performs git clone of FreeSWITCH™.
  22. Performs bootstrap and configure.
  23. Adds FLITE to modules.conf.
  24. Performs make, make install, make install sounds, and make clean.
  25. If requested, launches FreeSWITCH™ to test.
  26. Opens web pages to FreeSWITCH™ information.

Logging

If all that is not enough to use this script here is a bonus: Output from most terminal commands are separated and placed into a folder created on the desktop using a date and time stamp. Each of the following commands are logged:

  • Install Homebrew
  • Install prerequisites
  • Download and install FreeSWITCH™ source
  • bootstrap command
  • configure command
  • make command
  • make install command
  • make install sounds command
  • make clean

     


Installing the OS X FreeSWITCH™ Installer

It's incredibly easy to install, just follow this step:

  1. Click on this link, OS X will automatically download and unzip the file:

    OS X FreeSWITCH Installer.zip

    Installer updated:

    October 3, 2015 added change ownership logic for /usr/local, change 10.9 Xcode 6 download, remove 10.8 and Xcode 5 support.

    November 5, 2014 for Xcode 6.1 and Yosemite support. November 22, 2014 change URLs.



Running the OS X FreeSWITCH™ Installer

Make sure to review the one-time Preparation steps first!

One-Time Security Prompts

If OS X is set to disallow Apps that are not from an identified developer you must open System Preferences –> Security & Privacy and under General set "Allow apps download from anywhere".

There is a one-time security prompt due to OS X's tight security because the script automates one keystroke (command-K in Terminal). The first time it is run OS X's will open System Preferences –> Security & Privacy and under Privacy unlock the lock and authorize AppleScript and/or the installer to allow this capability. This only occurs once.

Double-click the installer to start it. Just follow the prompts and answer a few questions!

You can perform other functions while the installer is running, just be careful not to type into a Terminal command issued by the installer.

xxx


Installation is Complete!

Continue at Installation and Setup on OS X - Installation is Complete.

 

  • No labels