On Feb 14, 2005, at 10:42 AM, Angus Leeming wrote:
So the fault lies in "prependEnvPath". Yet Andreas says that this
(identical) code works perfectly for him when using the 1.4.x version. I'm
a bit baffled.
It works perfectly for me, too, in 1.4.x. (I use gcc version 3.1 for lyx-1.4, but 2.95.2 for lyx-1.3. Lyx-1.3 will compile with gcc-3.x, but the result won't run, giving "bus error" as the reason. I can post a backtrace if you like, but I thought it wasn't worth fussing over.)
Could you post the output of:
$ grep -e 'HAVE_SETENV' -e 'HAVE_PUTENV' config.h
10:45:30 | bennett:~/lyx/lyx-1_3_x/src> grep -e 'HAVE_SETENV' -e 'HAVE_PUTENV' config.h
#define HAVE_PUTENV 1
#define HAVE_SETENV 1
Also, could you alter this function in src/support/filetools.C:
Output from console:
Env var "PATH", "/usr/bin:/bin:/usr/sbin:/sbin:/Users/bennett", is prepended with "/Applications/LyX-136.app/Contents/MacOS/"
setEnvPath(PATH) == 1
result:
lyxrc.path_prefix is /usr/bin:/usr/local/bin:/usr/local/teTeX/bin/powerpc-apple-darwin- current:/usr/X11R6/bin:/sw/bin:/opt/local/teTeX/bin
Env var "PATH", "", is prepended with "/usr/bin:/usr/local/bin:/usr/local/teTeX/bin/powerpc-apple-darwin- current:/usr/X11R6/bin:/sw/bin:/opt/local/teTeX/bin"
setEnvPath(PATH) == 1
result:
Bennett