Earlier today I wanted to install the Blitz templating engine on my brand new PHP5.4.
The docs say to do:
phpize
./configure
make install
However, make complains about safe_mode.h not being found and the compiling fails.
That's logical because safe_mode was removed from php 5.4.
There's an easy workaround: comment out or remove the #include "safe_mode.h" line from the blitz.c file and then run make install
Running the tests with run_tests.sh will show you everything works fine.
BTW, the stable version (0.6.10 at the time of this writing) won't compile at all, you'll need to install the development version (0.7.1.14) with PHP 5.4.
Affichage des articles dont le libellé est installation. Afficher tous les articles
Affichage des articles dont le libellé est installation. Afficher tous les articles
lundi 12 mars 2012
samedi 31 décembre 2011
Installing webistrano on Debian Squeeze 64bits
This is how *I* did it. By no means is this the perfect way, nor very probably how it should be done, but it worked for me.
As root:
1 activate default repositories
# vi /etc/apt/sources.list
add, if not already there:
deb http://ftp.debian.org/debian squeeze main contrib
deb-src http://ftp.debian.org/debian squeeze main contrib
2 update apt
# apt-get update
3 install the necessary packages
# apt-get install build-essential
# apt-get install ruby rubygems libmysql-ruby libmysqlclient-dev libdbd-mysql-ruby mysql-server unzip rake
4 install the required ruby gems
# gem install rake -v=0.8.7
# gem install rack -v=1.0.1
# gem install bundler
5 add the user you want webistrano to run as
# adduser webistrano
As the user you want webistrano (and capistrano) to run as:
1 get webistrano
webistrano$ wget -O webistrano.zip https://github.com/peritor/webistrano/zipball/master
2 unzip the file
webistrano$ unzip webistrano.zip
3 Follow the installation instructions from the official wiki:
webistrano$ cd peritor-webistrano-xxxxxxx/
webistrano$ cp config/webistrano_config.rb.sample config/webistrano_config.rb
--> edit at your convenience
webistrano$ cp config/database.yml.sample config/database.ym
--> edit at your convenience (mysql.socket is at /var/run/mysqld/mysqld.sock)
4 create database webistrano_{development|production|test} on MySQL server
5 edit your .profile file and add ruby and rubygems paths:
webistrano$ vi ~/.profile
PATH="$PATH:/usr/lib/ruby/1.8:/var/lib/gems/1.8/bin"
6 reload your profile:
webistrano$ . ../.profile
7 edit the Gemfile to tell it to use rake version 0.8.7:
webistrano$ vi Gemfile
gem "rake", "0.8.7"
8 install webistrano
webistrano$ bundle install
webistrano$ RAILS_ENV=development rake --trace db:migrate
9 Start webistrano
webistrano$ ruby script/server -d -p 3000 -e development
You should now be able to access the webistrano application on http://<hostname>:3000
Inscription à :
Articles (Atom)