<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Macos on Shafiq Alibhai</title>
    <link>https://www.shafiq.in/zh/tags/macos/</link>
    <description>Recent content in Macos on Shafiq Alibhai</description>
    <generator>Hugo</generator>
    <language>zh-CN</language>
    <copyright>© 2009-2026 All rights reserved.</copyright>
    <lastBuildDate>Wed, 26 Jul 2023 11:30:03 +0000</lastBuildDate>
    <atom:link href="https://www.shafiq.in/zh/tags/macos/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How to install Postgresql Client using Homebrew</title>
      <link>https://www.shafiq.in/zh/blog/how-to-install-postgresql-client-using-homebrew/</link>
      <pubDate>Wed, 26 Jul 2023 11:30:03 +0000</pubDate>
      <guid>https://www.shafiq.in/zh/blog/how-to-install-postgresql-client-using-homebrew/</guid>
      <description>&lt;p&gt;Psql is a command-line interface for interacting with PostgreSQL, a powerful and open source relational database system. Brew is a package manager for macOS that makes it easy to install and manage software. Here are the steps to install psql with brew:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;First, install the brew package manager if you don&amp;rsquo;t have it already. You can do this by running the following command in your terminal:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/bin/bash -c &lt;span class=&#34;s2&#34;&gt;&amp;#34;&lt;/span&gt;&lt;span class=&#34;k&#34;&gt;$(&lt;/span&gt;curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh&lt;span class=&#34;k&#34;&gt;)&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;&#xA;&lt;li&gt;Second, update brew by running the following commands:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;brew doctor&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;brew update&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;&#xA;&lt;li&gt;Third, install libpq by running the command:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;brew install libpq&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Libpq is a library that contains psql and other PostgreSQL client utilities.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Fix casks with `depends_on` that reference pre-Mavericks</title>
      <link>https://www.shafiq.in/zh/blog/fix-casks-with-depends_on-that-reference-pre-mavericks/</link>
      <pubDate>Mon, 18 May 2020 10:01:16 +0000</pubDate>
      <guid>https://www.shafiq.in/zh/blog/fix-casks-with-depends_on-that-reference-pre-mavericks/</guid>
      <description>&lt;p&gt;If you get an error of the type &lt;code&gt;Error: Cask &#39;hex-fiend-beta&#39; definition is invalid: invalid &#39;depends_on macos&#39; value: &amp;quot;:lion&amp;quot;&lt;/code&gt;, where &lt;code&gt;hex-fiend-beta&lt;/code&gt; can be any cask name, and &lt;code&gt;:lion&lt;/code&gt; any macOS release name, run the following command:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/usr/bin/find &lt;span class=&#34;s2&#34;&gt;&amp;#34;&lt;/span&gt;&lt;span class=&#34;k&#34;&gt;$(&lt;/span&gt;brew --prefix&lt;span class=&#34;k&#34;&gt;)&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;/Caskroom/&amp;#34;&lt;/span&gt;*&lt;span class=&#34;s1&#34;&gt;&amp;#39;/.metadata&amp;#39;&lt;/span&gt; -type f -name &lt;span class=&#34;s1&#34;&gt;&amp;#39;*.rb&amp;#39;&lt;/span&gt; -print0 &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; /usr/bin/xargs -0 /usr/bin/perl -i -pe &lt;span class=&#34;s1&#34;&gt;&amp;#39;s/depends_on macos: \[.*?\]//gsm;s/depends_on macos: .*//g&amp;#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This will remove all &lt;code&gt;depends_on macos&lt;/code&gt; references of &lt;em&gt;installed&lt;/em&gt; casks.&lt;/p&gt;</description>
    </item>
    <item>
      <title>[solved] xcrun: error: active developer path (&#34;/Applications/Xcode.app/Contents/Developer&#34;) does not exist</title>
      <link>https://www.shafiq.in/zh/blog/solved-xcrun-error-active-developer-path-/applications/xcode.app/contents/developer-does-not-exist/</link>
      <pubDate>Thu, 06 Sep 2018 09:43:25 +0000</pubDate>
      <guid>https://www.shafiq.in/zh/blog/solved-xcrun-error-active-developer-path-/applications/xcode.app/contents/developer-does-not-exist/</guid>
      <description>&lt;p&gt;Error:&lt;/p&gt;&#xA;&lt;p&gt;xcrun: error: active developer path (&amp;quot;/Applications/Xcode.app/Contents/Developer&amp;quot;) does not exist&lt;br&gt;&#xA;Use &lt;code&gt;sudo xcode-select --switch path/to/Xcode.app&lt;/code&gt; to specify the Xcode that you wish to use for command line developer tools, or use &lt;code&gt;xcode-select --install&lt;/code&gt; to install the standalone command line developer tools.&lt;br&gt;&#xA;See &lt;code&gt;man xcode-select&lt;/code&gt; for more details.&lt;br&gt;&#xA;xcrun: error: active developer path (&amp;quot;/Applications/Xcode.app/Contents/Developer&amp;quot;) does not exist&lt;br&gt;&#xA;Use &lt;code&gt;sudo xcode-select --switch path/to/Xcode.app&lt;/code&gt; to specify the Xcode that you wish to use for command line developer tools, or use &lt;code&gt;xcode-select --install&lt;/code&gt; to install the standalone command line developer tools.&lt;br&gt;&#xA;See &lt;code&gt;man xcode-select&lt;/code&gt; for more details.&lt;/p&gt;</description>
    </item>
    <item>
      <title>A Simple Guide to Installing SSHPass on Ubuntu and macOS</title>
      <link>https://www.shafiq.in/zh/blog/a-simple-guide-to-installing-sshpass-on-ubuntu-and-macos/</link>
      <pubDate>Sun, 02 Sep 2018 10:33:49 +0000</pubDate>
      <guid>https://www.shafiq.in/zh/blog/a-simple-guide-to-installing-sshpass-on-ubuntu-and-macos/</guid>
      <description>&lt;h1 id=&#34;introduction&#34;&gt;Introduction&lt;a class=&#34;anchor&#34; href=&#34;#introduction&#34;&gt;#&lt;/a&gt;&lt;/h1&gt;&#xA;&lt;p&gt;SSHPass is a nifty little tool that lets you automate SSH login by bypassing the usual password prompt. While it&amp;rsquo;s super convenient for scripting, bear in mind that it&amp;rsquo;s not ideal for a multi-user setup due to security concerns. However, if you&amp;rsquo;re using it on your personal development machine, it&amp;rsquo;s pretty harmless.&lt;/p&gt;&#xA;&lt;h2 id=&#34;how-to-install-sshpass-on-ubuntu&#34;&gt;How to Install SSHPass on Ubuntu&lt;a class=&#34;anchor&#34; href=&#34;#how-to-install-sshpass-on-ubuntu&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;Installing SSHPass on Ubuntu is as straightforward as it gets. All you need to do is open up your terminal and run the following command:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
