Archive for 11月, 2008

Install RMagick on Mac X

报错信息如下:

jinguoli@MacBook:~$sudo gem install rmagick
Password:
Building native extensions. This could take a while…
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb install rmagick
checking for Ruby version >= 1.8.2… yes
checking for gcc… yes
checking for Magick-config… yes
checking for ImageMagick version >= 6.3.0… yes
checking for HDRI disabled version […]

Install postgresql psycopg2 for CentOS 5

[root@localhost ~]# axel2 http://initd.org/pub/software/psycopg/psycopg2-2.0.8.tar.gz
[root@localhost ~]# yum install postgresql-devel
[root@localhost ~]# tar xvf psycopg2-2.0.8.tar.gz
[root@localhost ~]# cd psycopg2-2.0.8
[root@localhost psycopg2-2.0.8]# python2.5 setup.py build
[root@localhost psycopg2-2.0.8]# python setup.py install
[root@localhost psycopg2-2.0.8]# python
Python 2.5.2 (r252:60911, Nov  7 2008, 19:14:29)
[GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
>>> import psycopg2
>>>