On 1/13/06, David V. wrote:
Maybe you could put this into some kind of ruby.bat. I don’t know if
cmd.exe provided this kind of substitution which would make things
This command looks promising. I can’t test it before monday, but I
hope that it will solve the problem. Thanks a lot.
There might be issues if ConTeXt is hardcoded ro run “ruby.exe”, instead
of just “ruby” in a subshell. This is probably the first and last time I
see something that could be done with exec() instead of spawning a
It’s not “ruby.exe”, only “ruby”. (If the problem was in ConTeXt, the
developer would fix it within a couple of minutes/hours. If some
software has to be installed by the admin on Windows on our computers,
there’s very little chance that it would be done before the summer.)
finding the one that ends with “.rb” and then have cygpath have a go at
it. And afterwards, give your local admin a printout of this thread, and a
five dollar note saying “here, go buy a clue”.
Thanks for additional notes. I hope that I won’t need such deeps hacks
as writing js code to parse the command line, but let’s try the above
first and think further if it fails.
of PATH. And you also have to tell the linker where to find ~/lib, but
someone else will have to elucidate on that, I’m not very (at all)
experienced in ways *nixy that involve playing with the dynamic linking.
I don’t doubt that it’s doable, but I would prefer trying just
anything else before this. Besides I see no reason why to do it if the
current installation is generally working (except for some modules
which require additional libraries). I have enough problems with
MikTeX installation (which is tested pretty well) - I don’t dare even
think about all the possible problems and bugs on cygwin (two were
already fixed during my last failures to make ConTeXt work on those
computers). Installing it on each single computer without an automated
update mechanism (and updates come out approximately every 10 days)?
If I ask the admin to install tetex under cygwin, it will interfere
with the existing MikTeX and so on … It sounds more like a nightmare
than a serious alternative.
[email protected] wrote:
also gets included in $LOAD_PATH. But cygwin cannot access that path
Sounds strange. File.dirname(“C:/mypath/myscript.rb”) is
“c:\mypath” but not “c:/mypath”? How do you add it to
I guess these lines do it
unless defined? ownpath
ownpath = $0.sub(/[\/]\w*?.rb/i,’’)
$: << ownpath
But it works ok on Windows (if there’s no cygwin interference).
Thanks to everyone for suggestions, I’ll report about success/failure
on Monday once I come back to the university,