{"id":148,"date":"2022-04-29T10:09:56","date_gmt":"2022-04-29T10:09:56","guid":{"rendered":"https:\/\/www.sternwarte.uni-erlangen.de\/sixte\/?page_id=148"},"modified":"2023-06-12T19:21:51","modified_gmt":"2023-06-12T19:21:51","slug":"macos","status":"publish","type":"page","link":"https:\/\/www.sternwarte.uni-erlangen.de\/sixte\/macos\/","title":{"rendered":"macOS"},"content":{"rendered":"\n<h2><strong>Prerequisite<\/strong> Steps<\/h2>\n\n\n\n<p>We recommend to use the gcc, g++, and gfortran compilers of the GNU Compiler collection for the SIMPUT and SIXTE installation. For SIXTE, you will also need a recent version of the boost- and gsl-libraries. These packages can be installed via<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>brew install gcc boost gsl<\/code><\/pre>\n\n\n\n<p>if you are using the <strong>Homebrew<\/strong> package manager, or<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo port install gcc boost gsl<\/code><\/pre>\n\n\n\n<p>if you are using the <strong>MacPorts<\/strong> packet manager. We recommend using Homebrew.<\/p>\n\n\n\n<p>The following commands will then set up your environment properly for the installation:<\/p>\n\n\n\n<h3>Apple Silicon:<\/h3>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<p>In a <strong>C shell<\/strong> <strong>csh\/tcsh<\/strong> if you are using <strong>Homebrew<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>setenv CC \/usr\/bin\/clang\nsetenv CXX \/usr\/bin\/clang++\nsetenv FC \/opt\/homebrew\/bin\/gfortran-12<\/code><\/pre>\n\n\n\n<p>In a <strong>Bash shell (bash\/sh\/zsh)<\/strong> if you are using <strong>Homebrew<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>export CC=\/usr\/bin\/clang\nexport CXX=\/usr\/bin\/clang++\nexport FC=\/opt\/homebrew\/bin\/gfortran-12<\/code><\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<p>In a <strong>C shell csh\/tcsh<\/strong> if you are using <strong>MacPorts<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>setenv CC \/usr\/bin\/clang\nsetenv CXX \/usr\/bin\/clang++\nsetenv FC \/opt\/local\/bin\/gfortran-mp-12<\/code><\/pre>\n\n\n\n<p>In a <strong>Bash shell (bash\/sh\/zsh)<\/strong> if you are using <strong>MacPorts<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>export CC=\/usr\/bin\/clang\nexport CXX=\/usr\/bin\/clang++\nexport FC=\/opt\/local\/bin\/gfortran-mp-12<\/code><\/code><\/pre>\n<\/div>\n<\/div>\n\n\n\n<h3>Intel:<\/h3>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<p>In a <strong>C shell<\/strong> <strong>csh\/tcsh<\/strong> if you are using <strong>Homebrew<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>setenv CC \/usr\/local\/bin\/gcc-12\nsetenv CXX \/usr\/local\/bin\/g++-12\nsetenv FC \/usr\/local\/bin\/gfortran-12<\/code><\/pre>\n\n\n\n<p>In a <strong>Bash shell (bash\/sh\/zsh)<\/strong> if you are using <strong>Homebrew<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>export CC=\/usr\/local\/bin\/gcc-12\nexport CXX=\/usr\/local\/bin\/g++-12\nexport FC=\/usr\/local\/bin\/gfortran-12<\/code><\/pre>\n\n\n\n<p><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<p>In a <strong>C shell csh\/tcsh<\/strong> if you are using <strong>MacPorts<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>setenv CC \/opt\/local\/bin\/gcc-mp-12\nsetenv CXX \/opt\/local\/bin\/g++-mp-12\nsetenv FC \/opt\/local\/bin\/gfortran-mp-12<\/code><\/pre>\n\n\n\n<p>In a <strong>Bash shell (bash\/sh\/zsh)<\/strong> if you are using <strong>MacPorts<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>export CC=\/opt\/local\/bin\/gcc-mp-12\nexport CXX=\/opt\/local\/bin\/g++-mp-12\nexport FC=\/opt\/local\/bin\/gfortran-mp-12<\/code><\/code><\/pre>\n<\/div>\n<\/div>\n\n\n\n<p>You can then continue with the basic <a href=\"https:\/\/www.sternwarte.uni-erlangen.de\/sixte\/linux\/#Installing-SIMPUT\" data-type=\"URL\" data-id=\"https:\/\/www.sternwarte.uni-erlangen.de\/sixte\/linux\/#Installing-SIMPUT\">installation procedure<\/a> for SIMPUT and SIXTE.<\/p>\n\n\n\n<p>If you build from git, you might need to install libtool and autoconf.<\/p>\n\n\n\n<h2>Troubleshooting on macOS<\/h2>\n\n\n\n<ul><li>If the GSL library is not found in the configure step, you can specify the path directly by <code>--with-gsl-prefix=<em>gslpath<\/em><\/code> (usually \/usr\/local or \/opt\/homebrew\/Cellar for Homebrew or \/opt\/local for MacPorts).<\/li><li>If the boost library is not found, define the path with <code>--with-boost=<em>boostpath<\/em><\/code>, similar to GSL<\/li><li>Make sure that the environment variables for compiler options (CFLAGS, CXXFLAGS, FFLAGS, LDFLAGS) do not contain any interfering options and check the contents of the environment variable DYLD_LIBRARY_PATH. For a standard SIXTE installation, these variables are not necessary and can be unset before the installation.<\/li><li>If you encounter the problem: <code>ld: file not found: <em>path<\/em>\/libquadmath.0.dylib for architecture arm64<\/code> try running <code>autoreconf --install --force<\/code> before the configuration step. <code>Autotools<\/code> has to be installed for this.<\/li><li>If you have Mac OSX <strong>El Capitan<\/strong>, be sure to switch off the &#8220;System Integrity Protection&#8221; in order to ensure that the SIMPUT and SIXTE installation is working correctly (see <a rel=\"noreferrer noopener\" href=\"http:\/\/osxdaily.com\/2015\/10\/05\/disable-rootless-system-integrity-protection-mac-os-x\/\" target=\"_blank\">here<\/a> for more information on how to do this).<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Prerequisite Steps We recommend to use the gcc, g++, and gfortran compilers of the GNU Compiler collection for the SIMPUT and SIXTE installation. For SIXTE, you will also need a recent version of the boost- and gsl-libraries. These packages can be installed via if you are using the Homebrew package&#8230;<\/p>\n","protected":false},"author":1008,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/www.sternwarte.uni-erlangen.de\/sixte\/wp-json\/wp\/v2\/pages\/148"}],"collection":[{"href":"https:\/\/www.sternwarte.uni-erlangen.de\/sixte\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.sternwarte.uni-erlangen.de\/sixte\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.sternwarte.uni-erlangen.de\/sixte\/wp-json\/wp\/v2\/users\/1008"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sternwarte.uni-erlangen.de\/sixte\/wp-json\/wp\/v2\/comments?post=148"}],"version-history":[{"count":17,"href":"https:\/\/www.sternwarte.uni-erlangen.de\/sixte\/wp-json\/wp\/v2\/pages\/148\/revisions"}],"predecessor-version":[{"id":405,"href":"https:\/\/www.sternwarte.uni-erlangen.de\/sixte\/wp-json\/wp\/v2\/pages\/148\/revisions\/405"}],"wp:attachment":[{"href":"https:\/\/www.sternwarte.uni-erlangen.de\/sixte\/wp-json\/wp\/v2\/media?parent=148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sternwarte.uni-erlangen.de\/sixte\/wp-json\/wp\/v2\/categories?post=148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sternwarte.uni-erlangen.de\/sixte\/wp-json\/wp\/v2\/tags?post=148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}