安装python django wsgi

   ###install python2.7###
   11  cd /home/stephen/Desktop
   18  tar xvfj Python-2.7.2.tar.bz2
   20  cd Python-2.7.2
   30  ./configure
   33  make
   34  make install
   #test
   type 'python' for verifying


   ###install Django-1.3####
   49  tar xzvf Django-1.3.tar.gz
   50  cd Django-1.3
   52  python setup.py install
   #test
   >>> import django
   >>> print django.get_version()
   1.3


   ###install wsgi###
   #because the apache is installed through rpm, httpd-devel should be installed first.
   84  rpm -ivh httpd-devel-2.2.3-43.el5.i386.rpm apr-devel-1.2.7-11.el5_3.1.i386.rpm  apr-util-devel-1.2.7-11.el5.i386.rpm
   59  tar xvfz mod_wsgi-3.3.tar.gz
   60  cd mod_wsgi-3.3
   87  ./configure
   88  make
   89  make install

  
posted @ 2011-06-23 11:22  babykick  阅读(432)  评论(0编辑  收藏  举报