From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id C7824820A1 for ; Tue, 20 Aug 2013 22:23:17 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of caseybasichis@gmail.com) identity=pra; client-ip=209.85.220.182; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="caseybasichis@gmail.com"; x-sender="caseybasichis@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of caseybasichis@gmail.com designates 209.85.220.182 as permitted sender) identity=mailfrom; client-ip=209.85.220.182; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="caseybasichis@gmail.com"; x-sender="caseybasichis@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-vc0-f182.google.com) identity=helo; client-ip=209.85.220.182; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="caseybasichis@gmail.com"; x-sender="postmaster@mail-vc0-f182.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhICAA3PE1LRVdy2m2dsb2JhbABXA4JBeVGwco5ngR4IFg4BAQEBAQYLCwkUKIIkAQEEAScZARQHHQEDAQsGBQs7IQEBEQEFARwGE4d9AQMJBgyWbYxQgwKENgoZJw1kgRYBBQyNUYJoEAcRhAMDiS2MT4FpjC6DQxYphGIc X-IPAS-Result: AhICAA3PE1LRVdy2m2dsb2JhbABXA4JBeVGwco5ngR4IFg4BAQEBAQYLCwkUKIIkAQEEAScZARQHHQEDAQsGBQs7IQEBEQEFARwGE4d9AQMJBgyWbYxQgwKENgoZJw1kgRYBBQyNUYJoEAcRhAMDiS2MT4FpjC6DQxYphGIc X-IronPort-AV: E=Sophos;i="4.89,922,1367964000"; d="scan'208";a="29884652" Received: from mail-vc0-f182.google.com ([209.85.220.182]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 20 Aug 2013 22:23:16 +0200 Received: by mail-vc0-f182.google.com with SMTP id hf12so699994vcb.27 for ; Tue, 20 Aug 2013 13:23:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=UTfcMEWanPUT8EyrKhj1jx8RBn4Shz2LF3t1Pfq6l68=; b=aRqBUbXi4FldXezQdkKzKxvcJb5xFZlsRL8y6XoaW2O6ZAmamAMRVhfkA4ckf7qKv1 V7E4zk736FsrHp7pYvBpzBxtmpsmNuuW4C//BErD0Jk+K/Zn9sM6Qx+b4kf2ale5pFgB vlJDY0sjIxe/d6IWVDaoUKN8aZiaF33hbYRQbbt3WfiBAR/6zvMHsNV1XNS8cBcDUPK/ nIr8ms24kwnI9oRD+q7eSsJ3DGYR7CqIDJdOi7PoNcCHEzxbRVNCHSzLPzvJqZhE3bxF K5qjpXDNzLcRlUECJqO2pMDs+kYqfJRuMo2AEfTWsgbf0JPF1fw5WI/pGwZwVs3VajPv Zs9Q== MIME-Version: 1.0 X-Received: by 10.52.120.7 with SMTP id ky7mr2282853vdb.12.1377030196050; Tue, 20 Aug 2013 13:23:16 -0700 (PDT) Received: by 10.52.65.201 with HTTP; Tue, 20 Aug 2013 13:23:15 -0700 (PDT) In-Reply-To: <95B851B6-93AF-47A2-9C65-95E169B1DA07@ocamlpro.com> References: <95B851B6-93AF-47A2-9C65-95E169B1DA07@ocamlpro.com> Date: Tue, 20 Aug 2013 13:23:15 -0700 Message-ID: From: Casey Basichis To: Thomas Gazagnaire Cc: caml-list@inria.fr Content-Type: multipart/alternative; boundary=089e013a25e2ae400f04e466d375 Subject: Re: [Caml-list] Setting up OcaIDE --089e013a25e2ae400f04e466d375 Content-Type: text/plain; charset=ISO-8859-1 Hi Thomas, I just realized this isn't specific to Eclipse at all. Typing ocaml in the terminal gives the same error: OCaml version 4.00.1 Cannot find file topfind. Unknown directive `camlp4o'. I am definitely running "eval `opam config env`" as well it is in my .bash_profile When I try: opam install findlib findlib is not a valid versioned package name 'opam install findlib' failed. The information about any of this on google is extremely scarce. I've installed three versions of the compiler so far and all have given me this error. As I noted earlier, I've tried make installing findlib from the source. There is a topfind in the 4.01.0dev+trunk/lib/toplevel directory but it wasn't working when the system was set to that compiler. I've tried moving the file to 4.00.1 but it give an error about being the wrong version. copy/pasting the let()=.... into the ocaml in the terminal had no effect. Any other idea as to what might be wrong? On Tue, Aug 20, 2013 at 12:09 PM, Thomas Gazagnaire wrote: > > I built the latest dev on osx and also installed the ocaml binaries. I > am getting errors with OcaIDE. Eclipse: > > You need to tell Eclipse/OcaIDE to load the right environment variables > (to locate your OPAM installation). > > I am not very used to OcaIDE so I can't help you much there, but I can > suggest few workaround: > > - start Eclipse on the command-line -- be sure to have "eval `opam config > env`" before. It it works that means that your application is not run with > the right environment variables -- dunno how to fix this properly on OSX. > > - copy paste: > > let () = > > try Topdirs.dir_directory (Sys.getenv "OCAML_TOPLEVEL_PATH") > > with Not_found -> () > directly in the Eclipse top-level, and run "#load "topfind" again. If it > works, that means that OCaIDE is not loading ~/.ocamlinit (a bug worth > reporting upstream) > > - change the path of ocaml& ocamlc/ocamlopt in some OcaIDE menus to > hard-code /Users/caseybasichis/.opam/4.01.0dev+trunk/bin/ocaml{,c,opt} > > Hope this help, > > Thomas > > > OCaml version 4.00.1 > > Cannot find file topfind. > > > > Unknown directive `camlp4o'. > > > > # > > > > I've tried a number of things to get it going to no avail. > > > > I added the following to ~/.ocamlinit : > > let () = > > try Topdirs.dir_directory (Sys.getenv "OCAML_TOPLEVEL_PATH") > > with Not_found -> () > > > > to ~/.bash_profile I added : > > > > export > OCAML_TOPLEVEL_PATH=/Users/caseybasichis/.opam/4.01.0dev+trunk/lib/toplevel > > eval `opam config env` > > > > I also tried adding those to ~/.profile > > > > I also tried building and make installing findlib-1.4 > > > > If you have any ideas of how I might get this running I would greatly > appreciate it, I am very much looking forward to hello world hallelujah. > > > > Thanks, > > Casey > > > > -- > > Casey James Basichis > > Composer - Adventure Time - Cartoon Network > > http://www.caseyjamesbasichis.com > > caseybasichis@gmail.com > > 310.387.7540 > > -- Casey James Basichis Composer - Adventure Time - Cartoon Network http://www.caseyjamesbasichis.com caseybasichis@gmail.com 310.387.7540 --089e013a25e2ae400f04e466d375 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Thomas,

