Description of problem: I can't load graphics.cma in toplevel as documented in the ocaml manual, because graphics.cma is not inludeded in the ocaml package. Version-Release number of selected component (if applicable): ocaml-3.10.1-3.fc9.x86_64 How reproducible: This is a permanent problem. Steps to Reproduce: 1. start ocaml toplevel 2. try to load graphics.cma Actual results: [mickraus@gandalf]~% ocaml Objective Caml version 3.10.1 # #load "graphics.cma";; Cannot load required shared library dllgraphics. Reason: dllgraphics.so: dllgraphics.so: cannot open shared object file: No such file or directory. Expected results: The bytecode version of the Graphics module should be included into the ocaml package. Additional info: [root@gandalf ~]# rpm -ql ocaml | grep graphics /usr/lib64/ocaml/graphics.a /usr/lib64/ocaml/graphics.cmx /usr/lib64/ocaml/graphics.cmxa /usr/lib64/ocaml/graphics.mli /usr/lib64/ocaml/libgraphics.a
This was also reported on fedora-ocaml-list, although I couldn't manage to reproduce it: https://www.redhat.com/archives/fedora-ocaml-list/2008-September/msg00003.html
To test ocaml package in rawhide, I installed Fedora 10 Snap3 on a ia32 machine. [mickraus@frodo ~]$ rpm -q ocaml ocaml-3.10.2-5.fc10.i386 [mickraus@frodo ~]$ rpm -ql ocaml | grep graphics /usr/lib/ocaml/graphics.a /usr/lib/ocaml/graphics.cmx /usr/lib/ocaml/graphics.cmxa /usr/lib/ocaml/graphics.mli /usr/lib/ocaml/libgraphics.a [mickraus@frodo ~]$ So graphics.cma is missing in rawhide too, resulting in the same error message as before.
I'll have a look this morning.
Nope, still can't reproduce this on Rawhide. The following works fine on both 32 bit and 64 bit Rawhide machines I have: $ ocaml Objective Caml version 3.10.2 # #load "graphics.cma";; #
I think the problem may be that you need to install ocaml-runtime: $ rpm -ql ocaml | grep graphics /usr/lib64/ocaml/graphics.a /usr/lib64/ocaml/graphics.cmx /usr/lib64/ocaml/graphics.cmxa /usr/lib64/ocaml/graphics.mli /usr/lib64/ocaml/libgraphics.a $ locate /graphics.cma /usr/lib64/ocaml/graphics.cma $ rpm -qf /usr/lib64/ocaml/graphics.cma ocaml-runtime-3.10.2-5.fc10.x86_64
You are right, graphics.cma is in ocaml-runtime. But the problem still existed. So I compared Rawhide with a working Graphics module on an Arch installation. In the end I realized that the shared library /usr/lib/ocaml/stublibs/dllgraphics.so was missing on the Fedora installation. Google showed the library being part of the ocaml-x11 package. After installing this the Graphics module is working now. Thanks for your help.
Reopening - this is actually a bug.
I just hit this today and was able to resolve my troubles because I found this bug. Just wanted to give it a bump. :)
ocaml-3.11.0-3.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/ocaml-3.11.0-3.fc11
ocaml-3.11.0-3.fc11 has been pushed to the Fedora 11 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update ocaml'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-5964
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle. Changing version to '11'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
ocaml-3.11.0-3.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.