librelist archives

« back to archive

Installation help

Installation help

From:
David Salgado
Date:
2013-03-10 @ 16:52
Hi there

I'm trying to get started with Photon, but the installation instructions
seem to be a bit out of date, on the page;

    http://photon-project.com/download

I'm trying to work through the process on a clean VM of Ubuntu 12.04
64-bit, and have hit a couple of problems. Some of these I managed to
figure out, but I'm stuck on the last one.

1. Mongrel2 has moved.

This command gives a 404 error;

    cd /home/vendors && wget
http://mongrel2.org/static/downloads/mongrel2-1.7.5.tar.bz2

It looks like it should be this;

    cd /home/vendors && wget
https://github.com/zedshaw/mongrel2/tarball/v1.8.0

...with the subsequent lines being something like this;

    tar xzvf v1.8.0
    cd zedshaw-mongrel2-bc721eb/ && make clean all
    cd zedshaw-mongrel2-bc721eb/ && make install
    ldconfig

2. xdebug

The '+lfs' is no longer needed in this line;

    echo 'zend_extension=/usr/lib/php5/20090626+lfs/xdebug.so' >
/etc/php5/conf.d/xdebug.ini

To avoid errors, it should be;

    echo 'zend_extension=/usr/lib/php5/20090626/xdebug.so' >
/etc/php5/conf.d/xdebug.ini


3. pecl_http seems to be installed by a previous step, so this step doesn't
seem to be necessary anymore;

    root@precise64:~# pecl install pecl_http
    pecl/pecl_http is already installed and is the same as the released
version 1.7.5


4. The real problem seems to be that this is out of date;

    pear install --alldeps photon/photon-beta

Trawling through the mailing list, it seems the real way to get Photon is
via the git repository;

    git clone git://projects.ceondo.com/photon.git

After doing that, I guess the self-test command is;

    scripts/hnu selftest

But, phpunit is not yet installed, so; (I'm not very familiar with pear, so
there is probably a far simpler way of doing this)

    pear channel-discover pear.symfony.com
    pear install phpunit/PHPUnit
    pear install phpunit/DbUnit
    pear install phpunit/PHPUnit_Selenium
    pear install phpunit/PHPUnit_Story

Now, I've reached the point where I'm getting this error;

    Failed opening required 'Symfony/Component/Yaml.php'

Looking in /usr/share/php I can see this file;

    /usr/share/php/Symfony/Component/Yaml/Yaml.php

So, I think the corresponding require should be
'Symfony/Component/Yaml/Yaml.php' but I can't find it.

Can anyone point me in the right direction so that I can run the Photon
test suite?

Kind regards

David