{"id":676,"date":"2017-05-19T21:49:14","date_gmt":"2017-05-19T13:49:14","guid":{"rendered":"https:\/\/www.techcoil.com\/blog\/?p=676"},"modified":"2023-01-28T11:42:41","modified_gmt":"2023-01-28T03:42:41","slug":"installing-octave-on-my-macbook-via-brew","status":"publish","type":"post","link":"https:\/\/www.techcoil.com\/blog\/installing-octave-on-my-macbook-via-brew\/","title":{"rendered":"Installing Octave on my MacBook via Homebrew"},"content":{"rendered":"<p>Andrew Ng's <a href=\"https:\/\/imp.i384100.net\/9WmaYE\" rel=\"nofollow noopener\" target=\"_blank\">Machine Learning course on Coursera<\/a> brought about the need for me to install Octave on my MacBook. Since I had only two days before I could submit my first Octave assignment without any penalty, I decided to use the simplest method to get Octave running on my MacBook.<\/p>\n<p>This post documents the steps that I took to install Octave on my MacBook via <a href=\"https:\/\/brew.sh\/\" target=\"_blank\" rel=\"noopener\">Homebrew<\/a>.<\/p>\n<h2>Getting a copy of Homebrew on my MacBook<\/h2>\n<p>To get a copy of Homebrew on my MacBook, I opened a terminal instance and typed in the following command:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n\/usr\/bin\/ruby -e &quot;$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/master\/install)&quot;\r\n<\/pre>\n<h2>Installing XQuartz<\/h2>\n<p>The next step that I did was to install <a href=\"https:\/\/www.xquartz.org\/\" target=\"_blank\" rel=\"noopener\">XQuartz<\/a> on my MacBook. To install XQuartz on my MacBook, I downloaded the <a href=\"https:\/\/dl.bintray.com\/xquartz\/downloads\/XQuartz-2.7.11.dmg\" target=\"_blank\" rel=\"noopener\">XQuartz .dmg file<\/a> to my filesystem, double-clicked on the file and followed the instructions given by the installation wizard. <\/p>\n<h2>Brewing Octave and its dependencies via Homebrew<\/h2>\n<p>Once I had installed XQuartz, I proceeded to run the following brew commands to get Octave and its dependencies running on my MacBook:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nbrew tap homebrew\/science\r\nbrew update &amp;&amp; brew upgrade\r\nbrew install gcc\r\nbrew install fltk\r\nbrew install gnuplot\r\n<\/pre>\n<p>With that, I was able to start working on my first assignment and complete it before the deadline.<\/p>\n\n      <ul id=\"social-sharing-buttons-list\">\n        <li class=\"facebook\">\n          <a href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fwp.me%2Fp245TQ-aU\" target=\"_blank\" role=\"button\" rel=\"nofollow\">\n            <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/Facebook.png\" alt=\"Facebook icon\"> Share\n          <\/a>\n        <\/li>\n        <li class=\"twitter\">\n          <a href=\"https:\/\/twitter.com\/intent\/tweet?text=&url=https%3A%2F%2Fwp.me%2Fp245TQ-aU&via=Techcoil_com\" target=\"_blank\" role=\"button\" rel=\"nofollow\">\n          <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/Twitter.png\" alt=\"Twitter icon\"> Tweet\n          <\/a>\n        <\/li>\n        <li class=\"linkedin\">\n          <a href=\"https:\/\/www.linkedin.com\/shareArticle?mini=1&title=&url=https%3A%2F%2Fwp.me%2Fp245TQ-aU&source=https:\/\/www.techcoil.com\" target=\"_blank\" role=\"button\" rel=\"nofollow\">\n          <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/linkedin.png\" alt=\"Linkedin icon\"> Share\n          <\/a>\n        <\/li>\n        <li class=\"pinterest\">\n          <a href=\"https:\/\/pinterest.com\/pin\/create\/button\/?url=https%3A%2F%2Fwww.techcoil.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F676&description=\" class=\"pin-it-button\" target=\"_blank\" role=\"button\" rel=\"nofollow\" count-layout=\"horizontal\">\n          <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/Pinterest.png\" alt=\"Pinterest icon\"> Save\n          <\/a>\n        <\/li>\n      <\/ul>\n    ","protected":false},"excerpt":{"rendered":"<p>Andrew Ng&#8217;s <a href=\"https:\/\/imp.i384100.net\/9WmaYE\" target=\"_blank\" rel=\"noopener\">Machine Learning course on Coursera<\/a> brought about the need for me to install Octave on my MacBook. Since I had only two days before I could submit my first Octave assignment without any penalty, I decided to use the simplest method to get Octave running on my MacBook.<\/p>\n<p>This post documents the steps that I took to install Octave on my MacBook via <a href=\"https:\/\/brew.sh\/\" target=\"_blank\" rel=\"noopener\">Homebrew<\/a>.<\/p>\n","protected":false},"author":1,"featured_media":1269,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"footnotes":""},"categories":[4],"tags":[415,416,414,195],"jetpack_featured_media_url":"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/Octave-Logo.gif","jetpack_shortlink":"https:\/\/wp.me\/p245TQ-aU","jetpack-related-posts":[],"jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/posts\/676"}],"collection":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/comments?post=676"}],"version-history":[{"count":0,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/posts\/676\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/media\/1269"}],"wp:attachment":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/media?parent=676"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/categories?post=676"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/tags?post=676"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}