Re: PATH problem

2008-11-10 Thread Jerry McAllister
On Mon, Nov 10, 2008 at 12:08:05PM +0100, Albert Shih wrote:

 Hi all
 
 I've PATH problem with a perl package (I don't knwon anything about
 perl).
 
 I run rt (3.8) under apache22 + mod_perl2 and on some p5 librairie I've got
 message like 
 
 Command 'dot' not found in /bin, /usr/bin at 
 /usr/local/lib/perl5/site_perl/5.8.8/GraphViz.pm 
 
 and yes «dot» is not in /bin or /usr/bin but it's in
 
   /usr/local/bin
 
 So...how can I tell  who ?(maybe www)  to try to find «dot» in 
 /usr/local/bin

Whenever you use some command or address some file in a script or within a 
program, you should use the full path - starting with '/' so instead of 
lcalling it 'd' in the script or program, call it '/usr/local/bin/dot'

You can also explicitly add /usr/local/bin to your path and/or your
script's path.  Something like

set path=$path:/usr/local/bin
or set 
path=/bin:/usr/bin:/usr/local/bin:/usr/local/lib/perl5/site_perl/5.8.8/GraphViz.pm

or whatever you want the path to be.

The syntax may vary some between different shells.

jerry

 
 Regards.
 -- 
 Albert SHIH
 SIO batiment 15
 Observatoire de Paris Meudon
 5 Place Jules Janssen
 92195 Meudon Cedex
 Heure local/Local time:
 Lun 10 nov 2008 12:05:08 CET
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PATH problem

2008-11-10 Thread Albert Shih
 Le 10/11/2008 à 11:10:02-0500, Jerry McAllister a écrit
 On Mon, Nov 10, 2008 at 12:08:05PM +0100, Albert Shih wrote:
 
  Hi all
  
 
 Whenever you use some command or address some file in a script or within a 
 program, you should use the full path - starting with '/' so instead of 
 lcalling it 'd' in the script or program, call it '/usr/local/bin/dot'
 
 You can also explicitly add /usr/local/bin to your path and/or your
 script's path.  Something like
 
 set path=$path:/usr/local/bin
 or set 
 path=/bin:/usr/bin:/usr/local/bin:/usr/local/lib/perl5/site_perl/5.8.8/GraphViz.pm
 
 or whatever you want the path to be.
 
 The syntax may vary some between different shells.

OK.

ButI don't write any problem.

Maybe my question is not very clear

The p5 package work in shell, because the PATH is in the shell. 

But when I use the application throught the web it's not working. But I
don't known how to tell apache ? mod_perl ? the PATH. 


And I don't want to change the perl package because that's mean on every
update I must make that little modification (event I don't known where to make
that modification). That's mean the day I'm in vacation the web application
can be broken if my collegue make a update.


Regards.
-- 
Albert SHIH
SIO batiment 15
Observatoire de Paris Meudon
5 Place Jules Janssen
92195 Meudon Cedex
Téléphone : 01 45 07 76 26
Heure local/Local time:
Lun 10 nov 2008 21:30:25 CET
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PATH problem

2008-11-10 Thread Mel
On Monday 10 November 2008 21:36:43 Albert Shih wrote:

 But when I use the application throught the web it's not working. But I
 don't known how to tell apache ? mod_perl ? the PATH.

Apache.
Check the shell script /usr/local/sbin/envvars. In short, any file 
in /usr/local/etc/apache22/envvars.d is sourced into the start up environment 
of apache, through /usr/local/etc/rc.d/apache22 start up script. Unless a 
module or script explicitly cleans the environment before forking an external 
program, the variabels set at start up are preserved.

The following should work for you:
echo export PATH=$PATH  /usr/local/etc/apache22/envvars.d/PATH

You may want to clean out the path a bit more, pending your security policies.
-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PATH problem

2008-11-10 Thread Matthew Seaman

Albert Shih wrote:


Maybe my question is not very clear

The p5 package work in shell, because the PATH is in the shell. 


But when I use the application throught the web it's not working. But I
don't known how to tell apache ? mod_perl ? the PATH. 


If you're using mod_perl2, then Apache will default to setting up the
environment perl sees as if perl was running as a separate CGI script.
See: 


http://perl.apache.org/docs/2.0/user/config/config.html#C_SetupEnv_

(defaults to 'On')

You can modify the perl environment from httpd.conf using PerlSetEnv
or PerlPassEnv. See: 


http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlSetEnv_
http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlPassEnv_

Assuming you do mean $PATH -- the executable search path -- that should 
be sufficient to fix your problem.  If you're really after $PERL5INC -- 
the path to search for perl modules -- while you can use PerlSetEnv to 
set that, it's special-cased not to be passed through when running in 
taint-checking mode.  It's generally cleaner to have a startup.pl 
script you require from the Apache conf, and that can have a BEGIN { } 
block where you modify @INC before loading modules.  See


http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlConfigRequire_

or (preferably):

http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlPostConfigRequire_

