{"id":9,"date":"2005-05-16T14:35:29","date_gmt":"2005-05-16T18:35:29","guid":{"rendered":"http:\/\/blogs.law.harvard.edu\/rlucastemp\/2005\/05\/16\/fix-compiling-swi-prolog-on-mac-os"},"modified":"2005-05-16T14:35:29","modified_gmt":"2005-05-16T18:35:29","slug":"fix-compiling-swi-prolog-on-mac-os-x-102","status":"publish","type":"post","link":"https:\/\/archive.blogs.harvard.edu\/rlucastemp\/2005\/05\/16\/fix-compiling-swi-prolog-on-mac-os-x-102\/","title":{"rendered":"FIX: Compiling SWI-Prolog on Mac OS X 10.2"},"content":{"rendered":"<p><a name='a72'><\/a><\/p>\n<p>SWI-Prolog is available as prepackaged binaries for Mac OS X 10.3+, but<br \/>\nnot for 10.2.&nbsp; If you try and install the 10.3 binary package, you<br \/>\nwill get errors (at least, I did).&nbsp; The answer is to compile from<br \/>\nsource.&nbsp; You are probably compile-savvy if you are looking to<br \/>\ninstall a Prolog interpreter, but if not, it&#8217;s a fairly painless<br \/>\n.\/configure, make, make install process.<\/p>\n<p>1. However, the docs warn that you&#8217;ll want readline and a number of<br \/>\nother libraries installed.&nbsp; There are some binary packages on the<br \/>\nSWI-Prolog site.&nbsp; If you want to use those, and you don&#8217;t have any<br \/>\nother versions of the libraries, so be it &#8212; but I would recommend<br \/>\nusing Fink instead, so that you can install the most up to date<br \/>\nversions.<\/p>\n<p>2. Especially if using Fink, be sure to alert the .\/configure script to<br \/>\nthe locations by including LDFLAGS=&#8221;-I \/sw\/include&#8221; and CFLAGS=&#8221;-L<br \/>\n\/sw\/lib&#8221; (or wherever).<\/p>\n<p>For me, all it took was pointing the configure script to the \/sw tree and it compiled with no further questions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SWI-Prolog is available as prepackaged binaries for Mac OS X 10.3+, but not for 10.2.&nbsp; If you try and install the 10.3 binary package, you will get errors (at least, I did).&nbsp; The answer is to compile from source.&nbsp; You are probably compile-savvy if you are looking to install a Prolog interpreter, but if not, [&hellip;]<\/p>\n","protected":false},"author":1180,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-9","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/archive.blogs.harvard.edu\/rlucastemp\/wp-json\/wp\/v2\/posts\/9","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/archive.blogs.harvard.edu\/rlucastemp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/archive.blogs.harvard.edu\/rlucastemp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/rlucastemp\/wp-json\/wp\/v2\/users\/1180"}],"replies":[{"embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/rlucastemp\/wp-json\/wp\/v2\/comments?post=9"}],"version-history":[{"count":0,"href":"https:\/\/archive.blogs.harvard.edu\/rlucastemp\/wp-json\/wp\/v2\/posts\/9\/revisions"}],"wp:attachment":[{"href":"https:\/\/archive.blogs.harvard.edu\/rlucastemp\/wp-json\/wp\/v2\/media?parent=9"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/rlucastemp\/wp-json\/wp\/v2\/categories?post=9"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/rlucastemp\/wp-json\/wp\/v2\/tags?post=9"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}