Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't run on windows 7 64 bits #3

Open
retsyo opened this issue Jan 27, 2019 · 1 comment
Open

can't run on windows 7 64 bits #3

retsyo opened this issue Jan 27, 2019 · 1 comment

Comments

@retsyo
Copy link

retsyo commented Jan 27, 2019

error: invalid syntax. defalut option can not exceed '2' time
iunut "SETX /?" to learn mor
C:\temp\LuaVM\versions\luajit-2.1\luajit.exe: C:\temp\LuaVM\luavm.lua:127: error
while executing: setx "Path" "C:\temp\LuaVM\versions\5.1;C:\Tcl\bin;%PATH%;e:\g
reensoft\pandoc-2.5-windows-x86_64;E:\prg\lib\sciter;E:\prg\graphviz-2.38\bin;C:
\Program Files (x86)\OpenVPN\bin;E:\prg\nim\nim-0.18.0\bin" >NUL
stack traceback:
[C]: in function 'assert'
C:\temp\LuaVM\luavm.lua:127: in function 'execf'
C:\temp\LuaVM\luavm.lua:142: in function 'setenv'
C:\temp\LuaVM\luavm.lua:240: in function 'update_path'
C:\temp\LuaVM\luavm.lua:255: in function 'use'
C:\temp\LuaVM\luavm.lua:305: in function <C:\temp\LuaVM\luavm.lua:305>
C:\temp\LuaVM\luavm.lua:313: in function 'main'
C:\temp\LuaVM\luavm.lua:316: in main chunk
[C]: at 0x013fba1ea0

btw, I don't like the current luavm who installs it self under C:\Users\USER\AppData\Local\ I don't think it is a directory for the whole application but for data
further more, I prefer to a portable lua with battery which can be put on USB-disk

Regards

@retsyo
Copy link
Author

retsyo commented Jan 27, 2019

if I comment out the following lines in luavm.lua

--~   if source == 'user' then
--~     execf('setx "%s" "%s" >NUL', varname, value)
--~   end

--~   if source == 'machine' then
--~     execf('setx /M "%s" "%s" >NUL', varname, value)
--~   end

Then I can run luavm.cmd use luajit-2.1 to set touse luajit-2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant