Re: set environment Path variable
- From: dave+news002@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (Dave Gibson)
- Date: Mon, 21 Sep 2009 17:07:19 +0100
JRough <jlrough@xxxxxxxxx> wrote:
This question is from an earlier thread. I have a working php server
but it is not finding zend framework. I do not have a .profile in my
home directory it is missing. Can you tell me what to put in the Path
environment variable in .profile?
I think this is the location of the binary. The file name is
phpcups.so. The directory is:
/usr/lib/php/extensions/no-debug-non-zts-20060613/phpcups.so
That is probably a shared object (library) file, the error message:
/usr/bin/mypear/zend/zf.sh: line 44: php: command not found
indicates that the php command can't be found. Look for a file named
php under the directory in which you installed the php package. Once
you find the file, add the name of the directory containing it to your
path.
If the php command is found at /usr/lib/php/bin/php, the assignment
would look like this (at both the shell prompt and in ~/.profile):
PATH="$PATH:/usr/lib/php/bin" ; export PATH
I would really like zend framework to see php or php to see zend[...]
framework. I looked up some examples of path variables on Macs
and put them below but I don't understand them. My home directory
is /Users/jlrough.
Thanks,
export PATH=/mightyq/bin:/opt/local/bin:/opt/local/sbin:$PATH
export PATH=/opt/local/bin:/mightyq/bin:/opt/local/sbin:$PATH
export PATH=/opt/local/bin:/opt/local/sbin:$PATH:/mightyq/bin
PATH contains a colon-separated list of directories. When the shell
encounters a command that doesn't contain any slashes it takes each
directory named in $PATH in turn and builds a filename from it by
appending a slash and the command name. If the result exists and is
executable, the shell stops searching and tries to run the file.
As an example, if the PATH is set like this:
PATH=/Users/jlrough/bin:/usr/local/bin:/usr/bin:/bin ; export PATH
and the command "php" is entered, either at a prompt or in a script,
the shell will try to run one of:
1) /Users/jlrough/bin/php
2) /usr/local/bin/php
3) /usr/bin/php
4) /bin/php
Subdirectories of the directories named in $PATH are not searched.
.
- References:
- set environment Path variable
- From: JRough
- set environment Path variable
- Prev by Date: Re: File descriptor question
- Next by Date: Re: File descriptor question
- Previous by thread: set environment Path variable
- Next by thread: Check number of process
- Index(es):
Relevant Pages
|