ocamlmktop fatal error
Hi,
I have installed these Ocaml packages (see below).
[etch basic installation on a laptop].
$ ocamlmktop -v
Fatal error: the file /usr/bin/ocamlc is not a bytecode executable file
Changing "ocamlc" by "ocamlc.opt" in the ocamlmktop bourne shell script seems to solve the "problem" ... but I'm not happy with this hack and think that there is a problem somewhere else ...
Below some extra info.
Thanks in advance !
---------------------------------------------------------------------------------
$ dpkg -l | grep caml
ii camlidl 1.05-7 Stub code generator for Objective Caml
ii ocaml 3.09.2-9 ML language implementation with a class-base
ii ocaml-base 3.09.2-9 Runtime system for ocaml bytecode executable
ii ocaml-base-nox 3.09.2-9 Runtime system for ocaml bytecode executable
ii ocaml-interp 3.09.2-9 Ocaml interpreter and standard libraries
ii ocaml-native-compilers
3.09.2-9 Native code compilers of the ocaml suite (th
ii ocaml-nox 3.09.2-9 ML language implementation with a class-base
---------------------------------------------------------------------------------
$ cat /usr/bin/ocamlmktop
#!/bin/sh
#########################################################################
# #
# Objective Caml #
# #
# Damien Doligez, projet Para, INRIA Rocquencourt #
# #
# Copyright 1999 Institut National de Recherche en Informatique et #
# en Automatique. All rights reserved. This file is distributed #
# under the terms of the Q Public License version 1.0. #
# #
#########################################################################
# $Id: ocamlmktop.tpl,v 1.5 2004/02/22 14:52:50 xleroy Exp $
exec /usr/bin/ocamlc -linkall toplevellib.cma "$@" topstart.cmo
------------------------------------
$ file /usr/bin/ocamlc
/usr/bin/ocamlc: a /usr/bin/ocamlrun script text executable
-------------------------------------
$ file /usr/bin/ocamlc.opt
/usr/bin/ocamlc.opt: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.4.1, dynamically linked (uses shared libs), for GNU/Linux
2.4.1, stripped
--------------------------------------------
Reply to: