caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Setting up OcaIDE
@ 2013-08-20 18:37 Casey Basichis
  2013-08-20 18:51 ` David Allsopp
  2013-08-20 19:09 ` Thomas Gazagnaire
  0 siblings, 2 replies; 16+ messages in thread
From: Casey Basichis @ 2013-08-20 18:37 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 1018 bytes --]

Hi,

I'm just getting started with ocaml, following along with the new "Real
World Ocaml" book.

I built the latest dev on osx and also installed the ocaml binaries.  I am
getting errors with OcaIDE. Eclipse:
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

[-- Attachment #2: Type: text/html, Size: 2870 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* RE: [Caml-list] Setting up OcaIDE
  2013-08-20 18:37 [Caml-list] Setting up OcaIDE Casey Basichis
@ 2013-08-20 18:51 ` David Allsopp
  2013-08-20 19:09 ` Thomas Gazagnaire
  1 sibling, 0 replies; 16+ messages in thread
From: David Allsopp @ 2013-08-20 18:51 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 1602 bytes --]

It looks like you haven't installed findlib (i.e. the ocamlfind command). findlib installs a script called topfind into your ocaml lib dir which loads findlib into the toplevel and provides the camlp4o directive.

I've not used opam, but I expect it's something along the lines of opam install findlib ...


David

From: caml-list-request@inria.fr [mailto:caml-list-request@inria.fr] On Behalf Of Casey Basichis
Sent: 20 August 2013 20:38
To: caml-list@inria.fr
Subject: [Caml-list] Setting up OcaIDE

Hi,

I'm just getting started with ocaml, following along with the new "Real World Ocaml" book.

I built the latest dev on osx and also installed the ocaml binaries.  I am getting errors with OcaIDE. Eclipse:
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<mailto:caseybasichis@gmail.com>
310.387.7540

[-- Attachment #2: Type: text/html, Size: 9412 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Caml-list] Setting up OcaIDE
  2013-08-20 18:37 [Caml-list] Setting up OcaIDE Casey Basichis
  2013-08-20 18:51 ` David Allsopp
@ 2013-08-20 19:09 ` Thomas Gazagnaire
  2013-08-20 20:23   ` Casey Basichis
  1 sibling, 1 reply; 16+ messages in thread
From: Thomas Gazagnaire @ 2013-08-20 19:09 UTC (permalink / raw)
  To: Casey Basichis; +Cc: caml-list

> 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


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Caml-list] Setting up OcaIDE
  2013-08-20 19:09 ` Thomas Gazagnaire
@ 2013-08-20 20:23   ` Casey Basichis
  2013-08-20 20:29     ` Jeremy Yallop
       [not found]     ` <20130820.223527.351659178592840423.Christophe.Troestler@umons.ac.be>
  0 siblings, 2 replies; 16+ messages in thread
From: Casey Basichis @ 2013-08-20 20:23 UTC (permalink / raw)
  To: Thomas Gazagnaire; +Cc: caml-list

[-- Attachment #1: Type: text/plain, Size: 3168 bytes --]

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 <thomas@ocamlpro.com>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

[-- Attachment #2: Type: text/html, Size: 4674 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Caml-list] Setting up OcaIDE
  2013-08-20 20:23   ` Casey Basichis
@ 2013-08-20 20:29     ` Jeremy Yallop
       [not found]     ` <20130820.223527.351659178592840423.Christophe.Troestler@umons.ac.be>
  1 sibling, 0 replies; 16+ messages in thread
From: Jeremy Yallop @ 2013-08-20 20:29 UTC (permalink / raw)
  To: Casey Basichis; +Cc: Thomas Gazagnaire, Caml List

On 20 August 2013 21:23, Casey Basichis <caseybasichis@gmail.com> wrote:
> When I try: opam install findlib
> findlib is not a valid versioned package name
> 'opam install findlib' failed.

You need 'opam install ocamlfind'.  A couple of useful commands:

  $ opam search findlib
  Available packages for 4.00.1:
  [...]
  ocamlfind     --  A library manager for OCaml
  [...]

  $ opam info ocamlfind
  [...]
  Findlib is a library manager for OCaml. It provides a
  convention how to store libraries, and a file format
  ("META") to describe the properties of libraries. There is
  also a tool (ocamlfind) for interpreting the META files,
  so that it is very easy to use libraries in programs and
  scripts.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Caml-list] Setting up OcaIDE
       [not found]     ` <20130820.223527.351659178592840423.Christophe.Troestler@umons.ac.be>
@ 2013-08-20 21:20       ` Casey Basichis
  2013-08-20 22:15         ` Leo White
  0 siblings, 1 reply; 16+ messages in thread
From: Casey Basichis @ 2013-08-20 21:20 UTC (permalink / raw)
  To: Christophe TROESTLER; +Cc: OCaml Mailing List

[-- Attachment #1: Type: text/plain, Size: 4152 bytes --]

The plot thickens...

I was able to instal view opan install ocamlfind.  Now typing ocaml into
the terminal gives me a different error, though eclipse still reports the
same:

        OCaml version 4.00.1


Cannot find file topfind.

Unknown directive `camlp4o'.

#
opam config env yields:


CAML_LD_LIBRARY_PATH=/Users/caseybasichis/.opam/4.00.1/lib/stublibs; export
CAML_LD_LIBRARY_PATH;
OCAML_TOPLEVEL_PATH=/Users/caseybasichis/.opam/4.00.1/lib/toplevel; export
OCAML_TOPLEVEL_PATH;
MANPATH=/Users/caseybasichis/.opam/4.00.1/man:; export MANPATH;
PATH=/Users/caseybasichis/.opam/4.00.1/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/git/bin;
export PATH;

ls $OCAML_TOPLEVEL_PATH
topfind

typing ocaml into the terminal yields:

        OCaml version 4.00.1

Findlib has been successfully loaded. Additional directives:
  #require "package";;      to load a package
  #list;;                   to list the available packages
  #camlp4o;;                to load camlp4 (standard syntax)
  #camlp4r;;                to load camlp4 (revised syntax)
  #predicates "p,q,...";;   to set these predicates
  Topfind.reset();;         to force that packages will be reloaded
  #thread;;                 to enable threads

/Users/caseybasichis/.opam/4.00.1/lib/ocaml/dynlink.cma: loaded
/Users/caseybasichis/.opam/4.00.1/lib/ocaml/camlp4: added to search path
/Users/caseybasichis/.opam/4.00.1/lib/ocaml/camlp4/camlp4o.cma: loaded
/Users/caseybasichis/.opam/4.00.1/lib/ocaml/unix.cma: loaded
/Users/caseybasichis/.opam/4.00.1/lib/ocaml/bigarray.cma: loaded
/Users/caseybasichis/.opam/4.00.1/lib/bin_prot: added to search path
/Users/caseybasichis/.opam/4.00.1/lib/bin_prot/bin_prot.cma: loaded
/Users/caseybasichis/.opam/4.00.1/lib/variantslib: added to search path
/Users/caseybasichis/.opam/4.00.1/lib/variantslib/variantslib.cma: loaded
/Users/caseybasichis/.opam/4.00.1/lib/ocaml/nums.cma: loaded
/Users/caseybasichis/.opam/4.00.1/lib/num-top: added to search path
/Users/caseybasichis/.opam/4.00.1/lib/num-top/num_top.cma: loaded
Camlp4 Parsing version 4.00.1

/Users/caseybasichis/.opam/4.00.1/lib/num: added to search path
/Users/caseybasichis/.opam/4.00.1/lib/sexplib: added to search path
/Users/caseybasichis/.opam/4.00.1/lib/sexplib/sexplib.cma: loaded
/Users/caseybasichis/.opam/4.00.1/lib/fieldslib: added to search path
/Users/caseybasichis/.opam/4.00.1/lib/fieldslib/fieldslib.cma: loaded
/Users/caseybasichis/.opam/4.00.1/lib/oUnit: added to search path
/Users/caseybasichis/.opam/4.00.1/lib/oUnit/oUnit.cma: loaded
/Users/caseybasichis/.opam/4.00.1/lib/pa_ounit: added to search path
/Users/caseybasichis/.opam/4.00.1/lib/pa_ounit/pa_ounit_lib.cma: loaded
/Users/caseybasichis/.opam/4.00.1/lib/res: added to search path
/Users/caseybasichis/.opam/4.00.1/lib/res/res.cma: loaded
/Users/caseybasichis/.opam/4.00.1/lib/core_kernel: added to search path
/Users/caseybasichis/.opam/4.00.1/lib/core_kernel/core_kernel.cma: loaded
/Users/caseybasichis/.opam/4.00.1/lib/core: added to search path
/Users/caseybasichis/.opam/4.00.1/lib/core/core.cma: loaded
File ".ocamlinit", line 1:
Error: Reference to undefined global `Condition'

I've been running - eval `opam config env` at every turn



On Tue, Aug 20, 2013 at 1:35 PM, Christophe TROESTLER <
Christophe.Troestler@umons.ac.be> wrote:

> On Tue, 20 Aug 2013 13:23:15 -0700, Casey Basichis wrote:
> >
> > 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
>
> Can you return the output of
>
>     opam config env
>
> and
>
>     ls $OCAML_TOPLEVEL_PATH
>
> > When I try: opam install findlib
> > findlib is not a valid versioned package name
> > 'opam install findlib' failed.
>
>     opan install ocamlfind
>
> Hope it helps,
> C.
>



-- 
Casey James Basichis
Composer - Adventure Time - Cartoon Network
http://www.caseyjamesbasichis.com
caseybasichis@gmail.com
310.387.7540

[-- Attachment #2: Type: text/html, Size: 5968 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Caml-list] Setting up OcaIDE
  2013-08-20 21:20       ` Casey Basichis
@ 2013-08-20 22:15         ` Leo White
  2013-08-20 22:18           ` Casey Basichis
  0 siblings, 1 reply; 16+ messages in thread
From: Leo White @ 2013-08-20 22:15 UTC (permalink / raw)
  To: Casey Basichis; +Cc: Christophe TROESTLER, OCaml Mailing List

> typing ocaml into the terminal yields:
>
>         OCaml version 4.00.1
>
> Findlib has been successfully loaded. Additional directives:
>   #require "package";;      to load a package
[...]
> /Users/caseybasichis/.opam/4.00.1/lib/core/core.cma: loaded
> File ".ocamlinit", line 1:
> Error: Reference to undefined global `Condition'

It looks like your .ocamlinit may be missing a "#thread" directive (required by Core).

Regards,

Leo

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Caml-list] Setting up OcaIDE
  2013-08-20 22:15         ` Leo White
@ 2013-08-20 22:18           ` Casey Basichis
  2013-08-20 22:46             ` Leo White
  0 siblings, 1 reply; 16+ messages in thread
From: Casey Basichis @ 2013-08-20 22:18 UTC (permalink / raw)
  To: Leo White; +Cc: Christophe TROESTLER, OCaml Mailing List