which does much the same thing as a perl 'require' statement -- the 
difference between the two being that PerlPostConfigRequire happens 
somewhat later in the configuration process.


Cheers,

Matthew


--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: PATH problem

2008-11-10 Thread Albert Shih
 Le 10/11/2008 à 22:35:44+0100, Mel a écrit
 On Monday 10 November 2008 21:36:43 Albert Shih wrote:
 
  But when I use the application throught the web it's not working. But I
  don't known how to tell apache ? mod_perl ? the PATH.
 
Thanks for your help

 Check the shell script /usr/local/sbin/envvars. In short, any file 
 in /usr/local/etc/apache22/envvars.d is sourced into the start up environment 
 of apache, through /usr/local/etc/rc.d/apache22 start up script. Unless a 
 module or script explicitly cleans the environment before forking an external 
 program, the variabels set at start up are preserved.
 
 The following should work for you:
 echo export PATH=$PATH  /usr/local/etc/apache22/envvars.d/PATH
 
 You may want to clean out the path a bit more, pending your security policies.

Sh.t it's not working.

Event I put 

PATH.env

it's not working.

I'm going to do something very bad ;-)

ln -s /usr/local/bin/dot /usr/bin

...it's the binary the p5 script search...


OK...ok..it's very very bad.

Thanks for your (all of you) help.

Regards.
-- 
Albert SHIH
SIO batiment 15
Observatoire de Paris Meudon
5 Place Jules Janssen
92195 Meudon Cedex
Heure local/Local time:
Lun 10 nov 2008 22:55:34 CET
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PATH problem

2008-11-10 Thread Albert Shih
 Le 10/11/2008 à 21:53:32+, Matthew Seaman a écrit
 Albert Shih wrote:
 
  Maybe my question is not very clear
  
  The p5 package work in shell, because the PATH is in the shell. 
  
  But when I use the application throught the web it's not working. But I
  don't known how to tell apache ? mod_perl ? the PATH. 
 
 If you're using mod_perl2, then Apache will default to setting up the
 environment perl sees as if perl was running as a separate CGI script.
 See: 
 
 http://perl.apache.org/docs/2.0/user/config/config.html#C_SetupEnv_
 
 (defaults to 'On')
 
 You can modify the perl environment from httpd.conf using PerlSetEnv
 or PerlPassEnv. See: 
 
 http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlSetEnv_
 http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlPassEnv_
 
 Assuming you do mean $PATH -- the executable search path -- that should 
 be sufficient to fix your problem.  If you're really after $PERL5INC -- 
 the path to search for perl modules -- while you can use PerlSetEnv to 
 set that, it's special-cased not to be passed through when running in 
 taint-checking mode.  It's generally cleaner to have a startup.pl 
 script you require from the Apache conf, and that can have a BEGIN { } 
 block where you modify @INC before loading modules.  See
 
 http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlConfigRequire_
 
 or (preferably):
 
 http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlPostConfigRequire_
 
 which does much the same thing as a perl 'require' statement -- the 
 difference between the two being that PerlPostConfigRequire happens 
 somewhat later in the configuration process.

YE.

It's working.

Lots of thanks.

Regards.



-- 
Albert SHIH
SIO batiment 15
Observatoire de Paris Meudon
5 Place Jules Janssen
92195 Meudon Cedex
Heure local/Local time:
Lun 10 nov 2008 23:14:44 CET
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: $PATH problem

2007-03-16 Thread youshi10

On Fri, 16 Mar 2007, Jonathan Horne wrote:


i recently switched from KDE to XFCE4.  underneath, i also switch my DM from 
kdm to slim.  now that slim is operating, my paths have changed significantly 
when i log in via the GUI login.  my current paths:

[EMAIL PROTECTED] ~]$ echo $PATH
./:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin

conversly, if i log into this system via ssh or console, i get this (much 
better):

[EMAIL PROTECTED] ~]$ echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/home/jhorne/bin

where can i got to change this so that i always have the second set of paths 
even when im in xfce?  thanks!

jonathan


Not sure about slim but I would assume that it's seriously monkeying around 
with your path variables, so I'd check the config file for the DM.

-Garrett

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Path problem

2006-03-31 Thread Micah

Gary Schenk wrote:

OK, guys, I need help. what obvious thing am I missing here.

Fresh install of seamonkey from a fresh ports update. I try to start 
seamonkey:


  seamonkey
seamonkey: Command not found.

OK. Now this:
  /usr/X11R6/bin/seamonkey

Seamonkey starts.

OK, must be the path:
  echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:
/usr/local/bin:/usr/X11R6/bin:/home/gwschenk/bin

It looks like it is in the path to me. Any ideas?

Gary


Try rehash

HTH,
Micah
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Path problem

