Red Hat Bugzilla – Bug 468506
file graphics.cma is missing in ocaml package
Last modified: 2009-07-19 06:18:57 EDT
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):
This is a permanent problem.
Steps to Reproduce:
1. start ocaml toplevel
2. try to load graphics.cma
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.
The bytecode version of the Graphics module should be included into the ocaml package.
[root@gandalf ~]# rpm -ql ocaml | grep graphics
This was also reported on fedora-ocaml-list, although I
couldn't manage to reproduce it:
To test ocaml package in rawhide, I installed Fedora 10 Snap3 on a ia32 machine.
[mickraus@frodo ~]$ rpm -q ocaml
[mickraus@frodo ~]$ rpm -ql ocaml | grep graphics
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:
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
$ locate /graphics.cma
$ rpm -qf /usr/lib64/ocaml/graphics.cma
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.
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:
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.