Toujours sur le Mac Book Intel , installation du server LightTPD.
La procedure d’install. a ete reprise avec succes sur Hivelogic
Installation du module FastCGI :
curl -O http://www.fastcgi.com/dist/fcgi-2.4.0.tar.gz
tar xzvf fcgi-2.4.0.tar.gz
cd fcgi-2.4.0
./configure –prefix=/usr/local
make
sudo make install
Installation des Ruby bindings pour FastCGI:
curl -O http://sugi.nemui.org/pub/ruby/fcgi/ruby-fcgi-0.8.6.tar.gz
tar xzvf ruby-fcgi-0.8.6.tar.gz
cd ruby-fcgi-0.8.6
/usr/local/bin/ruby install.rb config –prefix=/usr/local
/usr/local/bin/ruby install.rb setup
sudo /usr/local/bin/ruby install.rb install
cd ..
Nous aurons besoin d’installer le GEM FastCGI:
La commande est on ne peut plus simple:
sudo gem install fcgi
PCRE:
Avant de pouvoir compiler LightTPD il faut installer PCRE (une librairie pour les regular expressions a la Perl)
url -O ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-6.6.tar.gz
tar xzvf pcre-6.6.tar.gz
cd pcre-6.6
./configure –prefix=/usr/local CFLAGS=-O1
make
sudo make install
Note : CFLAGS=-O1 est utilise pour les Mac Intel
LightTPD:
Enfin compiler et installer le webserver LightTPD.
curl -O http://lighttpd.net/download/lighttpd-1.4.13.tar.gz
tar xzvf lighttpd-1.4.13.tar.gz
cd lighttpd-1.4.13
./configure –prefix=/usr/local –with-pcre=/usr/local
make
sudo make install
Test LightTPD with a freshly new Rails application :
$>:cd railsprojects
$>:rails myapp
$>cd myapp
$>:script/server
=> Booting lighttpd (use ’script/server webrick’ to force WEBrick)
=> config/lighttpd.conf not found, copying from /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/configs/lighttpd.conf
=> Rails application started on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server (see config/lighttpd.conf for options)

No comments yet
Comments feed for this article