Installing on Solaris

Nginx on Solaris
In general, installing on Solaris is the same as documented on the Install page.

Some Tips

 * Keep your  as minimal as possible while building (don't include things like ,  , etc.). This will help avoid weird dependency issues that may be difficult to track down at runtime.
 * On Solaris,  and friends are likely not YOUR friends. Avoid them like the plague when building, for your sanity and anyone who might have to clean up after you later.
 * If you need/want to use (the now-defunct) GCCFSS, be sure you are using 4.3.3 due to earlier versions not supporting Intel atomics used by nginx, causing build failures. (You probably don't want to use GCCFSS on OpenSolaris/Illumos/Solaris 11, as the provided GCC should be reasonably sane.)
 * If at all possible, use the  options to include the third-party stuff (such as OpenSSL and PCRE) instead of relying on the outdated Solaris-provided items. Don't use third-party binaries. Take the time to let nginx build what it needs. (See configuration notes below.)
 * Use GNU make, not Solaris . It lives in   on Solaris 10.
 * If you're moving from Sun/Oracle's Apache, or just want permissions-compatibility with it, use  as your user and group for nginx.
 * On Solaris 10 and OpenSolaris, you'll probably use  instead of   in the installation instructions. (Solaris 11 and illumos-based distributions use sudo, by default.)

Configuration tips

 * As stated above, use pristine sources for zlib/OpenSSL/PCRE on Solaris 10 or any other Solaris which has outdated versions. Assuming you keep your sources in, nginx will be in   so you can do things like   on the configure line. (Be sure to unpack the pristine sources first!)
 * If you use, everything related to nginx will end up installed under that prefix, making it easier to package and/or just deal with.