Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Bomshik Kim <bskim@ropas.kaist.ac.kr>
To: caml-list@inria.fr
Date: Thu, 5 Oct 2000 11:08:00 +0900 (KST)	[thread overview]
Message-ID: <Pine.GSO.4.10.10010051107100.27747-100000@ropas.kaist.ac.kr> (raw)


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




                 reply	other threads:[~2000-10-05  5:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.GSO.4.10.10010051107100.27747-100000@ropas.kaist.ac.kr \
    --to=bskim@ropas.kaist.ac.kr \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox