Archived Page
Archived Obsolete - No Longer Maintained
As of October 7, 2015, this page is no longer maintained by the original author and is marked as archived. It is replaced by:
About
This page describes methods of installing FreeSWITCH™ and its prerequisites on OS X without using Homebrew as per the Installation and Setup on OS X. This is for people who do not want to use Homebrew or for packages not provided by Homebrew. The Homebrew method is highly recommended since it saves a lot of time, is easy to update, and very easy to remove packages. The options currently illustrated here are:
- A script to install FreeSWITCH™ and required prerequisites
- Install Individual Packages
- A configure file used to “make” everything
Upgraded OS X or Xcode ?
If there are problems installing prerequisites check if the OS X release was upgraded, for instance from 10.7 to 10.8 or 10.8 to 10.9. Also check if Xcode was upgraded, for instance from Xcode 3 to 4, or 4 to 5. It was found that in some cases older upgraded systems had issues due to old parts of a prior OS X or Xcode still intact. In these cases a fresh OS X and Xcode install may required.
xxx
Prerequisites Previously Installed Differently?
First FreeSWITCH™?
If you’re installing for the first time please use Homebrew since it has worked every time for all OS X releases on this wiki.
Check Dates on This Page
This page is not updated as often as the main OS X wiki pages describing an installation using Homebrew.
xxx
Minimum Required Packages for OS X
In order to build FreeSWITCH™ on OS X the following packages must be installed first:
- autoconf - gnu autoconf utility.
- automake - gnu automake utility.
- libtool - gnu libtool utility. Starting with Lion Apple no longer ships automake with XCODE 4.3.
- pkg-config - many build functions invoke pkg-config
- ldns - Starting May 2014 FreeSWITCH™ requires ldns. Previous FreeSWITCH™ releases included this package, it is now a prerequisite.
- libjpeg - Some FreeSWITCH™ functions invoke SPANDSP, which invokes LIBJPEG. FreeSWITCH™ provides SPANDSP source but not LIBJPEG source.
- openssl - Starting Feb 2014 FreeSWITCH™ requires openssl. openssl is deprecated since OS X 10.7 Lion and not usable for FreeSWITCH™ in older OS X releases.
- curl - Starting Mar 2014 FreeSWITCH™ 1.4 requires libcurl. Previous FreeSWITCH™ releases included this package, it is now a prerequisite..
- pcre - Starting Mar 2014 FreeSWITCH™ 1.4 requires pcre. Previous FreeSWITCH™ releases included this package, it is now a prerequisite.
- sqlite - Starting Mar 2014 FreeSWITCH™ 1.4 requires sqlite. Previous FreeSWITCH™ releases included this package, it is now a prerequisite.
- speex - Starting Mar 2014 FreeSWITCH™ 1.4 requires libspeex. Previous FreeSWITCH™ releases included this package, it is now a prerequisite.
Install Using A Script
The script below contains code for downloading ldns but the ldns section was not tested yet. It is included here since ldns is required as of May 19 2014. It will be tested later.
The following script was tested March 19, 2014 on OSX 10.9.2, 10.8.5, and 10.7.5. It assumes that the /usr/local and /usr/local/src directories exists and the proper ownership security set as per the Create /usr Subdirectories Installation on OS X 10.9 Mavericks Create Directories Create /usr Subdirectories. Using this script allows easy removal of FreeSWITCH™ and installed packages. Read the comments for instructions and prompts. Of course, you can also cut/paste lines to run parts of the script in Terminal if desired.
Install Packages Individually
You can use the manual technique that requires locating, downloading and following instructions for each package. That requires several commands, knowledge about configuration, takes a lot of time, places programs in directories that are much harder to remove from, and harder to update. It didn't always go smoothly. When downloading, if there are multiple file extensions available, select the file ending in tar.gz if available. You should use the script above as a starting point.
If you're thinking about installing using this method, then later try Homebrew…. STOP! Some methods may make it difficult to remove them, and Homebrew will not fully install packages it already finds on the system. That strategy has been tested and it caused many problems. If you want to proceed, make sure to have a backup of your system before manually installing packages!
Please note this was not tested by me (Mario G) but was contributed by one of the developers. It may be of interest to some.
Since formatting a make file is tricky on the wiki the source can be found here. This provides the latest updates if the file is kept up-to-date by it’s author.
Cleanup
Delete installers, compressed files, and other files no longer needed.
MacPorts Packages
There are no plans to support MacPorts built prerequisites or FreeSWITCH™.