So you have a Solaris box now… what do you need to do to install Asterisk?
If you dont already have it, get pkg-get and install it
a) download it from blastwave.org/pkg-get.php
b) install it "pkgadd -d pkg_get.pkg"
c) add /opt/csw/bin to your path
c) update the pkg_get cache “pkg_get -U”
Install Subversion with pkg_get
"pkg_get -i subversion
Install fileutils with pkg_get (this package has ginstall in it which you will need later)
“pkg_get -i fileutils”
check out the asterisk sources
"svn co svn.digium.com/svn/asterisk/trunk asterisk"
cd to the newly checked out asterisk directory and edit the Makefile to point install to ginstall. (install included with solaris is not compatible with the install asterisk expects to see)
using your favorite editor change INSTALL=install to INSTALL=ginstall
around line 318 of the Main Makefile, change the reference to
"-lncurses" to “-lcurses”
if needed add /usr/sfw/bin to your path, thats where gcc lives by default in Solaris 10 (dont use the gcc4 that sun distributes I dont know what they did to it, but its busted)
use gmake to build and install asterisk as normal
"gmake && gmake install && gmake samples"
(note: make included with solaris is not exactly 100% syntax compatible with gnu make so be sure to use gmake)
Now you have asterisk installed…
Some things like safe_asterisk will not work as expected as they are built to target Linux based systems, and asterisk will not build a 64bit system without some pretty extensive tweaks to the Makefiles…
You may also run across a few modules that wont build correctly… just turn them off and let me know which ones they are so we can get them patched to work on solaris…
Some things like Zaptel wont work anytime in the near future as there is no zap hardware support on solaris
Augmentations to this welcome, and maybe one day sooner or later we can have install vs ginstall detection