2006-03-31 Thread Beech Rintoul
On Friday 31 March 2006 13:28, Gary Schenk wrote:
 OK, guys, I need help. what obvious thing am I missing here.

 Fresh install of seamonkey from a fresh ports update. I try to start

 seamonkey:
   seamonkey

 seamonkey: Command not found.

 OK. Now this:
   /usr/X11R6/bin/seamonkey

 Seamonkey starts.

 OK, must be the path:
   echo $PATH

 /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:
 /usr/local/bin:/usr/X11R6/bin:/home/gwschenk/bin

 It looks like it is in the path to me. Any ideas?

 Gary

Try typing rehash (without the quotes) from your favorite shell.

Beech

-- 

---
Beech Rintoul - Sys. Administrator - [EMAIL PROTECTED]
/\   ASCII Ribbon Campaign  | Mangohealth
\ / - NO HTML/RTF in e-mail  | 201 East 9Th Avenue Ste.310
 X  - NO Word docs in e-mail | Anchorage, AK 99501
/ \  - XanGo - http://www.mangohealth.org
---













pgpDYy7YRigv5.pgp
Description: PGP signature


Re: Path problem

2006-03-31 Thread Gary Schenk

Beech Rintoul wrote:

On Friday 31 March 2006 13:28, Gary Schenk wrote:

OK, guys, I need help. what obvious thing am I missing here.

Fresh install of seamonkey from a fresh ports update. I try to start

seamonkey:
  seamonkey

seamonkey: Command not found.

OK. Now this:
  /usr/X11R6/bin/seamonkey

Seamonkey starts.

OK, must be the path:
  echo $PATH

/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:
/usr/local/bin:/usr/X11R6/bin:/home/gwschenk/bin

It looks like it is in the path to me. Any ideas?

Gary


Try typing rehash (without the quotes) from your favorite shell.

Beech



Argh! I'm an idiot! I knew it was obvious. Thanks.

Gary
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Path problem

2006-03-31 Thread Beech Rintoul
On Friday 31 March 2006 13:44, Gary Schenk wrote:
 Beech Rintoul wrote:
  On Friday 31 March 2006 13:28, Gary Schenk wrote:
  OK, guys, I need help. what obvious thing am I missing here.
 
  Fresh install of seamonkey from a fresh ports update. I try to start
 
  seamonkey:
seamonkey
 
  seamonkey: Command not found.
 
  OK. Now this:
/usr/X11R6/bin/seamonkey
 
  Seamonkey starts.
 
  OK, must be the path:
echo $PATH
 
  /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:
  /usr/local/bin:/usr/X11R6/bin:/home/gwschenk/bin
 
  It looks like it is in the path to me. Any ideas?
 
  Gary
 
  Try typing rehash (without the quotes) from your favorite shell.
 
  Beech

 Argh! I'm an idiot! I knew it was obvious. Thanks.

 Gary

No problem, we've all been there.

Beech

-- 

---
Beech Rintoul - Sys. Administrator - [EMAIL PROTECTED]
/\   ASCII Ribbon Campaign  | Mangohealth
\ / - NO HTML/RTF in e-mail  | 201 East 9Th Avenue Ste.310
 X  - NO Word docs in e-mail | Anchorage, AK 99501
/ \  - XanGo - http://www.mangohealth.org
---













pgpdH34CLFJly.pgp
Description: PGP signature


Re: Path problem

2002-11-04 Thread Wayne Pascoe
Tom Vollmer [EMAIL PROTECTED] writes:

 Whomever-
 
 During the process of compiling my own kernel, I have an issue of the make
 utility not being able to find if_fxp.c and if_sis.c.  Both exist in the
 appropriate place in the file system.  The version of freeBSD I am using is
 4.6.  Any suggestions?

Couple of things... 

1. How are you compiling your kernel? By doing a make kernel in
/usr/src or config KERNNAME then cd ../../compile/KERNNAME and doing
make? If the latter, try a make depend first

2. Please post the exact error here and we'll see what we can do :)

-- 
- Wayne Pascoe 
Wageslaves - Who do you want to make rich
today?


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Path problem

2002-11-04 Thread Kent Stewart


Tom Vollmer wrote:

Whomever-

During the process of compiling my own kernel, I have an issue of the make
utility not being able to find if_fxp.c and if_sis.c.  Both exist in the
appropriate place in the file system.  The version of freeBSD I am using is
4.6.  Any suggestions?


It sounds like you did a make without doing both a config and a make 
depend.

Kent


Tom Vollmer


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message

.




--
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Path problem

2002-11-04 Thread Wayne Pascoe
Tom Vollmer [EMAIL PROTECTED] writes:

 is a CODE 1 and the other two error lines indicate that
 ../../dev/fxp/if_fxp.c and ../../sys/pci/if.sis.c do not exists.  When
 perform a Find to locate the files, they appear to be in the correct place
 in the file system.  Can a source file marked with inappropriate rights
 cause this?

As per my previous request, please send me the error exactly as it
appears. I need some context to investigate this.

-- 
- Wayne Pascoe 
WINDOWS: Where do you want to go today?
LINUX: Where do you want to go tomorrow?
FreeBSD: Are you guys coming or what?


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message