[Request for package or help to build] Camllight

Hi all !

I recently installed OpenSUSE 11.4 on my laptop, which gave me entire satisfaction, since then :slight_smile:
Since I’m in a prep school and have got informatics lessons, I have to work with the Camllight language. But I didn’t find any *.rpm … I tried to compile from source but was given errors while making the contrib libraries…
It would be great if someone built this package :wink:

I successfully built and installed the camllight core but, when i need the graphics library or whatever, it’s a bit trickier… (I have to switch to Microlo$t Windope…)

Best regards !
[Moviuro]

Cam’t use ocaml… Download


zypper se ocaml
S | Name           | Summary                                                   | Type   
--+----------------+-----------------------------------------------------------+--------
  | graphviz-ocaml | OCAML extension for graphviz                              | package
  | ocaml          | The Objective Caml Compiler and Programming Environment   | package
  | ocaml-brlapi   | Library to use BRLTTY from applications -- OCaml Bindings | package
  | ocaml-docs     | The Objective Caml Compiler and Programming Environment   | package
  | ocaml-emacs    | The Objective Caml Compiler and Programming Environment   | package
  | ocaml-facile   | Ocaml Constraint Programming Library                      | package
  | ocaml-ocamldoc | The Objective Caml Compiler and Programming Environment   | package

Well, no. Since it’s for school, it’s a bit tricky… And since the language is slightly different, I can’t waste my time to rewrite every single programm I have written… And I need to run the scripts I write…

Hi
What version? There is a 0.81 version here Index of /source seems to compile the contrib.

Try this:
In contrib/Makefile
line 6 (PACKAGES … ) delete the trailing “” and newline.
this will give

line 6:PACKAGES=libunix libgraph debugger libnum libstr mletags camlmode lorder profiler camltk4 camlsearch
line 7:# caml-tex

Then make all

Happy days. I haven’t done any functional programming since Haskell and Miranda in the 80s. Did not know about CamlLight. Must have some playtime.

Forget that last post. I do not know what I did to get contribs to compile. I will investigate some more.

Hi
Download the camllight_0.81-1.diff.gz file there are a gazillion
patches that need applying, some need to be un-deb-ified though…


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.7-desktop
up 3 days 9:19, 4 users, load average: 0.24, 0.28, 0.39
GPU GeForce 8600 GTS Silent - Driver Version: 280.13

Okay, thanks guys :smiley: compiling and installing the graphic libs was fine !!

But what should I do with the *.diff file ?..

Hi
Copy the gz file to the camllight-0.81 directory, then;


gunzip camllight_0.81-1.diff.gz
patch -p1 < camllight_0.81-1.diff


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.7-desktop
up 4 days 3:39, 4 users, load average: 0.18, 0.14, 0.14
GPU GeForce 8600 GTS Silent - Driver Version: 280.13

Patch caused camllight’s contrib libraries not to compile successfully. So I won’t patch it :slight_smile: Still works fine :smiley: Thanks Malcolm & eg-int :wink: