From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id HAA24782 for caml-red; Thu, 5 Oct 2000 07:22:15 +0200 (MET DST) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id EAA22050 for ; Thu, 5 Oct 2000 04:09:10 +0200 (MET DST) Received: from ropas.kaist.ac.kr (ropas.kaist.ac.kr [143.248.92.105]) by concorde.inria.fr (8.10.0/8.10.0) with ESMTP id e95298f18587 for ; Thu, 5 Oct 2000 04:09:09 +0200 (MET DST) Received: from localhost (bskim@localhost) by ropas.kaist.ac.kr (8.9.3/8.9.3) with ESMTP id LAA27750 for ; Thu, 5 Oct 2000 11:08:00 +0900 (KST) Date: Thu, 5 Oct 2000 11:08:00 +0900 (KST) From: Bomshik Kim To: caml-list@inria.fr Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: weis@pauillac.inria.fr Hello. I do programming with both ocaml and camltk. Compiling source code produces binary (with -custom option). But the binary can't run on another machine which does not have tcl, tk library. The error message is like this Fatal error: uncaught exception Protocol.TkError ("Can't find a usable init.tcl in the following directories: /usr/local/lib/tcl7.6 ./lib/tcl7.6 ./tcl7.6/library ./library This probably means that Tcl wasn't installed properly. ") Someone let me know that "-static" option may solve this problem. but that also makes another error. /usr/bin/ld: cannot open -lcurses: no such a file or directory collect2: ld returned 1 exit status Error while building custom runtime system make: *** [system] Error 2 How can I make binary which runs well where tcl, tk are not installed? I add linking command of Makefile. Regard. ------------------------------------------------------------------------ system: rtp/rtp.cmo $(lpc) util.cmo $(phone_objects) $(gui_objects) $(CC) -custom -I $(camltklib) \ -ccopt "-L/usr/X11R6/lib -L/usr/local/lib -L. -L$(camltklib)"\ -cclib "-lcamltk41 -ltcl7.6 -ltk4.2 -ldl -lm -lSM -lICE -lX11 -lunix -static"\ -o system tk41.cma unix.cma $(objects) liblpc10.a