> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/server/server-management/install-and-upgrade-mariadb/compiling-mariadb-from-source/legacy-guides/building-mariadb-on-solaris-and-opensolaris.md).

# Building MariaDB on Solaris and OpenSolaris

The following two articles should help you get your Solaris machine prepared to build MariaDB (just ignore the parts about installing buildbot):

* [Buildbot Setup for Solaris Sparc](/docs/server/reference/product-development/server-development/tools/buildbot/setup/buildbot-setup-for-solaris-sparc.md)
* [Buildbot Setup for Solaris x86](/docs/server/reference/product-development/server-development/tools/buildbot/setup/buildbot-setup-for-solaris-x86.md)

## Notes

* The BUILD dir contains various scripts for compiling MariaDB on Solaris. The `BUILD/compile-solaris-amd64` and `BUILD/compile-solaris-amd64-debug` are probably the most useful.
* The scripts do not play nice with non-bash shells such as the Korn Shell (ksh). So if your `/bin/sh` is pointing at `ksh` or `ksh93`, you'll want to change it so that it points at bash.

<sub>*This page is licensed: CC BY-SA / Gnu FDL*</sub>

{% @marketo/form formId="4316" %}
