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

Registry entry for OCaml 3.08.2 #3334

Closed
vicuna opened this issue Dec 4, 2004 · 1 comment
Closed

Registry entry for OCaml 3.08.2 #3334

vicuna opened this issue Dec 4, 2004 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Dec 4, 2004

Original bug ID: 3334
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Sachin Shah
Version: 3.08.2
OS: Windows XP SP2
Submission from: adsl-68-123-9-55.dsl.pltn13.pacbell.net (68.123.9.55)

Hello,

I have recently compiled OCaml 3.08.2 using Microsoft's Visual C++ Toolkit 2003

  • various other installation programs. Everything goes fine and I have modified
    al the correct variables (PATH, OCAMLLIB, ...) for Windows. However, upon
    running OCamlWin.exe for the first time, I get the message "Impossible to find
    ocaml.exe. I quit". This is quite odd, because I took a look at
    'win32caml/startocaml.c', and it seems that the function 'BrowseForFile("Ocaml
    interpreter|ocaml.exe", path)' is never executed (or it short-circuits).
    Instead, I get the 'ShowDbgMsg("Impossible to find ocaml.exe. I quit");' message
    directly. Upon further examination, I found that BrowseForFile is defined in
    win32caml/menu.c.

I only took a cursory look at menu.c, but I found that the code for
BrowseForFile() and OpenMlFile() is quite similar. However, when I open up
OcamlWin.exe and go to File->Open, the dialog comes up correctly. So, I'm not
sure where the problem is.

To reproduce:

(1) Compile ocaml3.08.2 from sources using Cygwin+MS VC++ Toolkit 2003
(2) After 'make -f Makefile.nt install', add the bin path to the PATH var and
the lib path to the OCAMLLIB var.
(3) Run OcamlWin.exe from the directory above 'bin'.
(4) See the message.

Manual fix: Go into the registry and import the following:

[HKEY_CURRENT_USER\Software\Objective Caml]
"InterpreterPath"="C:\linux\ocaml\bin\ocaml.exe"

Note: Change InterpreterPath to match where you installed ocaml.exe.

Best regards,

Sachin.

@vicuna
Copy link
Author

vicuna commented Feb 2, 2005

Comment author: administrator

Hopefully related to #3432, which was fixed by XL 2004-02-02

@vicuna vicuna closed this as completed Feb 2, 2005
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant