Problems installing on Vista

Machine-specific discussion
Unix, Linux, OS X, OS/2, Windows, ..?
Locked
electrifiedspam
Posts: 27
Joined: Sat Nov 06, 2010 11:39 pm

Problems installing on Vista

Post by 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
Posts: 1390
Joined: Thu Sep 26, 2002 9:15 am
Location: Germany
Contact:

Re: Problems installing on Vista

Post by HPW »

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
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Re: Problems installing on Vista

Post by Lutz »

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
Posts: 27
Joined: Sat Nov 06, 2010 11:39 pm

Re: Problems installing on Vista

Post by electrifiedspam »

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
Posts: 27
Joined: Sat Nov 06, 2010 11:39 pm

Re: Problems installing on Vista

Post by electrifiedspam »

Rebooting didn't help.

electrifiedspam
Posts: 27
Joined: Sat Nov 06, 2010 11:39 pm

Re: Problems installing on Vista

Post by electrifiedspam »

Rebooting didn't help.

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Re: Problems installing on Vista

Post by Lutz »

Try to start the IDE from the command prompt:

Code: Select all

newlisp "c:\Program Files\newlisp\newlisp-edit.lsp"
or any other demo program:

Code: Select all

newlisp "c:\Program Files\newlisp\guiserver\button-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
Posts: 27
Joined: Sat Nov 06, 2010 11:39 pm

Re: Problems installing on Vista

Post by electrifiedspam »

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
Posts: 27
Joined: Sat Nov 06, 2010 11:39 pm

Re: Problems installing on Vista

Post by electrifiedspam »

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 Files\newlisp' 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
Posts: 27
Joined: Sat Nov 06, 2010 11:39 pm

Re: Problems installing on Vista

Post by electrifiedspam »

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 Files\newlisp 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
Posts: 66
Joined: Sun Sep 27, 2009 12:08 am
Location: Russia

Re: Problems installing on Vista

Post by Fritz »

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\\\241\232\233\232\\Appdata\\Roaming/newlisp/newlisp-edit.config"

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

Code: Select all

(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.

Locked