World: r3wp
[SDK]
older newer | first last |
Henrik 8-Sep-2007 [1069] | solved by entering the full path to the executable when doing the call. |
Gabriele 8-Sep-2007 [1070] | unless the data is actually invalid (ie never runs), that error usually means that rebol is not able to locate itself to load the script to run. ie. yourapp.exe must be able to read the yourapp.exe file in order to load the rebol script. |
Graham 8-Sep-2007 [1071x2] | I get the same problem sometimes with 'launch |
which is the encapped program starting up another instance of itself. | |
Gregg 10-Sep-2007 [1073] | James, maybe Edgar will jump in. I was responsible for helping to get the source on REBOL.org, but I don't think I've ever tried to build it here. |
james_nak 12-Sep-2007 [1074] | OK, thanks. |
Maarten 11-Nov-2007 [1075x5] | Funny thing: on my linux VPS the SDK : /Base /Pro work. Rebcmd gives the following error: |
/rebcmd: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file | |
Any advice/thoughts know solutions? | |
(I think Pro suffices anyway though. It has encryption and FastCGI on board) | |
Nevermind.... fixed it with a locate query and a symbolic link | |
Robert 11-Nov-2007 [1080] | That's why I preferr a static link, simple, works and hd space is cheap. |
Maarten 18-Nov-2007 [1081] | Question: if I put the SDK in my PATH on win32 and start rebpro from an different location, it complains that the license.key can't be found. Can I put it somewhere so that I can run /Pro etc from any location? |
Gregg 18-Nov-2007 [1082] | I haven't figured out a way. |
Robert 18-Nov-2007 [1083] | Yes, just put the license.key file into the directory where the SDK tools are. |
Maarten 18-Nov-2007 [1084x2] | I did that, but sya there arein sdk\tools |
Then I cal from c:\temp rebpro and I geta license not found.... | |
btiffin 18-Nov-2007 [1086] | I straced my rebpro (Linux) and it looks in the home directory and the current working dir for the key. It does not seem to check the dir where the actual binary is launched from. Same for REBOL/View 1.3.2. Can't say how the lookup may work for the Windows side; strace fails creating a rebol process under cygwin. Someone might try holodeck. I can't say I'm a huge fan of leaving a copy of the key in my home dir, but no more chasing that tail around on the Dev box at least. :) |
Maarten 19-Nov-2007 [1087] | Linux is not the problem, windows is :( |
Graham 8-Feb-2008 [1088x2] | Does enface return a value for use in .cmd scripts? I wish to run a cmd script that enfaces a rebol script, and if sucessful, then to run the encapped program |
something like this if enface.exe myscript.r -o myscript.exe [ myscript.exe ] but using the cmd shell syntax | |
Gregg 9-Feb-2008 [1090] | I don't think so Graham. Normally I do it all from REBOL and wait for the output file to appear. |
eFishAnt 28-May-2008 [1091] | When I launch an encapped script (.exe) from AltME, I get it run from a parent parent .. directory, like the root of the world, rather than the directory the .exe is in, but with .r I get the real current directory. Is there a way to get the real directory easily from the encapped script (.exe)? |
BrianH 28-May-2008 [1092x2] | Try system/options/path. |
Or failing that, first split-path system/options/boot ; they should be the same. | |
eFishAnt 28-May-2008 [1094] | yes, first one fails, so I have to split-path on the second. Thanks. |
BrianH 28-May-2008 [1095] | I was just guessing :) |
eFishAnt 28-May-2008 [1096] | I had to do some conditionals to make it operate the same as a script vs. .exe but I think I have that working. |
BrianH 28-May-2008 [1097] | How does the first one fail? What does system/options/path turn out to be? |
eFishAnt 28-May-2008 [1098x2] | The Script.r works from current directory, no monkey-shines (if I use system/options/boot then it uses the diretory where View is) encapped script.exe uses change-dir first split-path system/options/boot ;so it then thinks it's in the same folder as the script.r which in fact is actually is. |
...comes from studying script.r (religious joke) | |
BrianH 28-May-2008 [1100] | Which folder do you need? The system/options/path is supposed to be the current directory from which you started the script. Is that the case with a encapped script? |
eFishAnt 28-May-2008 [1101x3] | (remember I am launching it from AltME...so there is an extra level of cornfusion) |
It seems to think it is in the altme-root of the world. | |
so systems/options/path was not the same even though they were synce'd in the same AltME files/folder | |
BrianH 28-May-2008 [1104] | I suspect that AltME is starting applications from its current directory (the root dir of the world), while starting documents from their directory. A REBOL script is just a document as far as AltME is concerned. |
eFishAnt 28-May-2008 [1105x2] | In that case the script.r was right, but the script.exe was giving the C:/program files/alme/worlds/gop-gasflation/ instead of C:/program files/alme/worlds/gop-gasflation/files/folder |
Yeah, so we have to blame both. | |
BrianH 28-May-2008 [1107] | I suspect that applications are started using call and scripts with shellexecute. |
eFishAnt 28-May-2008 [1108] | you _are_ a supicious person, aren't you. Comes from dealing with software. I know it jaded me, too. |
BrianH 28-May-2008 [1109] | Diagnosis is detective work :) |
eFishAnt 28-May-2008 [1110x3] | but in America, we cannot execute shells because of suspicion, we must call for proof by the script of the law. |
anyway, I did do a conditional run so the code works both ways, except that I have to edit the script to make it encap. ( #include %view.r ;that sort of thing) | |
Not sure, but I may have planted the initial seed for SDK...I was raving to Carl about the MKS toolkit awkc (awk compiler). However, for awkc I don't have to edit the awk script before compiling. | |
BrianH 28-May-2008 [1113x2] | Do you want the current directory or the script directory? For the script directory, try system/script/path. |
The current is system/options/path. | |
eFishAnt 28-May-2008 [1115x3] | I want it to run and process files in the current directory. However, I already been there, done that, and it ain't worked. |
I fixed by doing this: either none? find system/options/boot "imagesave.exe" [ print %. ;script ][ print change-dir first split-path system/options/boot ;encap ] | |
the prints were only there to be sure. | |
BrianH 28-May-2008 [1118] | If you run a program by double-clicking it from explorer, the working directory is set to the directory the program is in. Otherwise the working directory is either the directory you are in in the command prompt, that set in the shortcut properties, or the working directory in your program you are starting the program from. I use this to make file management tools that work on the current directory all of the time. |
older newer | first last |