{"id":3748,"date":"2016-07-12T12:33:17","date_gmt":"2016-07-12T11:33:17","guid":{"rendered":"https:\/\/blog.ed.gs\/?p=3748"},"modified":"2018-08-10T15:28:19","modified_gmt":"2018-08-10T14:28:19","slug":"linode-cli-homebrew-fix-file-not-found-installation","status":"publish","type":"post","link":"https:\/\/ed.gs\/2016\/07\/12\/linode-cli-homebrew-fix-file-not-found-installation\/","title":{"rendered":"Linode-CLI HomeBrew – Fix File Not Found During Installation"},"content":{"rendered":"

This site and all of my others are hosted on a lovely 12GB Linode instance in London. As I’ve been messing around with API’s more and more recently, I discovered that Linode has made their own command line interface utility that’s available in part via OS X (macOS) HomeBrew<\/a>.<\/p>\n

Unfortunately, as of writing this, their brew tap adds a ruby file that declares it needing an old version of\u00a0CPAN-Meta-YAML-0.012.tar.gz that doesn’t exist anymore and you’ll get something along the lines of:<\/p>\n

Error: Failed to download resource \"linode-cli--CPAN::Meta::YAML\"<\/code>
\nDownload failed: http:\/\/www.cpan.org\/authors\/id\/D\/DA\/DAGOLDEN\/CPAN-Meta-YAML-0.012.tar.gz<\/code><\/p>\n

The fix is to edit the ruby file with a later version of the file that does exist, along with its SHA1 hash underneath.<\/p>\n

 <\/p>\n

The file to edit is located in\u00a0\/usr\/local\/Library\/Taps\/linode\/homebrew-cli\/linode-cli.rb. Scroll down to:<\/p>\n

resource 'CPAN::Meta::YAML' do<\/code><\/p>\n

 <\/p>\n

Edit the below URL from:<\/p>\n

url 'http:\/\/www.cpan.org\/authors\/id\/D\/DA\/DAGOLDEN\/CPAN-Meta-YAML-0.012.tar.gz'<\/code><\/p>\n

to:<\/p>\n

url 'http:\/\/www.cpan.org\/authors\/id\/D\/DA\/DAGOLDEN\/CPAN-Meta-YAML-0.018.tar.gz'<\/code><\/p>\n

 <\/p>\n

Edit the below SHA1 from:<\/p>\n

sha1 'a8dcaccedf8ebf56667289f12d76c05bff8379da'<\/code><\/p>\n

to:<\/p>\n

sha1 'e540fc207c0ace3041abfec2c90cf54d510ce9fa'<\/code><\/p>\n

 <\/p>\n

Do the same for the following, from:<\/p>\n

resource 'Parse::CPAN::Meta' do<\/code>
\n\u00a0 url 'http:\/\/www.cpan.org\/authors\/id\/D\/DA\/DAGOLDEN\/Parse-CPAN-Meta-1.4414.tar.gz'<\/code>
\n\u00a0 sha1 'a6499fe30e87cfcf71a0f77adb4083bbf4b0429e'<\/code>
\nend<\/code><\/p>\n

to:<\/p>\n

resource 'Parse::CPAN::Meta' do<\/code>
\n\u00a0 url 'http:\/\/www.cpan.org\/authors\/id\/D\/DA\/DAGOLDEN\/Parse-CPAN-Meta-1.4422.tar.gz'<\/code>
\n\u00a0 sha1 '3f96ecfbeab892d6c309aa5d7510d3df190f50b3'<\/code>
\nend`<\/p>\n

 <\/p>\n

And again, from:<\/p>\n

resource 'CPAN::Meta::Requirements' do<\/code>
\n\u00a0 url 'http:\/\/www.cpan.org\/authors\/id\/D\/DA\/DAGOLDEN\/CPAN-Meta-Requirements-2.125.tar.gz'<\/code>
\n\u00a0 sha1 '1d0d20024c531354094ca9a1609fad694b8db7d3'<\/code>
\nend<\/code><\/p>\n

to:<\/p>\n

resource 'CPAN::Meta::Requirements' do<\/code>
\n\u00a0 url 'http:\/\/www.cpan.org\/authors\/id\/D\/DA\/DAGOLDEN\/CPAN-Meta-Requirements-2.140.tar.gz'<\/code>
\n\u00a0 sha1 '8dad15fa876859a175680550fe68dc09e9f3c118'<\/code>
\nend<\/code><\/p>\n

 <\/p>\n

And again, from:<\/p>\n

resource 'CPAN::Meta' do<\/code>
\n\u00a0 url 'http:\/\/www.cpan.org\/authors\/id\/D\/DA\/DAGOLDEN\/CPAN-Meta-2.140640.tar.gz'<\/code>
\n\u00a0 sha1 'f612221e15f654c2a5994699873a0881e71c3c3c'<\/code>
\nend<\/code><\/p>\n

to:<\/p>\n

resource 'CPAN::Meta' do<\/code>
\n\u00a0 url 'http:\/\/www.cpan.org\/authors\/id\/D\/DA\/DAGOLDEN\/CPAN-Meta-2.150005.tar.gz'<\/code>
\n\u00a0 sha1 '2d75030bc177dedc98cc2cbd396d98943da5f86b<\/code>
\nend<\/code><\/p>\n

 <\/p>\n

And again, from:<\/p>\n

resource 'Perl::OSType' do<\/code>
\n\u00a0 url 'http:\/\/www.cpan.org\/authors\/id\/D\/DA\/DAGOLDEN\/Perl-OSType-1.007.tar.gz'<\/code>
\n\u00a0 sha1 'b04781569df225919440d1ca4124c835457c8910'<\/code>
\nend<\/code><\/p>\n

to:<\/p>\n

resource 'Perl::OSType' do<\/code>
\n\u00a0 url 'http:\/\/www.cpan.org\/authors\/id\/D\/DA\/DAGOLDEN\/Perl-OSType-1.010.tar.gz'<\/code>
\n\u00a0 sha1 '55f74bc6b5462d6a628f396166150f683c34a039'<\/code>
\nend<\/code><\/p>\n

 <\/p>\n

Last one, from:<\/p>\n

resource 'ExtUtil' do<\/code>
\n\u00a0 url 'http:\/\/www.cpan.org\/authors\/id\/A\/AM\/AMBS\/ExtUtils\/ExtUtils-CBuilder-0.280216.tar.gz'<\/code>
\n\u00a0 sha1 'f13c42bbe82ed3e1d99649624c10f3da3c171c13'<\/code>
\nend<\/code><\/p>\n

to:<\/p>\n

resource \u2018ExtUtil\u2019 do<\/code>
\n\u00a0 url \u2018http:\/\/www.cpan.org\/authors\/id\/A\/AM\/AMBS\/ExtUtils-CBuilder-0.280224.tar.gz\u2019<\/code>
\n\u00a0 sha1 \u20185dc79083f031fcb2d1e989e0bc00526885d851f7\u2019<\/code>
\nend<\/code><\/p>\n

Save the file and try again. Hopefully, Linode will fix this shortly, they also need to update the ruby file to use sha256 also, I may do this in the future if I’m ever utterly bored.<\/p>\n","protected":false},"excerpt":{"rendered":"

This site and all of my others are hosted on a lovely 12GB Linode instance in London. As I’ve been messing around with API’s more and more recently, I discovered that Linode has made their own command line interface utility that’s available in part via OS X (macOS) HomeBrew. Unfortunately, as of writing this, their […]<\/p>\n","protected":false},"author":2,"featured_media":3834,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false},"categories":[15,40],"tags":[],"yoast_head":"\nLinode-CLI HomeBrew - Fix File Not Found During Installation - E<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ed.gs\/2016\/07\/12\/linode-cli-homebrew-fix-file-not-found-installation\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linode-CLI HomeBrew - Fix File Not Found During Installation - E\" \/>\n<meta property=\"og:description\" content=\"This site and all of my others are hosted on a lovely 12GB Linode instance in London. As I’ve been messing around with API’s more and more recently, I discovered that Linode has made their own command line interface utility that’s available in part via OS X (macOS) HomeBrew. Unfortunately, as of writing this, their […]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ed.gs\/2016\/07\/12\/linode-cli-homebrew-fix-file-not-found-installation\/\" \/>\n<meta property=\"og:site_name\" content=\"E\" \/>\n<meta property=\"article:published_time\" content=\"2016-07-12T11:33:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-08-10T14:28:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/static.ed.gs\/wp-content\/uploads\/2016\/07\/gratisography-334H.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2048\" \/>\n\t<meta property=\"og:image:height\" content=\"1365\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Ed\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ed\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ed.gs\/2016\/07\/12\/linode-cli-homebrew-fix-file-not-found-installation\/\",\"url\":\"https:\/\/ed.gs\/2016\/07\/12\/linode-cli-homebrew-fix-file-not-found-installation\/\",\"name\":\"Linode-CLI HomeBrew - Fix File Not Found During Installation - E\",\"isPartOf\":{\"@id\":\"https:\/\/ed.gs\/#website\"},\"datePublished\":\"2016-07-12T11:33:17+00:00\",\"dateModified\":\"2018-08-10T14:28:19+00:00\",\"author\":{\"@id\":\"https:\/\/ed.gs\/#\/schema\/person\/d775615f2296ad0129fa3ea66346c628\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ed.gs\/2016\/07\/12\/linode-cli-homebrew-fix-file-not-found-installation\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ed.gs\/#website\",\"url\":\"https:\/\/ed.gs\/\",\"name\":\"E\",\"description\":\"automation, consultancy, project management, web\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ed.gs\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/ed.gs\/#\/schema\/person\/d775615f2296ad0129fa3ea66346c628\",\"name\":\"Ed\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/ed.gs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4fe1dfaed09e6bdceb557d3008f5cc47?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4fe1dfaed09e6bdceb557d3008f5cc47?s=96&d=mm&r=g\",\"caption\":\"Ed\"},\"url\":\"https:\/\/ed.gs\/author\/ed\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linode-CLI HomeBrew - Fix File Not Found During Installation - E","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ed.gs\/2016\/07\/12\/linode-cli-homebrew-fix-file-not-found-installation\/","og_locale":"en_GB","og_type":"article","og_title":"Linode-CLI HomeBrew - Fix File Not Found During Installation - E","og_description":"This site and all of my others are hosted on a lovely 12GB Linode instance in London. As I’ve been messing around with API’s more and more recently, I discovered that Linode has made their own command line interface utility that’s available in part via OS X (macOS) HomeBrew. Unfortunately, as of writing this, their […]","og_url":"https:\/\/ed.gs\/2016\/07\/12\/linode-cli-homebrew-fix-file-not-found-installation\/","og_site_name":"E","article_published_time":"2016-07-12T11:33:17+00:00","article_modified_time":"2018-08-10T14:28:19+00:00","og_image":[{"width":2048,"height":1365,"url":"https:\/\/static.ed.gs\/wp-content\/uploads\/2016\/07\/gratisography-334H.jpg","type":"image\/jpeg"}],"author":"Ed","twitter_misc":{"Written by":"Ed","Estimated reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/ed.gs\/2016\/07\/12\/linode-cli-homebrew-fix-file-not-found-installation\/","url":"https:\/\/ed.gs\/2016\/07\/12\/linode-cli-homebrew-fix-file-not-found-installation\/","name":"Linode-CLI HomeBrew - Fix File Not Found During Installation - E","isPartOf":{"@id":"https:\/\/ed.gs\/#website"},"datePublished":"2016-07-12T11:33:17+00:00","dateModified":"2018-08-10T14:28:19+00:00","author":{"@id":"https:\/\/ed.gs\/#\/schema\/person\/d775615f2296ad0129fa3ea66346c628"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ed.gs\/2016\/07\/12\/linode-cli-homebrew-fix-file-not-found-installation\/"]}]},{"@type":"WebSite","@id":"https:\/\/ed.gs\/#website","url":"https:\/\/ed.gs\/","name":"E","description":"automation, consultancy, project management, web","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ed.gs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/ed.gs\/#\/schema\/person\/d775615f2296ad0129fa3ea66346c628","name":"Ed","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/ed.gs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4fe1dfaed09e6bdceb557d3008f5cc47?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4fe1dfaed09e6bdceb557d3008f5cc47?s=96&d=mm&r=g","caption":"Ed"},"url":"https:\/\/ed.gs\/author\/ed\/"}]}},"_links":{"self":[{"href":"https:\/\/ed.gs\/wp-json\/wp\/v2\/posts\/3748"}],"collection":[{"href":"https:\/\/ed.gs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ed.gs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ed.gs\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ed.gs\/wp-json\/wp\/v2\/comments?post=3748"}],"version-history":[{"count":0,"href":"https:\/\/ed.gs\/wp-json\/wp\/v2\/posts\/3748\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ed.gs\/wp-json\/wp\/v2\/media\/3834"}],"wp:attachment":[{"href":"https:\/\/ed.gs\/wp-json\/wp\/v2\/media?parent=3748"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ed.gs\/wp-json\/wp\/v2\/categories?post=3748"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ed.gs\/wp-json\/wp\/v2\/tags?post=3748"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}