<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title> &#187; mac</title>
	<atom:link href="http://www.liguosong.com/category/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.liguosong.com</link>
	<description></description>
	<lastBuildDate>Tue, 08 May 2018 01:02:19 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.2</generator>
		<item>
		<title>xcrun: error: invalid active developer path</title>
		<link>http://www.liguosong.com/2017/11/24/xcrun-error-invalid-active-developer-path/</link>
		<comments>http://www.liguosong.com/2017/11/24/xcrun-error-invalid-active-developer-path/#comments</comments>
		<pubDate>Fri, 24 Nov 2017 02:04:24 +0000</pubDate>
		<dc:creator>lgs</dc:creator>
				<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://www.liguosong.com/?p=633</guid>
		<description><![CDATA[在mac terminal执行如下命令 go get -u github.com/beego/bee 出现如 [...]]]></description>
				<content:encoded><![CDATA[<p>在mac terminal执行如下命令</p>
<pre class="brush:other">go get -u github.com/beego/bee</pre>
<p>出现如下错误</p>
<pre class="brush:other">xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun</pre>
<p>可能是由于xcode问题造成的，可在终端中执行如下命令</p>
<pre class="brush:other">xcode-select --install</pre>
<p>会出现如下截图，点击安装</p>
<p><a href="http://www.liguosong.com/wp-content/uploads/2017/11/417876-20170113182417822-1549874205.png"><img class="alignnone size-full wp-image-634" alt="417876-20170113182417822-1549874205" src="http://www.liguosong.com/wp-content/uploads/2017/11/417876-20170113182417822-1549874205.png" width="461" height="176" /></a></p>
<p>然后在执行刚才的命令试试~~</p>
]]></content:encoded>
			<wfw:commentRss>http://www.liguosong.com/2017/11/24/xcrun-error-invalid-active-developer-path/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mac brew 常用命令</title>
		<link>http://www.liguosong.com/2017/03/01/mac-brew-%e5%b8%b8%e7%94%a8%e5%91%bd%e4%bb%a4/</link>
		<comments>http://www.liguosong.com/2017/03/01/mac-brew-%e5%b8%b8%e7%94%a8%e5%91%bd%e4%bb%a4/#comments</comments>
		<pubDate>Wed, 01 Mar 2017 03:30:17 +0000</pubDate>
		<dc:creator>lgs</dc:creator>
				<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://www.liguosong.com/?p=612</guid>
		<description><![CDATA[查看brew的帮助 brew –help 安装软件 brew install git 卸载软件 brew un [...]]]></description>
				<content:encoded><![CDATA[<p>查看brew的帮助</p>
<pre class="brush:bash">brew –help</pre>
<p>安装软件</p>
<pre class="brush:bash">brew install git</pre>
<p>卸载软件</p>
<pre class="brush:bash">brew uninstall git</pre>
<p>搜索软件</p>
<pre class="brush:bash">brew search git</pre>
<p>显示已经安装软件列表</p>
<pre class="brush:bash">brew list</pre>
<p>更新软件，把所有的Formula目录更新，并且会对本机已经安装并有更新的软件用*标明。</p>
<pre class="brush:bash">brew update</pre>
<p>更新某具体软件</p>
<pre class="brush:bash">brew upgrade git</pre>
<p>删除程序，单个软件删除和所有程序老版删除</p>
<pre class="brush:bash">brew cleanup git 
brew cleanup</pre>
<p>查看那些已安装的程序需要更新</p>
<pre class="brush:bash">brew outdated</pre>
<p>显示包依赖</p>
<pre class="brush:bash">brew deps *</pre>
<p>添加更多仓库，默认情况下tap 假设这些仓库来源于github，但又不局限于它。</p>
<p>不带参数的话，将会列出当前已经tapped 的仓库，比如：</p>
<pre class="brush:other">brew tap</pre>
<p>添加具体的源</p>
<pre class="brush:other">brew tap homebrew/php</pre>
<p>删除具体的源</p>
<pre class="brush:other">brew untap homebrew/php</pre>
<p>brew自检</p>
<pre class="brush:other">brew doctor</pre>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.liguosong.com/2017/03/01/mac-brew-%e5%b8%b8%e7%94%a8%e5%91%bd%e4%bb%a4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>brew install php56</title>
		<link>http://www.liguosong.com/2015/11/04/brew-install-php56/</link>
		<comments>http://www.liguosong.com/2015/11/04/brew-install-php56/#comments</comments>
		<pubDate>Wed, 04 Nov 2015 07:43:47 +0000</pubDate>
		<dc:creator>lgs</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.liguosong.com/?p=529</guid>
		<description><![CDATA[Dupes brew tap homebrew/dupes 加入版本 brew tap homebrew/ve [...]]]></description>
				<content:encoded><![CDATA[<p>Dupes</p>
<pre class="brush:bash">brew tap homebrew/dupes</pre>
<p>加入版本</p>
<pre class="brush:bash">brew tap homebrew/versions</pre>
<p>加入PHP</p>
<pre class="brush:bash">brew tap homebrew/homebrew-php</pre>
<p>列出php5.6的选项</p>
<pre class="brush:bash">brew options php56</pre>
<p>好了，开始安装吧，go</p>
<pre class="brush:bash">brew install php56</pre>
<p>在安装的时候，没有顺利的安装成功，碰到倒了如下错误。</p>
<pre class="brush:bash"> wrong number of arguments (3 for 0..2)</pre>
<p>这个错误猜测可能是因为之前已经有安装过的PHP版本，后来把这个给删掉就好了。<a href="http://www.liguosong.com/2015/11/04/error-failed-to-update-tap-josegonzalezphp/">删除方法点击这里</a></p>
<p>安装完成之后，记得设置php的lib目录，否则在cli的模式下不能使用最新的。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.liguosong.com/2015/11/04/brew-install-php56/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error: Failed to update tap: josegonzalez/php</title>
		<link>http://www.liguosong.com/2015/11/04/error-failed-to-update-tap-josegonzalezphp/</link>
		<comments>http://www.liguosong.com/2015/11/04/error-failed-to-update-tap-josegonzalezphp/#comments</comments>
		<pubDate>Wed, 04 Nov 2015 06:57:16 +0000</pubDate>
		<dc:creator>lgs</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.liguosong.com/?p=526</guid>
		<description><![CDATA[最近很久没有更新brew了，刚才执行了一下 brew update 结果出现了如下错误： Error: Fai [...]]]></description>
				<content:encoded><![CDATA[<p>最近很久没有更新brew了，刚才执行了一下</p>
<pre class="brush:bash">brew update</pre>
<p>结果出现了如下错误：</p>
<pre class="brush:bash">Error: Failed to update tap: josegonzalez/php</pre>
<p>错误原因是因为现在php的源发生了变更，所以这里出现了无法更新的问题。解决方案是可以把这个源给删掉。</p>
<pre class="brush:bash">brew untap josegonzalez/php</pre>
<p>当然，删掉之后，需要增加新的源，看一下<a href="http://www.liguosong.com/2015/11/04/brew-install-php56/">brew 升级 php56</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.liguosong.com/2015/11/04/error-failed-to-update-tap-josegonzalezphp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mac install wget</title>
		<link>http://www.liguosong.com/2015/01/08/mac-install-wget/</link>
		<comments>http://www.liguosong.com/2015/01/08/mac-install-wget/#comments</comments>
		<pubDate>Thu, 08 Jan 2015 13:36:06 +0000</pubDate>
		<dc:creator>lgs</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://www.liguosong.com/?p=473</guid>
		<description><![CDATA[刚才想用wget下载一个文件，结果发现wget命令找不到了。去bin目录下，没有找到。记得原来用过这个命令，不 [...]]]></description>
				<content:encoded><![CDATA[<p>刚才想用wget下载一个文件，结果发现wget命令找不到了。去bin目录下，没有找到。记得原来用过这个命令，不知道怎么就突然没了。。那就重新安装吧。</p>
<pre class="brush:bash">curl -O http://ftp.gnu.org/gnu/wget/wget-1.13.4.tar.gz
tar -xzvf wget-1.13.4.tar.gz
cd wget-1.13.4
./configure --with-ssl=openssl
make
sudo make install</pre>
<p>如果上面的文件不能下载，可以点击这个连接 <a href="http://www.liguosong.com/wp-content/uploads/2015/01/wget-1.13.4.tar.gz">wget-1.13.4.tar</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.liguosong.com/2015/01/08/mac-install-wget/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>升级mac系统到Yosemite，太坑了。。。</title>
		<link>http://www.liguosong.com/2014/10/27/%e5%8d%87%e7%ba%a7mac%e7%b3%bb%e7%bb%9f%e5%88%b0yosemite%ef%bc%8capache%e7%ab%99%e7%82%b9%e9%85%8d%e7%bd%ae%e5%a4%b1%e6%95%88/</link>
		<comments>http://www.liguosong.com/2014/10/27/%e5%8d%87%e7%ba%a7mac%e7%b3%bb%e7%bb%9f%e5%88%b0yosemite%ef%bc%8capache%e7%ab%99%e7%82%b9%e9%85%8d%e7%bd%ae%e5%a4%b1%e6%95%88/#comments</comments>
		<pubDate>Mon, 27 Oct 2014 02:02:01 +0000</pubDate>
		<dc:creator>lgs</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://www.liguosong.com/?p=436</guid>
		<description><![CDATA[刚刚把mac系统升级了。开机之后，发现本地站点都不能访问了，以为是hosts问题，查看hosts文件，里面添加 [...]]]></description>
				<content:encoded><![CDATA[<p>刚刚把mac系统升级了。开机之后，发现本地站点都不能访问了，以为是hosts问题，查看hosts文件，里面添加的站点都存在。然后查看一下apache，重启了apache。能够访问了。却奇怪的发现，站点都返回了Its work。晕。。</p>
<p>难倒我添加的那些站点配置文件不存在了？经查看，配置文件存在。那是哪里除了问题？应该是这些站点配置，没有起作用。</p>
<p>去看apache的配置文件。还真是这个问题。我估计是mac系统升级，导致apache的配置文件重置了。随后发现，很多配置文件全部都失效了。php的配置文件也不能用了。。</p>
<p>唉，系统不能随便升级啊。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.liguosong.com/2014/10/27/%e5%8d%87%e7%ba%a7mac%e7%b3%bb%e7%bb%9f%e5%88%b0yosemite%ef%bc%8capache%e7%ab%99%e7%82%b9%e9%85%8d%e7%bd%ae%e5%a4%b1%e6%95%88/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
