1. RE: Now what!? Try to bind, and it won't let me.
- Posted by bensler at mail.com
Feb 27, 2002
This reminds me of a related question have.
Is there a way I can modify the system environment from within the
same instance of an eu program? I'd like to be able to do something like
this...
system("set EUINC=%EUINC%;%EUDIR%\\my_libs",2)
include my_lib.e
However, it seems that system() opens a separate instance of a DOS box
to execute to command. Once the DOS session closes the old environment
is restored, making the call useless.
Chris
SR.Williamson wrote:
> Eu 2.3 registered version says "Must have PDexw.exe in Euphoria\bin"
>
> Check. Got it.
>
> Not according to EXW.EXE. Is this related to me trying to run Eu without
>
> the path in the autoexec? I've been able to run everything I've tried
> EXCEPT Sanity.ex, and bind.
>
>
2. RE: Now what!? Try to bind, and it won't let me.
Sanity doesn't think I have the EUDIR environment variable set
correctly. My batch file disagrees. I disagree. But Sanity and Bind hold
all the leverage. It's only what they believe that matters.
I'll check it again when I get to work, but I cut and pasted it right
out of the autoexec.bat file.
I have not checked SET from the MSDOS prompt. I'll do that also and get
back to you if I contine to have that problem.
I do not have Euphoria installed on a *machine*. I have it installed on
a CD using UDF so that I can use it at work without having to spend 6
months getting a clearance to make changes to my PC. If setting the
EUDIR environment variable and the path is all that is necessary to
install Euphoria, I'm willing to run a 2 line batch file to avoid 10
pages of paperwork, 6 months of trouble, and the puzzled looks of our IT
staff while asking "But why do you want to program, and what's
Euphoria?"
I'll check it out and get back to you if I still have problems.
3. RE: Now what!? Try to bind, and it won't let me.
Good morning.
Well, I wish it was.
I have found the problem. Windows will not hold an environment variable
unless it's in autoexec.bat, apparently.
When I type in SET EUDIR=D:\EUPHORIA at the MS-DOS prompt, EUDIR goes
away as soon as I close the window. I can leave the DOS prompt running,
and EUDIR is not recognized in the Sanity DOS session.
Go figure.
Anyone know away around this?
4. RE: Now what!? Try to bind, and it won't let me.
> If you want to run your source code on another machine
> that doesn't have Euphoria installed,
> you can do it, but your files must all be in the same
> directory, including any that you need from euphoria\include.
> Or you can simply use the binder or translator to make a .exe that will
> run anywhere.
It's not that I want to run my Euphoria projects on machines that don't
have Eu installed, it's that I want to develop them on machines that
don't have Eu installed, and still be able to test them. I can live with
putting all the files in the same directory, though it's a pain.
Fortunately Eu is small enough so a few extra copies of some files isn't
going to matter much.
However, that doesn't solve my problems with bind.ex. I wanted to bind
the makedoc.exw program. Unfortunately, since it looks for PDEXW.EXE
using that environment variable, it won't work on my work machine.
I'll work around it I guess.
BTW, there are 2 other problems I've been having that I'll get back to
you about.