This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » support » Installation and setup » Bash Command Not Found
Bash Command Not Found [message #48336] Sun, 23 March 2008 20:13 Go to next message
nshiell  is currently offline nshiell
Messages: 9
Registered: February 2008
Junior Member
Hi guyts; I'm following the tutorial here: -
http://www.symfony-project.org/askeet/1_0/1

I have run the line:
pear install symfony/symfony
That line went ok.

When I type the line: -
symfony -V
I get
-bash: symfony: command not found

What have I missed out what does "symfony" relate to an alias? if so to what?
Re: Bash Command Not Found [message #48340 is a reply to message #48336 ] Sun, 23 March 2008 23:36 Go to previous messageGo to next message
PurpleFrog  is currently offline PurpleFrog
Messages: 20
Registered: March 2008
Location: Paris
Junior Member
try "whereis symfony"
to see if it is on your's system


---PurpleFrog
Lost everywhere
Re: Bash Command Not Found [message #48383 is a reply to message #48336 ] Mon, 24 March 2008 13:23 Go to previous messageGo to next message
nshiell  is currently offline nshiell
Messages: 9
Registered: February 2008
Junior Member
Hi I have typed in what u have said, this is what i get: -
Err... what should I do now?

nicholas@neptune:/usr/bin$ whereis symfony
symfony: /opt/lampp/bin/symfony
nicholas@neptune:/usr/bin$ symfony -V
-bash: symfony: command not found
nicholas@neptune:/usr/bin$ /opt/lampp/bin/symfony -V
/usr/bin/env: php: No such file or directory
Re: Bash Command Not Found [message #48389 is a reply to message #48383 ] Mon, 24 March 2008 14:47 Go to previous messageGo to next message
jillelaine  is currently offline jillelaine
Messages: 228
Registered: January 2008
Location: West Coast
Faithful Member
If have installed symfony via PEAR, you can type:
pear config-show

you will see your PEAR configuration, which will tell you where the PEAR executables directory is located. Partial results of my pear config-show:
...
Remote Configuration File      remote_config    <not set>
PEAR executables directory     bin_dir          /home/natrain/symf/bin_dir
PEAR documentation directory   doc_dir          /home/natrain/symf/php_dir/doc_dir
...

The PEAR executables directory is what you want. In my case, my PEAR executables directory is /home/natrain/symf/bin_dir, and sure enough, if I go to that directory:
[natrain@tornado /]$ cd /home/natrain/symf/bin_dir
[natrain@tornado bin_dir]$ ls -al
total 12
drwxr-xr-x  2 natrain natrain 4096 Mar  9 10:11 .
drwxr-xr-x  4 natrain natrain 4096 Mar  9 10:08 ..
-rwxr-xr-x  1 natrain natrain  954 Mar  9 10:11 symfony
[natrain@tornado bin_dir]$ symfony -V
symfony version 1.0.11
[natrain@tornado bin_dir]$

Once you install your symfony project, you will have a copy of the symfony executable at the root of your project directory...so you can run your symfony commands from there.
Re: Bash Command Not Found [message #48416 is a reply to message #48336 ] Mon, 24 March 2008 21:27 Go to previous messageGo to next message
nshiell  is currently offline nshiell
Messages: 9
Registered: February 2008
Junior Member
Right I typed in: -
pear config-show

And I got:
PEAR executables directory bin_dir /opt/lampp/bin



So I typed in: -
/opt/lampp/bin/symfony -V

And I get: -
/usr/bin/env: php: No such file or directory

Err whats happening?
Re: Bash Command Not Found [message #48428 is a reply to message #48416 ] Tue, 25 March 2008 00:23 Go to previous messageGo to next message
jillelaine  is currently offline jillelaine
Messages: 228
Registered: January 2008
Location: West Coast
Faithful Member
Can you cd to /opt/lampp/bin? What is in the directory? Do you see the symfony executable? If so, is it executable (permissions on the file)?

If you don't see the symfony executable, then I question whether symfony is properly installed. Do you see the rest of symfony's files in your PEAR data directory?

Have you read this chapter?
http://www.symfony-project.org/book/1_0/03-Running-Symfony

Best of luck!

[Updated on: Tue, 25 March 2008 00:26]

Re: Bash Command Not Found [message #48515 is a reply to message #48428 ] Wed, 26 March 2008 06:27 Go to previous messageGo to next message
PurpleFrog  is currently offline PurpleFrog
Messages: 20
Registered: March 2008
Location: Paris
Junior Member
/usr/bin/env: php: No such file or directory
wow, php is not installed in your system path and only in /opt ("which php" or "whereis php" will output /opt/lampp/bin/php).



[Updated on: Wed, 26 March 2008 10:06]


---PurpleFrog
Lost everywhere
Re: Bash Command Not Found [message #48516 is a reply to message #48336 ] Wed, 26 March 2008 06:42 Go to previous messageGo to next message
PurpleFrog  is currently offline PurpleFrog
Messages: 20
Registered: March 2008
Location: Paris
Junior Member
Maybe the solution is to add all lampp /bin directories in your system path. I know that you have to do that under xp with xampp.
see: http://trac.symfony-project.com/wiki/WindowsXPDevelopmentEnv ironment
"""
4. Finally, in the Environment Variables window, highlight the path variable in the Systems Variable section and click edit. Add or modify the path lines with the paths you wish the computer to access. Each different directory is separated with a semicolon as shown below:

C:\Program Files;C:\Winnt;C:\Winnt\System32

You want to add the following (make sure you have no spaces before or after semicolons:

C:\Program Files\xampp\php;C:\Program Files\xampp\mysql\bin;
"""


---PurpleFrog
Lost everywhere
Re: Bash Command Not Found [message #48522 is a reply to message #48516 ] Wed, 26 March 2008 09:53 Go to previous messageGo to next message
PurpleFrog  is currently offline PurpleFrog
Messages: 20
Registered: March 2008
Location: Paris
Junior Member
and under linux it will be:
export PATH=$PATH:/opt/lampp/bin


---PurpleFrog
Lost everywhere
Re: Bash Command Not Found [message #81808 is a reply to message #48522 ] Tue, 14 July 2009 08:43 Go to previous message
shiva  is currently offline shiva
Messages: 16
Registered: June 2009
Location: bangalore
Junior Member
PurpleFrog wrote on Wed, 26 March 2008 14:23

and under linux it will be:
export PATH=$PATH:/opt/lampp/bin



thanks PurpleFrog Smile


shiva
Bangalore
Previous Topic:CLI Not working : Solved!
Next Topic:APACHE server keeps crashing
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software