On Fri, Mar 28, 2008 at 1:17 PM, liquid_rails <[EMAIL PROTECTED]> wrote:
...
>  [EMAIL PROTECTED] cardemo]$ sudo rake ultrasphinx:index
>  (in /var/www/cardemo)
>
> $ indexer --config '/var/www/cardemo/config/ultrasphinx/
>  development.conf' --all
>  sh: indexer: command not found
>  [EMAIL PROTECTED] cardemo]$ which indexer
>  /usr/local/bin/indexer
...

sudo is probably running "rake ..." with a different PATH than exists
in your login shell. You'll need to make sure that the PATH used by
sudo includes /usr/local/bin. One way would be to modify root's shell
configuration file (usually /root/.bashrc). You could also make the
change universal by modifying one of the global configuration files
such as /etc/bashrc, /etc/bash.bashrc, /etc/environment, or something
else depending on your OS distribution.

Whatever approach you choose, you would end up adding something like:

PATH="$PATH:/usr/local/bin"

-John

-- 
John Parker
[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
-~----------~----~----~----~------~----~------~--~---

Reply via email to