English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Sys.getenv does not work under OS X?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-09-11 (12:52)
From: Alan Schmitt <alan.schmitt@p...>
Subject: Sys.getenv does not work under OS X?

I'm using OS X (Leopard, up to date), with ocaml 3.10.2 (compiled with  
godi), and I was trying to use htmlc which fails for some reason. it  
boils down to the following:

schmitta@charm compiler % echo $HOST
schmitta@charm compiler % ledit ocaml
         Objective Caml version 3.10.2

# Sys.getenv "$HOST";;
Exception: Not_found.
# Sys.getenv "HOST";;
Exception: Not_found.

Is Sys.getenv supposed to work under OS X?

Thanks a lot,

Alan Schmitt