My postgres is installed by macports. So it’s located in /opt/local. When I try to install postgres ruby gem (because my postgres-pr stop working), I met exceptions. And after googling some blogs, I still can’t make it works. But I think Getting PostgreSQL running for Rails on a Mac is the correct way.
So I went to /Library/Ruby/Gems/1.8/gems/pg-0.7.9.2008.10.13 folder and run:
sudo extconf.rb –with-pgsql-include-dir=/opt/local/include/postgres83 –with-pgsql-lib-dir=/opt/local/lib/postgres83
the /opt/local…postgres83 is the header folder and the lib folder of postgres installed by macports.
And after that, just do:sudo makesudo make install
And it success. Hooray!
一块儿到来的还有一个Tp-Link的WL-841N的802.11n路由器,300Mbps的无限连接,评测的数据是可以达到100Mbps也就是我家有线网的速率。
型号是ST31500341AS,就是1500GB空间,375G单碟,4碟装,台式机硬盘。听说CC1G这个固件版本不是很好,我做外置硬盘倒是无所谓。
现在的Seagate使用了和WD一样的反装电路板,两年以来这个技术已经普及了。
装到盒子里面去。我使用的是WD的硬盘盒,实际上是拆机货。WD的外置盒子其实质量很好,没有访问的时候会自动断电休眠,还有个好处就是便宜。
控制芯片是目前高端盒子常见的Oxford semiconductors出的OX921S,这个盒子是三个里面最简单的,单USB。
他们叠放在我的桌子上就是这么个效果,就是那个破音箱上面的三个发光的小家伙。这个照片是上周日的,实际上硬盘还不是1.5T的,不过意思是一样的。

