Problems installing on Vista

Started by electrifiedspam, December 05, 2010, 03:24:12 PM

Previous topic - Next topic

electrifiedspam

I have installed newlisp on other vista computers without problems.



How ever it does not seem to like installing on this one.



I am running Vista.

I download the installer and run it.

I open the link on my desktop and the IDE starts.



But I get ERR: No working directory found.

Newlisp will not run in the IDE.



New lisp runs on my machine and I have been able to work with it through the command line just not through the IDE.



Is there a System variable that I need to set in order to get it to run?

HPW

#1
You may check if you have a directory c:Temp

If not create it and try again.

The needed enviroment vars should be created by the installer.
Hans-Peter

Lutz

#2
Like Hans-Peter says, it is probably the missing c:temp directory. If you don't like to use c:temp, you can set the environment variable TEMP to the directory, you want to use.



Also, at least one of the following environment variables must be defined: either HOME, USERPROFILE or DOCUMENT_ROOT. The directory specified in there is used as a working directory for the secondary newLISP process and as a place where to store user settings.

electrifiedspam

#3
Well,

There was a C:temp



AND I have changed the TEMP system and user variable to C:temp. So far all to no avail. I will try a reboot but I am doubting that it will bring any changes.

electrifiedspam

#4
Rebooting didn't help.

electrifiedspam

#5
Rebooting didn't help.

Lutz

#6
Try to start the IDE from the command prompt:
newlisp "c:Program Filesnewlispnewlisp-edit.lsp"
or any other demo program:
newlisp "c:Program Filesnewlispguiserverbutton-demo.lsp"
Do you have a Java runtime environment (JRE) installed?



Ps: after any failed attempts, make sure using taskmgr, that no javaw.exe or newlisp.exe is still running and blocking ports.

electrifiedspam

#7
When I run 'newlisp-edit' from the command line I get:



"Cannot find newlisp. Make sure that you typed the name correctly and try again."



Furthermore when I type in 'newlisp' into the terminal I get the standard "Newlisp is not recognized as a batch command...."

electrifiedspam

#8
What should



(env "NEWLISPDIR") return?



I get



"C:\Program Files\newlisp" which is where my directory is installed.



--------------------------------------------------------------------------



(set 'userSettingsDir (string

         (or (env "APPDATA") (env "HOME") (env "USERPROFILE") (env "DOCUMENT_ROOT")) "/newLISP"))



I am assuming that these should return 'C:Program Filesnewlisp' I have installed Emacs on this machine and it is utilizing the 'HOME' variable. I guess the 'or' means that as long as one environment variable returns the newlisp directory, then it ignores the others?

electrifiedspam

#9
OK



I read up on 'or'.



According to what I read, it returns the first thing that is not nil. Emacs was already using the home variable and the others were set to other things left over from projects past...



I edited the newlisp-edit.lsp and had it check the DOCUMENT_ROOT variable first. I set that variable to C:Program Filesnewlisp and it seems to work.



IF there are better fixes, please let me know, but this has me up and running for now.



Thank you!!



PS



I made a math program for my son that tests his multiplication skills for all numbers up to 13. My goal for him was to either learn is multiplication OR reprogram the computer to say that he got it all right.



Either way we both win.

Fritz

#10
I got similar problems on Window 7: my settings directory contained russian letters and was therefore unvisible for newlisp-edit. There was an error:



ERR: problem saving in function save: "C:\Users\241232233232\Appdata\Roaming/newlisp/newlisp-edit.config"



So I have added these strings into newlisp-edit.lsp to circumvent the problem:


(set 'userSettingsDir "c:/TEMP")
(set 'userSettingsPath (append userSettingsDir "/newlisp-edit.config"))
(set 'recentFilesPath (append userSettingsDir "/newlisp-edit-recent"))


Now I can enjoy newLISP on my Windows 7.