[-- Attachment #1: Type: text/plain, Size: 3529 bytes --]

I added #thread and I also tried adding a ";;" after all of the lines
starting with # .  Here is what my .ocamlinit looks like right now.

(* Added by OPAM. *)
let () =
  try Topdirs.dir_directory (Sys.getenv "OCAML_TOPLEVEL_PATH")
  with Not_found -> ()
;;

#use "topfind"
#camlp4o
#require "core.top"
#require "core.syntax"
#require "core_extended"
#require "async"
#thread
open Core.Std


The output in the terminal is:

        OCaml version 4.00.1

Findlib has been successfully loaded. Additional directives:
  #require "package";;      to load a package
  #list;;                   to list the available packages
  #camlp4o;;                to load camlp4 (standard syntax)
  #camlp4r;;                to load camlp4 (revised syntax)
  #predicates "p,q,...";;   to set these predicates
  Topfind.reset();;         to force that packages will be reloaded
  #thread;;                 to enable threads

/Users/caseybasichis/.opam/4.00.1/lib/ocaml/dynlink.cma: loaded
/Users/caseybasichis/.opam/4.00.1/lib/ocaml/camlp4: added to search path
/Users/caseybasichis/.opam/4.00.1/lib/ocaml/camlp4/camlp4o.cma: loaded
/Users/caseybasichis/.opam/4.00.1/lib/ocaml/unix.cma: loaded
/Users/caseybasichis/.opam/4.00.1/lib/ocaml/bigarray.cma: loaded
/Users/caseybasichis/.opam/4.00.1/lib/bin_prot: added to search path
/Users/caseybasichis/.opam/4.00.1/lib/bin_prot/bin_prot.cma: loaded
/Users/caseybasichis/.opam/4.00.1/lib/variantslib: added to search path
/Users/caseybasichis/.opam/4.00.1/lib/variantslib/variantslib.cma: loaded
/Users/caseybasichis/.opam/4.00.1/lib/ocaml/nums.cma: loaded
/Users/caseybasichis/.opam/4.00.1/lib/num-top: added to search path
/Users/caseybasichis/.opam/4.00.1/lib/num-top/num_top.cma: loaded
Camlp4 Parsing version 4.00.1

/Users/caseybasichis/.opam/4.00.1/lib/num: added to search path
/Users/caseybasichis/.opam/4.00.1/lib/sexplib: added to search path
/Users/caseybasichis/.opam/4.00.1/lib/sexplib/sexplib.cma: loaded
/Users/caseybasichis/.opam/4.00.1/lib/fieldslib: added to search path
/Users/caseybasichis/.opam/4.00.1/lib/fieldslib/fieldslib.cma: loaded
/Users/caseybasichis/.opam/4.00.1/lib/oUnit: added to search path
/Users/caseybasichis/.opam/4.00.1/lib/oUnit/oUnit.cma: loaded
/Users/caseybasichis/.opam/4.00.1/lib/pa_ounit: added to search path
/Users/caseybasichis/.opam/4.00.1/lib/pa_ounit/pa_ounit_lib.cma: loaded
/Users/caseybasichis/.opam/4.00.1/lib/res: added to search path
/Users/caseybasichis/.opam/4.00.1/lib/res/res.cma: loaded
/Users/caseybasichis/.opam/4.00.1/lib/core_kernel: added to search path
/Users/caseybasichis/.opam/4.00.1/lib/core_kernel/core_kernel.cma: loaded
/Users/caseybasichis/.opam/4.00.1/lib/core: added to search path
/Users/caseybasichis/.opam/4.00.1/lib/core/core.cma: loaded
File ".ocamlinit", line 1:
Error: Reference to undefined global `Condition'

Thanks,
Casey




On Tue, Aug 20, 2013 at 3:15 PM, Leo White <lpw25@cam.ac.uk> wrote:

> > typing ocaml into the terminal yields:
> >
> >         OCaml version 4.00.1
> >
> > Findlib has been successfully loaded. Additional directives:
> >   #require "package";;      to load a package
> [...]
> > /Users/caseybasichis/.opam/4.00.1/lib/core/core.cma: loaded
> > File ".ocamlinit", line 1:
> > Error: Reference to undefined global `Condition'
>
> It looks like your .ocamlinit may be missing a "#thread" directive
> (required by Core).
>
> Regards,
>
> Leo
>



-- 
Casey James Basichis
Composer - Adventure Time - Cartoon Network
http://www.caseyjamesbasichis.com
caseybasichis@gmail.com
310.387.7540

[-- Attachment #2: Type: text/html, Size: 5078 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Caml-list] Setting up OcaIDE
  2013-08-20 22:18           ` Casey Basichis
@ 2013-08-20 22:46             ` Leo White
  2013-08-21  0:16               ` Casey Basichis
  0 siblings, 1 reply; 16+ messages in thread
From: Leo White @ 2013-08-20 22:46 UTC (permalink / raw)
  To: Casey Basichis; +Cc: Christophe TROESTLER, OCaml Mailing List

> I added #thread and I also tried adding a ";;" after all of the lines starting with # .  Here is what my .ocamlinit
> looks like right now.
>
> (* Added by OPAM. *)
> let () =
>   try Topdirs.dir_directory (Sys.getenv "OCAML_TOPLEVEL_PATH")
>   with Not_found -> ()
> ;;
>
> #use "topfind"
> #camlp4o
> #require "core.top"
> #require "core.syntax"
> #require "core_extended"
> #require "async"
> #thread
> open Core.Std

The '#thread' directive needs to come before the '#require "core.top"'
directive.

Regards,

Leo

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Caml-list] Setting up OcaIDE
  2013-08-20 22:46             ` Leo White
@ 2013-08-21  0:16               ` Casey Basichis
  2013-08-21  6:32                 ` Komtanoo Pinpimai
  0 siblings, 1 reply; 16+ messages in thread
From: Casey Basichis @ 2013-08-21  0:16 UTC (permalink / raw)
  To: Leo White; +Cc: Christophe TROESTLER, OCaml Mailing List

[-- Attachment #1: Type: text/plain, Size: 4405 bytes --]

Moving #thread allowed ocaml to run in the terminal.  It was still not
working in Eclipse so I changed the paths
to: /Users/caseybasichis/.opam/4.00.1/bin/ocaml  etc

It seems to get further along in the loading process but there are some
errors:

        OCaml version 4.00.1


Findlib has been successfully loaded. Additional directives:

  #require "package";;      to load a package

  #list;;                   to list the available packages

  #camlp4o;;                to load camlp4 (standard syntax)

  #camlp4r;;                to load camlp4 (revised syntax)

  #predicates "p,q,...";;   to set these predicates

  Topfind.reset();;         to force that packages will be reloaded

  #thread;;                 to enable threads


/Users/caseybasichis/.opam/4.00.1/lib/ocaml/dynlink.cma: loaded

/Users/caseybasichis/.opam/4.00.1/lib/ocaml/camlp4: added to search path

/Users/caseybasichis/.opam/4.00.1/lib/ocaml/camlp4/camlp4o.cma: loaded

/Users/caseybasichis/.opam/4.00.1/lib/ocaml/threads: added to search path

/Users/caseybasichis/.opam/4.00.1/lib/ocaml/unix.cma: loaded

/Users/caseybasichis/.opam/4.00.1/lib/ocaml/threads/threads.cma: loaded

/Users/caseybasichis/.opam/4.00.1/lib/ocaml/bigarray.cma: loaded

/Users/caseybasichis/.opam/4.00.1/lib/bin_prot: added to search path

/Users/caseybasichis/.opam/4.00.1/lib/bin_prot/bin_prot.cma: loaded

Cannot load required shared library dllbin_prot_stubs.

Reason: dllbin_prot_stubs.so: dlopen(dllbin_prot_stubs.so, 138): image not
found.

/Users/caseybasichis/.opam/4.00.1/lib/variantslib: added to search path

/Users/caseybasichis/.opam/4.00.1/lib/variantslib/variantslib.cma: loaded

/Users/caseybasichis/.opam/4.00.1/lib/ocaml/nums.cma: loaded

/Users/caseybasichis/.opam/4.00.1/lib/num-top: added to search path

/Users/caseybasichis/.opam/4.00.1/lib/num-top/num_top.cma: loaded

Camlp4 Parsing version 4.00.1


/Users/caseybasichis/.opam/4.00.1/lib/num: added to search path

/Users/caseybasichis/.opam/4.00.1/lib/sexplib: added to search path

/Users/caseybasichis/.opam/4.00.1/lib/sexplib/sexplib.cma: loaded

/Users/caseybasichis/.opam/4.00.1/lib/fieldslib: added to search path

/Users/caseybasichis/.opam/4.00.1/lib/fieldslib/fieldslib.cma: loaded

/Users/caseybasichis/.opam/4.00.1/lib/oUnit: added to search path

/Users/caseybasichis/.opam/4.00.1/lib/oUnit/oUnit.cma: loaded

/Users/caseybasichis/.opam/4.00.1/lib/pa_ounit: added to search path

/Users/caseybasichis/.opam/4.00.1/lib/pa_ounit/pa_ounit_lib.cma: loaded

/Users/caseybasichis/.opam/4.00.1/lib/res: added to search path

/Users/caseybasichis/.opam/4.00.1/lib/res/res.cma: loaded

/Users/caseybasichis/.opam/4.00.1/lib/core_kernel: added to search path

/Users/caseybasichis/.opam/4.00.1/lib/core_kernel/core_kernel.cma: loaded

Cannot load required shared library dllcore_kernel_stubs.

Reason: dllcore_kernel_stubs.so: dlopen(dllcore_kernel_stubs.so, 138):
image not found.

/Users/caseybasichis/.opam/4.00.1/lib/core: added to search path

/Users/caseybasichis/.opam/4.00.1/lib/core/core.cma: loaded

Cannot load required shared library dllcore_stubs.

Reason: dllcore_stubs.so: dlopen(dllcore_stubs.so, 138): image not found.

/Users/caseybasichis/.opam/4.00.1/lib/core/core_top.cma: loaded

File "/Users/caseybasichis/.ocamlinit", line 1:

Error: Reference to undefined global `Core'


Here is my .ocamlinit:

(* Added by OPAM. *)

let () =

  try Topdirs.dir_directory (Sys.getenv "OCAML_TOPLEVEL_PATH")

  with Not_found -> ()

;;


#use "topfind"

#camlp4o

#thread

#require "core.top"

#require "core.syntax"

#require "core_extended"

#require "async"

open Core.Std



On Tue, Aug 20, 2013 at 3:46 PM, Leo White <lpw25@cam.ac.uk> wrote:

> > I added #thread and I also tried adding a ";;" after all of the lines
> starting with # .  Here is what my .ocamlinit
> > looks like right now.
> >
> > (* Added by OPAM. *)
> > let () =
> >   try Topdirs.dir_directory (Sys.getenv "OCAML_TOPLEVEL_PATH")
> >   with Not_found -> ()
> > ;;
> >
> > #use "topfind"
> > #camlp4o
> > #require "core.top"
> > #require "core.syntax"
> > #require "core_extended"
> > #require "async"
> > #thread
> > open Core.Std
>
> The '#thread' directive needs to come before the '#require "core.top"'
> directive.
>
> Regards,
>
> Leo
>



-- 
Casey James Basichis
Composer - Adventure Time - Cartoon Network
http://www.caseyjamesbasichis.com
caseybasichis@gmail.com
310.387.7540

[-- Attachment #2: Type: text/html, Size: 6406 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Caml-list] Setting up OcaIDE
  2013-08-21  0:16               ` Casey Basichis
@ 2013-08-21  6:32                 ` Komtanoo Pinpimai
  2013-08-21 15:13                   ` Casey Basichis
  0 siblings, 1 reply; 16+ messages in thread
From: Komtanoo Pinpimai @ 2013-08-21  6:32 UTC (permalink / raw)
  To: OCaml Mailing List

I never get ocaide working with ocaml 4. Anyone knows for sure if it
works or not. I always get the error "include project and resource
name: /:" on "managed project".

On Tue, Aug 20, 2013 at 5:16 PM, Casey Basichis <caseybasichis@gmail.com> wrote:
> Moving #thread allowed ocaml to run in the terminal.  It was still not
> working in Eclipse so I changed the paths to:
> /Users/caseybasichis/.opam/4.00.1/bin/ocaml  etc
>
> It seems to get further along in the loading process but there are some
> errors:
>
>         OCaml version 4.00.1
>
>
> Findlib has been successfully loaded. Additional directives:
>
>   #require "package";;      to load a package
>
>   #list;;                   to list the available packages
>
>   #camlp4o;;                to load camlp4 (standard syntax)
>
>   #camlp4r;;                to load camlp4 (revised syntax)
>
>   #predicates "p,q,...";;   to set these predicates
>
>   Topfind.reset();;         to force that packages will be reloaded
>
>   #thread;;                 to enable threads
>
>
> /Users/caseybasichis/.opam/4.00.1/lib/ocaml/dynlink.cma: loaded
>
> /Users/caseybasichis/.opam/4.00.1/lib/ocaml/camlp4: added to search path
>
> /Users/caseybasichis/.opam/4.00.1/lib/ocaml/camlp4/camlp4o.cma: loaded
>
> /Users/caseybasichis/.opam/4.00.1/lib/ocaml/threads: added to search path
>
> /Users/caseybasichis/.opam/4.00.1/lib/ocaml/unix.cma: loaded
>
> /Users/caseybasichis/.opam/4.00.1/lib/ocaml/threads/threads.cma: loaded
>
> /Users/caseybasichis/.opam/4.00.1/lib/ocaml/bigarray.cma: loaded
>
> /Users/caseybasichis/.opam/4.00.1/lib/bin_prot: added to search path
>
> /Users/caseybasichis/.opam/4.00.1/lib/bin_prot/bin_prot.cma: loaded
>
> Cannot load required shared library dllbin_prot_stubs.
>
> Reason: dllbin_prot_stubs.so: dlopen(dllbin_prot_stubs.so, 138): image not
> found.
>
> /Users/caseybasichis/.opam/4.00.1/lib/variantslib: added to search path
>
> /Users/caseybasichis/.opam/4.00.1/lib/variantslib/variantslib.cma: loaded
>
> /Users/caseybasichis/.opam/4.00.1/lib/ocaml/nums.cma: loaded
>
> /Users/caseybasichis/.opam/4.00.1/lib/num-top: added to search path
>
> /Users/caseybasichis/.opam/4.00.1/lib/num-top/num_top.cma: loaded
>
> Camlp4 Parsing version 4.00.1
>
>
> /Users/caseybasichis/.opam/4.00.1/lib/num: added to search path
>
> /Users/caseybasichis/.opam/4.00.1/lib/sexplib: added to search path
>
> /Users/caseybasichis/.opam/4.00.1/lib/sexplib/sexplib.cma: loaded
>
> /Users/caseybasichis/.opam/4.00.1/lib/fieldslib: added to search path
>
> /Users/caseybasichis/.opam/4.00.1/lib/fieldslib/fieldslib.cma: loaded
>
> /Users/caseybasichis/.opam/4.00.1/lib/oUnit: added to search path
>
> /Users/caseybasichis/.opam/4.00.1/lib/oUnit/oUnit.cma: loaded
>
> /Users/caseybasichis/.opam/4.00.1/lib/pa_ounit: added to search path
>
> /Users/caseybasichis/.opam/4.00.1/lib/pa_ounit/pa_ounit_lib.cma: loaded
>
> /Users/caseybasichis/.opam/4.00.1/lib/res: added to search path
>
> /Users/caseybasichis/.opam/4.00.1/lib/res/res.cma: loaded
>
> /Users/caseybasichis/.opam/4.00.1/lib/core_kernel: added to search path
>
> /Users/caseybasichis/.opam/4.00.1/lib/core_kernel/core_kernel.cma: loaded
>
> Cannot load required shared library dllcore_kernel_stubs.
>
> Reason: dllcore_kernel_stubs.so: dlopen(dllcore_kernel_stubs.so, 138): image
> not found.
>
> /Users/caseybasichis/.opam/4.00.1/lib/core: added to search path
>
> /Users/caseybasichis/.opam/4.00.1/lib/core/core.cma: loaded
>
> Cannot load required shared library dllcore_stubs.
>
> Reason: dllcore_stubs.so: dlopen(dllcore_stubs.so, 138): image not found.
>
> /Users/caseybasichis/.opam/4.00.1/lib/core/core_top.cma: loaded
>
> File "/Users/caseybasichis/.ocamlinit", line 1:
>
> Error: Reference to undefined global `Core'
>
>
> Here is my .ocamlinit:
>
> (* Added by OPAM. *)
>
> let () =
>
>   try Topdirs.dir_directory (Sys.getenv "OCAML_TOPLEVEL_PATH")
>
>   with Not_found -> ()
>
> ;;
>
>
> #use "topfind"
>
> #camlp4o
>
> #thread
>
> #require "core.top"
>
> #require "core.syntax"
>
> #require "core_extended"
>
> #require "async"
>
> open Core.Std
>
>
>
>
> On Tue, Aug 20, 2013 at 3:46 PM, Leo White <lpw25@cam.ac.uk> wrote:
>>
>> > I added #thread and I also tried adding a ";;" after all of the lines
>> > starting with # .  Here is what my .ocamlinit
>> > looks like right now.
>> >
>> > (* Added by OPAM. *)
>> > let () =
>> >   try Topdirs.dir_directory (Sys.getenv "OCAML_TOPLEVEL_PATH")
>> >   with Not_found -> ()
>> > ;;
>> >
>> > #use "topfind"
>> > #camlp4o
>> > #require "core.top"
>> > #require "core.syntax"
>> > #require "core_extended"
>> > #require "async"
>> > #thread
>> > open Core.Std
>>
>> The '#thread' directive needs to come before the '#require "core.top"'
>> directive.
>>
>> Regards,
>>
>> Leo
>
>
>
>
> --
> Casey James Basichis
> Composer - Adventure Time - Cartoon Network
> http://www.caseyjamesbasichis.com
> caseybasichis@gmail.com
> 310.387.7540



-- 
In accordance with U.S. Treasury regulations, if this message contains
advice concerning one or more Federal tax issues, it is not a formal
legal opinion and may not be used by any person for the avoidance of
Federal tax penalties.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Caml-list] Setting up OcaIDE
  2013-08-21  6:32                 ` Komtanoo Pinpimai
@ 2013-08-21 15:13                   ` Casey Basichis
  2013-08-21 16:10                     ` Ashish Agarwal
                                       ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Casey Basichis @ 2013-08-21 15:13 UTC (permalink / raw)
  To: romerun; +Cc: OCaml Mailing List

[-- Attachment #1: Type: text/plain, Size: 6285 bytes --]

May I ask what you are using in place of Eclipse?

I've never used emacs, but after several days trying to get Eclipse to work
its learning curve is starting to look like a better use of time.

What tools are folks commonly using to wrangle ocaml.  I'm on osx here, if
it makes any difference.


On Tue, Aug 20, 2013 at 11:32 PM, Komtanoo Pinpimai <romerun@gmail.com>wrote:

> I never get ocaide working with ocaml 4. Anyone knows for sure if it
> works or not. I always get the error "include project and resource
> name: /:" on "managed project".
>
> On Tue, Aug 20, 2013 at 5:16 PM, Casey Basichis <caseybasichis@gmail.com>
> wrote:
> > Moving #thread allowed ocaml to run in the terminal.  It was still not
> > working in Eclipse so I changed the paths to:
> > /Users/caseybasichis/.opam/4.00.1/bin/ocaml  etc
> >
> > It seems to get further along in the loading process but there are some
> > errors:
> >
> >         OCaml version 4.00.1
> >
> >
> > Findlib has been successfully loaded. Additional directives:
> >
> >   #require "package";;      to load a package
> >
> >   #list;;                   to list the available packages
> >
> >   #camlp4o;;                to load camlp4 (standard syntax)
> >
> >   #camlp4r;;                to load camlp4 (revised syntax)
> >
> >   #predicates "p,q,...";;   to set these predicates
> >
> >   Topfind.reset();;         to force that packages will be reloaded
> >
> >   #thread;;                 to enable threads
> >
> >
> > /Users/caseybasichis/.opam/4.00.1/lib/ocaml/dynlink.cma: loaded
> >
> > /Users/caseybasichis/.opam/4.00.1/lib/ocaml/camlp4: added to search path
> >
> > /Users/caseybasichis/.opam/4.00.1/lib/ocaml/camlp4/camlp4o.cma: loaded
> >
> > /Users/caseybasichis/.opam/4.00.1/lib/ocaml/threads: added to search path
> >
> > /Users/caseybasichis/.opam/4.00.1/lib/ocaml/unix.cma: loaded
> >
> > /Users/caseybasichis/.opam/4.00.1/lib/ocaml/threads/threads.cma: loaded
> >
> > /Users/caseybasichis/.opam/4.00.1/lib/ocaml/bigarray.cma: loaded
> >
> > /Users/caseybasichis/.opam/4.00.1/lib/bin_prot: added to search path
> >
> > /Users/caseybasichis/.opam/4.00.1/lib/bin_prot/bin_prot.cma: loaded
> >
> > Cannot load required shared library dllbin_prot_stubs.
> >
> > Reason: dllbin_prot_stubs.so: dlopen(dllbin_prot_stubs.so, 138): image
> not
> > found.
> >
> > /Users/caseybasichis/.opam/4.00.1/lib/variantslib: added to search path
> >
> > /Users/caseybasichis/.opam/4.00.1/lib/variantslib/variantslib.cma: loaded
> >
> > /Users/caseybasichis/.opam/4.00.1/lib/ocaml/nums.cma: loaded
> >
> > /Users/caseybasichis/.opam/4.00.1/lib/num-top: added to search path
> >
> > /Users/caseybasichis/.opam/4.00.1/lib/num-top/num_top.cma: loaded
> >
> > Camlp4 Parsing version 4.00.1
> >
> >
> > /Users/caseybasichis/.opam/4.00.1/lib/num: added to search path
> >
> > /Users/caseybasichis/.opam/4.00.1/lib/sexplib: added to search path
> >
> > /Users/caseybasichis/.opam/4.00.1/lib/sexplib/sexplib.cma: loaded
> >
> > /Users/caseybasichis/.opam/4.00.1/lib/fieldslib: added to search path
> >
> > /Users/caseybasichis/.opam/4.00.1/lib/fieldslib/fieldslib.cma: loaded
> >
> > /Users/caseybasichis/.opam/4.00.1/lib/oUnit: added to search path
> >
> > /Users/caseybasichis/.opam/4.00.1/lib/oUnit/oUnit.cma: loaded
> >
> > /Users/caseybasichis/.opam/4.00.1/lib/pa_ounit: added to search path
> >
> > /Users/caseybasichis/.opam/4.00.1/lib/pa_ounit/pa_ounit_lib.cma: loaded
> >
> > /Users/caseybasichis/.opam/4.00.1/lib/res: added to search path
> >
> > /Users/caseybasichis/.opam/4.00.1/lib/res/res.cma: loaded
> >
> > /Users/caseybasichis/.opam/4.00.1/lib/core_kernel: added to search path
> >
> > /Users/caseybasichis/.opam/4.00.1/lib/core_kernel/core_kernel.cma: loaded
> >
> > Cannot load required shared library dllcore_kernel_stubs.
> >
> > Reason: dllcore_kernel_stubs.so: dlopen(dllcore_kernel_stubs.so, 138):
> image
> > not found.
> >
> > /Users/caseybasichis/.opam/4.00.1/lib/core: added to search path
> >
> > /Users/caseybasichis/.opam/4.00.1/lib/core/core.cma: loaded
> >
> > Cannot load required shared library dllcore_stubs.
> >
> > Reason: dllcore_stubs.so: dlopen(dllcore_stubs.so, 138): image not found.
> >
> > /Users/caseybasichis/.opam/4.00.1/lib/core/core_top.cma: loaded
> >
> > File "/Users/caseybasichis/.ocamlinit", line 1:
> >
> > Error: Reference to undefined global `Core'
> >
> >
> > Here is my .ocamlinit:
> >
> > (* Added by OPAM. *)
> >
> > let () =
> >
> >   try Topdirs.dir_directory (Sys.getenv "OCAML_TOPLEVEL_PATH")
> >
> >   with Not_found -> ()
> >
> > ;;
> >
> >
> > #use "topfind"
> >
> > #camlp4o
> >
> > #thread
> >
> > #require "core.top"
> >
> > #require "core.syntax"
> >
> > #require "core_extended"
> >
> > #require "async"
> >
> > open Core.Std
> >
> >
> >
> >
> > On Tue, Aug 20, 2013 at 3:46 PM, Leo White <lpw25@cam.ac.uk> wrote:
> >>
> >> > I added #thread and I also tried adding a ";;" after all of the lines
> >> > starting with # .  Here is what my .ocamlinit
> >> > looks like right now.
> >> >
> >> > (* Added by OPAM. *)
> >> > let () =
> >> >   try Topdirs.dir_directory (Sys.getenv "OCAML_TOPLEVEL_PATH")
> >> >   with Not_found -> ()
> >> > ;;
> >> >
> >> > #use "topfind"
> >> > #camlp4o
> >> > #require "core.top"
> >> > #require "core.syntax"
> >> > #require "core_extended"
> >> > #require "async"
> >> > #thread
> >> > open Core.Std
> >>
> >> The '#thread' directive needs to come before the '#require "core.top"'
> >> directive.
> >>
> >> Regards,
> >>
> >> Leo
> >
> >
> >
> >
> > --
> > Casey James Basichis
> > Composer - Adventure Time - Cartoon Network
> > http://www.caseyjamesbasichis.com
> > caseybasichis@gmail.com
> > 310.387.7540
>
>
>
> --
> In accordance with U.S. Treasury regulations, if this message contains
> advice concerning one or more Federal tax issues, it is not a formal
> legal opinion and may not be used by any person for the avoidance of
> Federal tax penalties.
>
> --
> Caml-list mailing list.  Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>



-- 
Casey James Basichis
Composer - Adventure Time - Cartoon Network
http://www.caseyjamesbasichis.com
caseybasichis@gmail.com
310.387.7540

[-- Attachment #2: Type: text/html, Size: 9002 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Caml-list] Setting up OcaIDE
  2013-08-21 15:13                   ` Casey Basichis
@ 2013-08-21 16:10                     ` Ashish Agarwal
  2013-08-21 16:21                     ` Siraaj Khandkar
  2013-08-22 20:19                     ` William R
  2 siblings, 0 replies; 16+ messages in thread
From: Ashish Agarwal @ 2013-08-21 16:10 UTC (permalink / raw)
  To: Casey Basichis; +Cc: romerun, OCaml Mailing List

[-- Attachment #1: Type: text/plain, Size: 298 bytes --]

On Wed, Aug 21, 2013 at 11:13 AM, Casey Basichis <caseybasichis@gmail.com>wrote:

What tools are folks commonly using to wrangle ocaml.  I'm on osx here, if
> it makes any difference.
>

I believe Emacs and Vim are by far the two most common editors used. All
others have a much smaller user base.

[-- Attachment #2: Type: text/html, Size: 648 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Caml-list] Setting up OcaIDE
  2013-08-21 15:13                   ` Casey Basichis
  2013-08-21 16:10                     ` Ashish Agarwal
@ 2013-08-21 16:21                     ` Siraaj Khandkar
  2013-08-22  3:20                       ` Johan Mazel
  2013-08-22 20:19                     ` William R
  2 siblings, 1 reply; 16+ messages in thread
From: Siraaj Khandkar @ 2013-08-21 16:21 UTC (permalink / raw)
  To: Casey Basichis; +Cc: romerun, OCaml Mailing List

On 08/21/2013 11:13 AM, Casey Basichis wrote:
>
> May I ask what you are using in place of Eclipse?
>
> I've never used emacs, but after several days trying to get Eclipse to
> work its learning curve is starting to look like a better use of time.
>
> What tools are folks commonly using to wrangle ocaml.  I'm on osx here,
> if it makes any difference.
>

I use Vim with omlet [1] and syntax file stolen from Marcus Mottl [2]. 
On both, Mac and Linux, but it doesn't make a difference :)


[1]: http://www.vim.org/scripts/script.php?script_id=1196
[2]: https://bitbucket.org/mmottl/vim-files/src/

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Caml-list] Setting up OcaIDE
  2013-08-21 16:21                     ` Siraaj Khandkar
@ 2013-08-22  3:20                       ` Johan Mazel
  0 siblings, 0 replies; 16+ messages in thread
From: Johan Mazel @ 2013-08-22  3:20 UTC (permalink / raw)
  To: Siraaj Khandkar; +Cc: Casey Basichis, romerun, OCaml Mailing List

[-- Attachment #1: Type: text/plain, Size: 1492 bytes --]

Personally, I use OcaIDE but I use "Makefile project" and I manage my
compilation with oasis. Inside the Makefile, I call the oasis
configuration/compilation.
This (sometimes) create some problems when I want to open function
definition. The opened file is often the one in ./_build/src instead of
./src but, otherwise everything is working fine.


2013/8/22 Siraaj Khandkar <siraaj@khandkar.net>

> On 08/21/2013 11:13 AM, Casey Basichis wrote:
>
>>
>> May I ask what you are using in place of Eclipse?
>>
>> I've never used emacs, but after several days trying to get Eclipse to
>> work its learning curve is starting to look like a better use of time.
>>
>> What tools are folks commonly using to wrangle ocaml.  I'm on osx here,
>> if it makes any difference.
>>
>>
> I use Vim with omlet [1] and syntax file stolen from Marcus Mottl [2]. On
> both, Mac and Linux, but it doesn't make a difference :)
>
>
> [1]: http://www.vim.org/scripts/**script.php?script_id=1196<http://www.vim.org/scripts/script.php?script_id=1196>
> [2]: https://bitbucket.org/mmottl/**vim-files/src/<https://bitbucket.org/mmottl/vim-files/src/>
>
>
> --
> Caml-list mailing list.  Subscription management and archives:
> https://sympa.inria.fr/sympa/**arc/caml-list<https://sympa.inria.fr/sympa/arc/caml-list>
> Beginner's list: http://groups.yahoo.com/group/**ocaml_beginners<http://groups.yahoo.com/group/ocaml_beginners>
> Bug reports: http://caml.inria.fr/bin/caml-**bugs<http://caml.inria.fr/bin/caml-bugs>
>

[-- Attachment #2: Type: text/html, Size: 2245 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Caml-list] Setting up OcaIDE
  2013-08-21 15:13                   ` Casey Basichis
  2013-08-21 16:10                     ` Ashish Agarwal
  2013-08-21 16:21                     ` Siraaj Khandkar
@ 2013-08-22 20:19                     ` William R
  2 siblings, 0 replies; 16+ messages in thread
From: William R @ 2013-08-22 20:19 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 7870 bytes --]

Personnaly I use emacs + tuareg mode (which gives indentation, syntax 
highlighting, and browsing)  and maybe I will try merlin mode (that 
would give live error detection and autocompletion).
I tested quickly 5 years ago odt plugin, but went back to emacs. I don't 
remember for ocaIDE, but for odt at the time it was too slow, it had 
keyword shortcuts that I didn't like, and compilation workflow did not 
suit me (OcamlMakefile).



On 21/08/2013 17:13, Casey Basichis wrote:
>
> May I ask what you are using in place of Eclipse?
>
> I've never used emacs, but after several days trying to get Eclipse to 
> work its learning curve is starting to look like a better use of time.
>
> What tools are folks commonly using to wrangle ocaml.  I'm on osx 
> here, if it makes any difference.
>
>
> On Tue, Aug 20, 2013 at 11:32 PM, Komtanoo Pinpimai <romerun@gmail.com 
> <mailto:romerun@gmail.com>> wrote:
>
>     I never get ocaide working with ocaml 4. Anyone knows for sure if it
>     works or not. I always get the error "include project and resource
>     name: /:" on "managed project".
>
>     On Tue, Aug 20, 2013 at 5:16 PM, Casey Basichis
>     <caseybasichis@gmail.com <mailto:caseybasichis@gmail.com>> wrote:
>     > Moving #thread allowed ocaml to run in the terminal.  It was
>     still not
>     > working in Eclipse so I changed the paths to:
>     > /Users/caseybasichis/.opam/4.00.1/bin/ocaml  etc
>     >
>     > It seems to get further along in the loading process but there
>     are some
>     > errors:
>     >
>     >         OCaml version 4.00.1
>     >
>     >
>     > Findlib has been successfully loaded. Additional directives:
>     >
>     >   #require "package";;      to load a package
>     >
>     >   #list;;                   to list the available packages
>     >
>     >   #camlp4o;;                to load camlp4 (standard syntax)
>     >
>     >   #camlp4r;;                to load camlp4 (revised syntax)
>     >
>     >   #predicates "p,q,...";;   to set these predicates
>     >
>     >   Topfind.reset();;         to force that packages will be reloaded
>     >
>     >   #thread;;                 to enable threads
>     >
>     >
>     > /Users/caseybasichis/.opam/4.00.1/lib/ocaml/dynlink.cma: loaded
>     >
>     > /Users/caseybasichis/.opam/4.00.1/lib/ocaml/camlp4: added to
>     search path
>     >
>     > /Users/caseybasichis/.opam/4.00.1/lib/ocaml/camlp4/camlp4o.cma:
>     loaded
>     >
>     > /Users/caseybasichis/.opam/4.00.1/lib/ocaml/threads: added to
>     search path
>     >
>     > /Users/caseybasichis/.opam/4.00.1/lib/ocaml/unix.cma: loaded
>     >
>     > /Users/caseybasichis/.opam/4.00.1/lib/ocaml/threads/threads.cma:
>     loaded
>     >
>     > /Users/caseybasichis/.opam/4.00.1/lib/ocaml/bigarray.cma: loaded
>     >
>     > /Users/caseybasichis/.opam/4.00.1/lib/bin_prot: added to search path
>     >
>     > /Users/caseybasichis/.opam/4.00.1/lib/bin_prot/bin_prot.cma: loaded
>     >
>     > Cannot load required shared library dllbin_prot_stubs.
>     >
>     > Reason: dllbin_prot_stubs.so: dlopen(dllbin_prot_stubs.so, 138):
>     image not
>     > found.
>     >
>     > /Users/caseybasichis/.opam/4.00.1/lib/variantslib: added to
>     search path
>     >
>     >
>     /Users/caseybasichis/.opam/4.00.1/lib/variantslib/variantslib.cma:
>     loaded
>     >
>     > /Users/caseybasichis/.opam/4.00.1/lib/ocaml/nums.cma: loaded
>     >
>     > /Users/caseybasichis/.opam/4.00.1/lib/num-top: added to search path
>     >
>     > /Users/caseybasichis/.opam/4.00.1/lib/num-top/num_top.cma: loaded
>     >
>     > Camlp4 Parsing version 4.00.1
>     >
>     >
>     > /Users/caseybasichis/.opam/4.00.1/lib/num: added to search path
>     >
>     > /Users/caseybasichis/.opam/4.00.1/lib/sexplib: added to search path
>     >
>     > /Users/caseybasichis/.opam/4.00.1/lib/sexplib/sexplib.cma: loaded
>     >
>     > /Users/caseybasichis/.opam/4.00.1/lib/fieldslib: added to search
>     path
>     >
>     > /Users/caseybasichis/.opam/4.00.1/lib/fieldslib/fieldslib.cma:
>     loaded
>     >
>     > /Users/caseybasichis/.opam/4.00.1/lib/oUnit: added to search path
>     >
>     > /Users/caseybasichis/.opam/4.00.1/lib/oUnit/oUnit.cma: loaded
>     >
>     > /Users/caseybasichis/.opam/4.00.1/lib/pa_ounit: added to search path
>     >
>     > /Users/caseybasichis/.opam/4.00.1/lib/pa_ounit/pa_ounit_lib.cma:
>     loaded
>     >
>     > /Users/caseybasichis/.opam/4.00.1/lib/res: added to search path
>     >
>     > /Users/caseybasichis/.opam/4.00.1/lib/res/res.cma: loaded
>     >
>     > /Users/caseybasichis/.opam/4.00.1/lib/core_kernel: added to
>     search path
>     >
>     >
>     /Users/caseybasichis/.opam/4.00.1/lib/core_kernel/core_kernel.cma:
>     loaded
>     >
>     > Cannot load required shared library dllcore_kernel_stubs.
>     >
>     > Reason: dllcore_kernel_stubs.so: dlopen(dllcore_kernel_stubs.so,
>     138): image
>     > not found.
>     >
>     > /Users/caseybasichis/.opam/4.00.1/lib/core: added to search path
>     >
>     > /Users/caseybasichis/.opam/4.00.1/lib/core/core.cma: loaded
>     >
>     > Cannot load required shared library dllcore_stubs.
>     >
>     > Reason: dllcore_stubs.so: dlopen(dllcore_stubs.so, 138): image
>     not found.
>     >
>     > /Users/caseybasichis/.opam/4.00.1/lib/core/core_top.cma: loaded
>     >
>     > File "/Users/caseybasichis/.ocamlinit", line 1:
>     >
>     > Error: Reference to undefined global `Core'
>     >
>     >
>     > Here is my .ocamlinit:
>     >
>     > (* Added by OPAM. *)
>     >
>     > let () =
>     >
>     >   try Topdirs.dir_directory (Sys.getenv "OCAML_TOPLEVEL_PATH")
>     >
>     >   with Not_found -> ()
>     >
>     > ;;
>     >
>     >
>     > #use "topfind"
>     >
>     > #camlp4o
>     >
>     > #thread
>     >
>     > #require "core.top"
>     >
>     > #require "core.syntax"
>     >
>     > #require "core_extended"
>     >
>     > #require "async"
>     >
>     > open Core.Std
>     >
>     >
>     >
>     >
>     > On Tue, Aug 20, 2013 at 3:46 PM, Leo White <lpw25@cam.ac.uk
>     <mailto:lpw25@cam.ac.uk>> wrote:
>     >>
>     >> > I added #thread and I also tried adding a ";;" after all of
>     the lines
>     >> > starting with # .  Here is what my .ocamlinit
>     >> > looks like right now.
>     >> >
>     >> > (* Added by OPAM. *)
>     >> > let () =
>     >> >   try Topdirs.dir_directory (Sys.getenv "OCAML_TOPLEVEL_PATH")
>     >> >   with Not_found -> ()
>     >> > ;;
>     >> >
>     >> > #use "topfind"
>     >> > #camlp4o
>     >> > #require "core.top"
>     >> > #require "core.syntax"
>     >> > #require "core_extended"
>     >> > #require "async"
>     >> > #thread
>     >> > open Core.Std
>     >>
>     >> The '#thread' directive needs to come before the '#require
>     "core.top"'
>     >> directive.
>     >>
>     >> Regards,
>     >>
>     >> Leo
>     >
>     >
>     >
>     >
>     > --
>     > Casey James Basichis
>     > Composer - Adventure Time - Cartoon Network
>     > http://www.caseyjamesbasichis.com
>     > caseybasichis@gmail.com <mailto:caseybasichis@gmail.com>
>     > 310.387.7540 <tel:310.387.7540>
>
>
>
>     --
>     In accordance with U.S. Treasury regulations, if this message contains
>     advice concerning one or more Federal tax issues, it is not a formal
>     legal opinion and may not be used by any person for the avoidance of
>     Federal tax penalties.
>
>     --
>     Caml-list mailing list.  Subscription management and archives:
>     https://sympa.inria.fr/sympa/arc/caml-list
>     Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
>     Bug reports: http://caml.inria.fr/bin/caml-bugs
>
>
>
>
> -- 
> Casey James Basichis
> Composer - Adventure Time - Cartoon Network
> http://www.caseyjamesbasichis.com
> caseybasichis@gmail.com <mailto:caseybasichis@gmail.com>
> 310.387.7540


[-- Attachment #2: Type: text/html, Size: 15699 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2013-08-22 20:19 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-20 18:37 [Caml-list] Setting up OcaIDE Casey Basichis
2013-08-20 18:51 ` David Allsopp
2013-08-20 19:09 ` Thomas Gazagnaire
2013-08-20 20:23   ` Casey Basichis
2013-08-20 20:29     ` Jeremy Yallop
     [not found]     ` <20130820.223527.351659178592840423.Christophe.Troestler@umons.ac.be>
2013-08-20 21:20       ` Casey Basichis
2013-08-20 22:15         ` Leo White
2013-08-20 22:18           ` Casey Basichis
2013-08-20 22:46             ` Leo White
2013-08-21  0:16               ` Casey Basichis
2013-08-21  6:32                 ` Komtanoo Pinpimai
2013-08-21 15:13                   ` Casey Basichis
2013-08-21 16:10                     ` Ashish Agarwal
2013-08-21 16:21                     ` Siraaj Khandkar
2013-08-22  3:20                       ` Johan Mazel
2013-08-22 20:19                     ` William R

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).