I just realized this isn'= ;t specific to Eclipse at all. =A0Typing ocaml in the terminal gives the sa= me error:

=A0 =A0 =A0 =A0 OCaml version 4.00.= 1

Cannot find file topfind.
Unknown directive `camlp= 4o'.

I am definitely running "eval `opam config en= v`" as well it is in my .bash_profile

When I try: opam install findlib
findlib= is not a valid versioned package name
'opam install findlib&= #39; failed.

The information about any of th= is on google is extremely scarce. I've installed three versions of the = compiler so far and all have given me this error.

As I noted earlier, I've tried make installing find= lib from the source. =A0

There is a topfind in the= =A04.01.0dev+trunk/lib/toplevel directory but it wasn't working when th= e system was set to that compiler. =A0I've tried moving the file to=A04= .00.1 but it give an error about being the wrong version.

copy/pasting the let()=3D.... into the ocaml in the ter= minal had no effect.

Any other idea as to what mig= ht be wrong?



<= div class=3D"gmail_quote"> On Tue, Aug 20, 2013 at 12:09 PM, Thomas Gazagnaire <<= a href=3D"mailto:thomas@ocamlpro.com" target=3D"_blank">thomas@ocamlpro.com= > wrote:
> I built the latest dev on osx and also installed the= ocaml binaries. =A0I am getting errors with OcaIDE. Eclipse:

You need to tell Eclipse/OcaIDE to load the right environment variabl= es (to locate your OPAM installation).

I am not very used to OcaIDE so I can't help you much there, but I can = suggest few workaround:

- start Eclipse on the command-line -- be sure to have "eval `opam con= fig env`" before. It it works that means that your application is not = run with the right environment variables -- dunno how to fix this properly = on OSX.

- copy paste:
> let () =3D
> =A0 try Topdirs.dir_directory (Sys.getenv "OCAML_TOPLEVEL_PATH&qu= ot;)
> =A0 with Not_found -> ()
directly in the Eclipse top-level, and run "#load "topfind&= quot; again. If it works, that means that OCaIDE is not loading ~/.ocamlini= t (a bug worth reporting upstream)

- change the path of ocaml& ocamlc/ocamlopt in some OcaIDE menus to har= d-code /Users/caseybasichis/.opam/4.01.0dev+trunk/bin/ocaml{,c,opt}

Hope this help,

Thomas

> OCaml version 4.00.1
> Cannot find file topfind.
>
> Unknown directive `camlp4o'.
>
> #
>
> I've tried a number of things to get it going to no avail.
>
> I added the following to ~/.ocamlinit :
> let () =3D
> =A0 try Topdirs.dir_directory (Sys.getenv "OCAML_TOPLEVEL_PATH&qu= ot;)
> =A0 with Not_found -> ()
>
> to ~/.bash_profile I added :
>
> export OCAML_TOPLEVEL_PATH=3D/Users/caseybasichis/.opam/4.01.0dev+trun= k/lib/toplevel
> eval `opam config env`
>
> I also tried adding those to ~/.profile
>
> I also tried building and make installing findlib-1.4
>
> If you have any ideas of how I might get this running I would greatly = appreciate it, I am very much looking forward to hello world hallelujah.
>
> Thanks,
> Casey
>
> --
> Casey James Basichis
> Composer - Adventure Time - Cartoon Network
> http:/= /www.caseyjamesbasichis.com
> caseybasichis@gmail.com=
> 310.387.7540



--
=
Casey James Basichis
Composer - Adventure Time - Cartoo= n Network
http://www.caseyjamesbasichis.com
caseybasichis@= gmail.com
310.387.7540
--089e013a25e2ae400f04e466d375--