Re: EUINC woes on v3.1.1
- Posted by jimcbrown (admin) Dec 05, 2010
- 1409 views
Hello Readers...
Back again! Got booted off my wife's OS X machine. Now on Linux Xubuntu box with V3.1.1 installed and working. That is to say that ../demo/sanity.ex passes all the tests.
However, in context of a CGI script that I've written and testing, I cannot get EU to use $EUINC which lives both in my .bash_profile and .bashrc files; as well as $EUDIR. ex.err shows that EU is looking for the included file(s) first in the directory where the script resides; then in "euphoria/include". According to ex.err, it seems that the path declared in $EUINC is never checked. Almost as if EU is not aware that $EUINC exists. I could put all the included files in ../cgi-bin/, but I don't want to do that. I could "symlink" euphoria/include to where the $HOME/bin/euphoria/include, but I shouldn't need to do this.
So, is there a bullet-proof way to insure that Euphoria sees $EUINC? Much obliged ...
Apache will generally unset any environment variables before running a CGI script. This is a security measure. Most other web servers do the same thing.
For Apache, you can either set EUDIR and EUINC manually in your apache configuration with SetEnv or specify to Apache to allow these to be inherited via PassEnv.
http://httpd.apache.org/docs/1.3/env.html