where is the program file ?

Asked by Gergely Attila

Hi

A just installed the php5-symfony1.0 package on my ubuntu 8.10, but I can`t find the binary executable "symfony" the package does not contain.
Where is it ?
I can`t find any other package from repository which is for symfony.

Any suggestion ?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu symfony Edit question
Assignee:
No assignee Edit question
Solved by:
quantenemitter
Solved:
Last query:
Last reply:
Revision history for this message
Best quantenemitter (quantenemitter) said :
#1

I have no idea what symfony is. But nevertheless I think I can help here. I used packages.ubuntu.com and got that:

/usr/share/php/data/symfony/bin/symfony
/usr/share/php/data/symfony/skeleton/project/symfony

The first line could be the binary. If you can start symfony from the command line, the command "whereis symfony" could also help.

Revision history for this message
Gergely Attila (gergelya) said :
#2

Thx that was the binary.
I added in my PATH environment.
Now I get the following error message when I try to run the binary:

$ symfony --help

Fatal error: Uncaught exception 'Exception' with message 'Unable to find symfony libraries' in /usr/share/php/data/symfony/bin/symfony:34
Stack trace:
#0 {main}
  thrown in /usr/share/php/data/symfony/bin/symfony on line 34

Revision history for this message
Gergely Attila (gergelya) said :
#3

Here I found the answer:
https://lswiki.byu.edu/index.php?title=Symfony_Tutorial&diff=prev&oldid=8145

cd /usr/share/php/data/symfony/bin/
cp ./symfony ./symfony.backup
sed 's|@PEAR-DIR@|/usr/share/php|g' ./symfony.backup > ./symfony.tmp
sed 's|@DATA-DIR@|/usr/share/php/data|g ./symfony.tmp > ./symfony

Revision history for this message
Gergely Attila (gergelya) said :
#4

Thanks Thomas Lauckner, that solved my question.