<?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; Bsd</title>
	<atom:link href="http://www.nimab.org/tags/bsd/feed" rel="self" type="application/rss+xml" />
	<link>http://www.nimab.org</link>
	<description>穷困潦倒</description>
	<lastBuildDate>Mon, 29 Aug 2011 02:53:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>iphone 1.1.3/1.1.4 完美破解指南</title>
		<link>http://www.nimab.org/2008/03/15/29.html</link>
		<comments>http://www.nimab.org/2008/03/15/29.html#comments</comments>
		<pubDate>Fri, 14 Mar 2008 16:38:47 +0000</pubDate>
		<dc:creator>Kafeifei</dc:creator>
				<category><![CDATA[Bsd]]></category>
		<category><![CDATA[MacosX]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.nimab.org/2008/03/15/29.html</guid>
		<description><![CDATA[首先用itunes将iphone升级至1.1.3/1.1.4 然后运行ziphone激活，破解，解锁…… 安装openssh root登陆，密码:alpine 安全起见 #chmod -x /usr/bin/passwd 到这里生成密码，salt为/s，用它替换root密码（/etc/master.passwd） 然后移动 /Application /Library 到第二分区]]></description>
			<content:encoded><![CDATA[<p>首先用itunes将iphone升级至1.1.3/1.1.4<br />
然后运行<a href="http://www.verycd.com/groups/iphone/241292.topic">ziphone</a>激活，破解，解锁……<br />
安装openssh<br />
root登陆，密码:alpine<br />
安全起见 #chmod -x /usr/bin/passwd<br />
到<a href="http://javascript.internet.com/passwords/unix-crypt(3)-encryption.html">这里</a>生成密码，salt为/s，用它替换root密码（/etc/master.passwd）<br />
然后移动 /Application /Library 到第二分区</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nimab.org/2008/03/15/29.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Leopard 编译 universal php5</title>
		<link>http://www.nimab.org/2007/12/11/24.html</link>
		<comments>http://www.nimab.org/2007/12/11/24.html#comments</comments>
		<pubDate>Mon, 10 Dec 2007 17:02:19 +0000</pubDate>
		<dc:creator>Kafeifei</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[Bsd]]></category>
		<category><![CDATA[MacosX]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.nimab.org/2007/12/11/24.html</guid>
		<description><![CDATA[因为自带的php没有gd所以要重编 因为服务器用的是x86_64 httpd+php5所以要编 x86_64 因为自带的httpd+php是 universal ，所以要这样做 自带的httpd很好，所以不搞它了 参考: ppc就不要了 export MACOSX_DEPLOYMENT_TARGET=10.5 export ARCHFLAGS='-arch i386 -arch x86_64' export CFLAGS='-arch i386 -arch x86_64 -O3 -pipe' export CXXFLAGS='-arch i386 -arch x86_64 -O3 -pipe' export LDFLAGS='-arch i386 -arch x86_64 -bind_at_load' make时候可能出现这样的提示： gcc-4.0: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags 在 configure 的时候加上 [...]]]></description>
			<content:encoded><![CDATA[<p>因为自带的php没有gd所以要重编<br />
因为服务器用的是x86_64 httpd+php5所以要编 x86_64<br />
因为自带的httpd+php是 universal ，所以要这样做<br />
自带的httpd很好，所以不搞它了<br />
<strong>参考:</strong><br />
ppc就不要了</p>
<blockquote><p>
export MACOSX_DEPLOYMENT_TARGET=10.5<br />
export ARCHFLAGS='-arch i386 -arch x86_64'<br />
export CFLAGS='-arch i386 -arch x86_64 -O3 -pipe'<br />
export CXXFLAGS='-arch i386 -arch x86_64 -O3 -pipe'<br />
export LDFLAGS='-arch i386 -arch x86_64 -bind_at_load'
</p></blockquote>
<p>make时候可能出现这样的提示：</p>
<blockquote><p>gcc-4.0: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags</p></blockquote>
<p>在 configure 的时候加上 --disable-dependency-tracking</p>
<blockquote><p>
'./configure' \<br />
'--prefix=/usr' \<br />
'--with-config-file-path=/private/etc' \<br />
'--sysconfdir=/private/etc' \<br />
'--with-apxs2=/usr/sbin/apxs' \<br />
'--with-iconv=/usr/local' \<br />
'--with-mhash=/usr/local' \<br />
'--with-gettext=/usr/local' \<br />
'--with-mysql=/usr/local' \<br />
'--with-mysqli=/usr/local/bin/mysql_config' \<br />
'--with-pdo-mysql=/usr/local' \<br />
'--with-openssl=/usr' \<br />
'--with-zlib=/usr' \<br />
'--with-curl=/usr' \<br />
'--with-gd' \<br />
'--with-png-dir=/usr/X11' \<br />
'--with-jpeg-dir=/usr/local' \<br />
'--with-freetype-dir=/usr/X11' \<br />
'--with-xpm-dir=/usr/X11' \<br />
'--enable-gd-native-ttf' \<br />
'--enable-mbstring' \<br />
'--enable-sockets' \
</p></blockquote>
<p>已有的库就不重装了，只需自己安装 gawk, libiconv, mhash, gettext, mysql, jpeg<br />
需要特别注意：系统自带的liviconv有问题，需要自己编一份到/usr/local(小心不要覆盖以前的，否则可能连sh都不能执行了)，php在configure时就算指定了 --with-iconv=/usr/local 它还是首先找到 /usr/include/iconv.h ,而且 --help 里只提到 --with-iconv-dir=，应该使用 --with-iconv=<br />
解决方法：</p>
<blockquote><p>
sh#mv /usr/include/iconv.h /usr/include/iconv.h.bak
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.nimab.org/2007/12/11/24.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>都是dash惹的祸</title>
		<link>http://www.nimab.org/2007/03/06/18.html</link>
		<comments>http://www.nimab.org/2007/03/06/18.html#comments</comments>
		<pubDate>Tue, 06 Mar 2007 10:10:04 +0000</pubDate>
		<dc:creator>Kafeifei</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[Bsd]]></category>
		<category><![CDATA[dash]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MacosX]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.nimab.org/2007/03/06/18.html</guid>
		<description><![CDATA[困扰我一个春天的问题！ Ubuntu 某天下了一个nerolinux，然后安装 安装失败，提示某脚本出错，看上去是语法错误 出错嘛就删除了哦 结果删除失败，提示同样的错误 导致使用apt-get任何时候都提示这个错误 几经搞整以后造成“新立得”无法正常运行 准备好光盘准备重装了 同时继续寻找希望，搜编google没有正解 其中错误包括： dpkg (子进程)：无法执行新的 post-removal script: No such file or directory dpkg: 作下列清理工作时发生错误: 子进程·post-removal script·返回了错误号·2 在处理时有错误发生： ------------------------------------- 软件包nerolinux 需要重新安装，但是我无法找到相应的安装文件。 仔细看了一下错误文件 /var/lib/dpkg/info/nerolinux.xxx 打开一看，语法好像不太寻常，我看到了 function 字样 再看头部 #!/bin/sh 改为 #!/bin/bash 后解决问题 ls -l /bin/sh 这个东西是链接到 dash 而不是 bash的 自从ubuntu 6.10 开始就是这样，很让人头痛，很多脚本运行有问题 见过有人为了装一个软件先把 bash->sh 装完了再 dash->sh 回去 妈B的，不改回去了，也没见哪个脚本运行不正常的！ 最后，不知道这个dash是啥东东，本来想大骂一顿的，不过…… [...]]]></description>
			<content:encoded><![CDATA[<p>困扰我一个春天的问题！<br />
Ubuntu<br />
某天下了一个nerolinux，然后安装<br />
安装失败，提示某脚本出错，看上去是语法错误<br />
出错嘛就删除了哦<br />
结果删除失败，提示同样的错误<br />
导致使用apt-get任何时候都提示这个错误<br />
几经搞整以后造成“新立得”无法正常运行<br />
准备好光盘准备重装了<br />
同时继续寻找希望，搜编google没有正解<br />
其中错误包括：</p>
<blockquote><p>
dpkg (子进程)：无法执行新的 post-removal script: No such file or directory<br />
dpkg: 作下列清理工作时发生错误:<br />
子进程·post-removal script·返回了错误号·2<br />
在处理时有错误发生：<br />
-------------------------------------<br />
软件包nerolinux 需要重新安装，但是我无法找到相应的安装文件。
</p></blockquote>
<p>仔细看了一下错误文件<br />
/var/lib/dpkg/info/nerolinux.xxx<br />
打开一看，语法好像不太寻常，我看到了 function 字样<br />
再看头部 #!/bin/sh<br />
改为 #!/bin/bash 后解决问题<br />
ls -l /bin/sh 这个东西是链接到 dash 而不是 bash的<br />
自从ubuntu 6.10 开始就是这样，很让人头痛，很多脚本运行有问题<br />
见过有人为了装一个软件先把 bash->sh 装完了再 dash->sh 回去</p>
<p>妈B的，不改回去了，也没见哪个脚本运行不正常的！<br />
最后，不知道这个dash是啥东东，本来想大骂一顿的，不过…… 还是算了……</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nimab.org/2007/03/06/18.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>在MacosX安装fontconfig-2遇到的问题</title>
		<link>http://www.nimab.org/2006/09/11/3.html</link>
		<comments>http://www.nimab.org/2006/09/11/3.html#comments</comments>
		<pubDate>Mon, 11 Sep 2006 07:28:15 +0000</pubDate>
		<dc:creator>Kafeifei</dc:creator>
				<category><![CDATA[Bsd]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MacosX]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.nimab.org/wp/?p=3</guid>
		<description><![CDATA[make install 遇到这样的提示 dyld: Symbol not found: _FSPathMakeRef Referenced from: /usr/local/lib/libfreetype.6.dylib Expected in: flat namespace 实际上是运行 fc-cache 时出现的问题，实际上就是freetype没有安装好，只要重新安装一次freetype，在 ./configure 加上一句 --with-old-mac-fonts 然后 make clean;make;make install 搞定。 我是看这里找到的解决方法： http://mail-index.netbsd.org/pkgsrc-bugs/2006/06/28/0019.html]]></description>
			<content:encoded><![CDATA[<p>make install 遇到这样的提示</p>
<blockquote><p>
dyld: Symbol not found: _FSPathMakeRef<br />
Referenced from: /usr/local/lib/libfreetype.6.dylib<br />
Expected in: flat namespace
</p></blockquote>
<p>实际上是运行 fc-cache 时出现的问题，实际上就是freetype没有安装好，只要重新安装一次freetype，在 ./configure 加上一句 --with-old-mac-fonts 然后 make clean;make;make install 搞定。</p>
<p>我是看这里找到的解决方法：<br />
<a href="http://mail-index.netbsd.org/pkgsrc-bugs/2006/06/28/0019.html">http://mail-index.netbsd.org/pkgsrc-bugs/2006/06/28/0019.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nimab.org/2006/09/11/3.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

