{"id":86,"date":"2015-10-05T20:40:49","date_gmt":"2015-10-05T20:40:49","guid":{"rendered":"http:\/\/blogs.nrao.edu\/jmalone\/?p=86"},"modified":"2015-12-15T19:22:52","modified_gmt":"2015-12-15T19:22:52","slug":"how-to-fix-aips-under-osx-el-capitan","status":"publish","type":"post","link":"https:\/\/blogs.nrao.edu\/jmalone\/2015\/10\/05\/how-to-fix-aips-under-osx-el-capitan\/","title":{"rendered":"How to fix AIPS under OSX 10.11 &#8216;El Capitan&#8217;"},"content":{"rendered":"<p>The latest version of Mac OS X, code-named El Capitan, introduces a new feature called System Integrity Protection (SIP). SIP is designed to protect the core operating system files, as well as Apple-supplied applications, from tampering by malicious software. Unfortunately, as with most major OS changes, there is collateral damage in the form of application incompatibility.<\/p>\n<p>NRAO&#8217;s classic data reduction software, AIPS, has been found to have one of these incompatibilities. AIPS is unable to start properly on systems running OSX 10.11 due to a change in how the DYLD_LIBRARY_PATH environment variable is treated. This variable used to tell the system&#8217;s dynamic linker to &#8220;look here for additional libraries.&#8221; This behavior has security implications and is, therefore, restricted under 10.11.<\/p>\n<p>The workaround is to create symbolic links in one of the standard library paths to point to the necessary shared libraries for AIPS. I have created a shell script that will attempt to apply the workaround to a machine with AIPS installed on 10.11. To use it, you must first <strong>start bash<\/strong> (required &#8211; sorry CSH users) and then <strong>source your AIPS LOGIN.SH script<\/strong> so that this repair script knows where to find your AIPS installation. Here&#8217;s what it looks like when repairing my test system:<\/p>\n<blockquote>\n<pre>loonquawl:~ jmalone$ . \/usr\/local\/aips\/LOGIN.SH\r\nloonquawl:~ jmalone$ .\/fix_aips_elcap.sh\r\n\r\nThis script will attempt to configure an existing AIPS installation\r\nto work properly under OS X 10.11 \"El Capitan\". You will be prompted\r\nfor your password so that several commands can be run as root.\r\n\r\nPress enter to continue...\r\n\r\nPassword:\r\n\r\nThree shared libraries were linked to \/usr\/local\/lib. Your\r\ninstallation should now be fixed to operate under OS X 10.11.\r\n\r\nloonquawl:~ jmalone$\r\n<\/pre>\n<\/blockquote>\n<p>You must run this script as a user with administrative privileges, but do NOT run it as root or under sudo.<\/p>\n<p><a href=\"http:\/\/www.cv.nrao.edu\/~jmalone\/tools\/fix_aips_elcap.sh\">Download the script<\/a>.<\/p>\n<p><strong>UPDATES:<\/strong><\/p>\n<p>2015-12-07: Detect (and fix) broken or out-of-date XQuartz installations<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The latest version of Mac OS X, code-named El Capitan, introduces a new feature called System Integrity Protection (SIP). SIP is designed to protect the core operating system files, as well as Apple-supplied applications, from tampering by malicious software. Unfortunately, &hellip; <a class=\"more-link\" href=\"https:\/\/blogs.nrao.edu\/jmalone\/2015\/10\/05\/how-to-fix-aips-under-osx-el-capitan\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-86","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.nrao.edu\/jmalone\/wp-json\/wp\/v2\/posts\/86"}],"collection":[{"href":"https:\/\/blogs.nrao.edu\/jmalone\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.nrao.edu\/jmalone\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.nrao.edu\/jmalone\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.nrao.edu\/jmalone\/wp-json\/wp\/v2\/comments?post=86"}],"version-history":[{"count":4,"href":"https:\/\/blogs.nrao.edu\/jmalone\/wp-json\/wp\/v2\/posts\/86\/revisions"}],"predecessor-version":[{"id":108,"href":"https:\/\/blogs.nrao.edu\/jmalone\/wp-json\/wp\/v2\/posts\/86\/revisions\/108"}],"wp:attachment":[{"href":"https:\/\/blogs.nrao.edu\/jmalone\/wp-json\/wp\/v2\/media?parent=86"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.nrao.edu\/jmalone\/wp-json\/wp\/v2\/categories?post=86"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.nrao.edu\/jmalone\/wp-json\/wp\/v2\/tags?post=86"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}