{"id":15852,"date":"2019-06-04T17:38:46","date_gmt":"2019-06-04T17:38:46","guid":{"rendered":"https:\/\/www.bartbusschots.ie\/s\/?p=15852"},"modified":"2019-06-04T17:38:46","modified_gmt":"2019-06-04T17:38:46","slug":"crypthsxkpasswd-on-macos-filehomedir-workaround","status":"publish","type":"post","link":"https:\/\/www.bartbusschots.ie\/s\/2019\/06\/04\/crypthsxkpasswd-on-macos-filehomedir-workaround\/","title":{"rendered":"Crypt::HSXKPasswd on MacOS (File::HomeDir workaround)"},"content":{"rendered":"<p>Due to a problem with the <code>File::HomeDir<\/code> Perl module on recent versions of MacOS, the usual one-step instructions for installing <code>Crypt::HSXKPasswd<\/code> from CPAN don&#8217;t work on Macs ATM (June 2019).<\/p>\n<p>TL;DR<\/p>\n<pre style=\"crayon:false\">\r\nsudo cpan -f -I File::HomeDir\r\nsudo cpan Crypt::HSXKPasswd\r\n<\/pre>\n<p><!--more--><\/p>\n<p>The <code>hsxkpasswd<\/code> terminal command that ships with <code>Crypt::HSXKPasswd<\/code> uses the <code>File::HomeDir<\/code> module to locate <code>.hsxkpasswdrc<\/code> files. The aspects of this module used by <code>Crypt::HSXKPasswd<\/code> appear to still work, but the module fails some tests while installing, so a force-install is needed.<\/p>\n<p>Because <code>Crypt::HSXKPasswd<\/code> specifies <code>File::HomeDir<\/code> as a dependency, and because <code>File::HomeDir<\/code> fails tests on MacOS ATM, installing the module as part of the installation of <code>Crypt::HSXKPasswd<\/code> will cause the installation of <code>Crypt::HSXKPasswd<\/code> to fail.<\/p>\n<p>The easiest way to get around these problems is to force-install <code>File::HomeDir<\/code> before installing <code>Crypt::HSXKPasswd<\/code>. This can be done with the <code>-i<\/code> and <code>-f<\/code> flags to the <code>cpan<\/code> command:<\/p>\n<pre style=\"crayon:false\">\r\nsudo cpan -f -I File::HomeDir\r\n<\/pre>\n<p>With <code>File::HomeDir<\/code> now installed, <code>Crypt::HSXKPasswd<\/code> will install with the usual simple CPAN command:<\/p>\n<pre style=\"crayon:false\">\r\nsudo cpan Crypt::HSXKPasswd\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Due to a problem with the File::HomeDir Perl module on recent versions of MacOS, the usual one-step instructions for installing Crypt::HSXKPasswd from CPAN don&#8217;t work on Macs ATM (June 2019). TL;DR sudo cpan -f -I File::HomeDir sudo cpan Crypt::HSXKPasswd<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[12,440],"tags":[410,549,267],"series":[],"class_list":["post-15852","post","type-post","status-publish","format-standard","hentry","category-computers-tech","category-tech-projects","tag-hsxkpasswd","tag-macos","tag-perl"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p7t9xK-47G","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/posts\/15852","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/comments?post=15852"}],"version-history":[{"count":1,"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/posts\/15852\/revisions"}],"predecessor-version":[{"id":15853,"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/posts\/15852\/revisions\/15853"}],"wp:attachment":[{"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/media?parent=15852"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/categories?post=15852"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/tags?post=15852"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/series?post=15852"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}