Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Missing" dllunix.so on Linux system (gentoo) #3486

Closed
vicuna opened this issue Jul 31, 2002 · 5 comments
Closed

"Missing" dllunix.so on Linux system (gentoo) #3486

vicuna opened this issue Jul 31, 2002 · 5 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Jul 31, 2002

Original bug ID: 1280
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Larry Cow
Version: 3.05
OS: Gentoo Linux
Submission from: atuileries-101-1-4-34.abo.wanadoo.fr (193.253.189.34)

After compiling the tarball (default flags) without any problem, most ocaml*
commands works well but "ocamldoc" and "ocamlbrowser" both fail with:

Fatal error: cannot load shared library dllunix
Reason: dllunix.so: cannot open shared object file: No such file or directory

The file "dllunix.so" lays in /usr/lib/ocaml/stublibs, and even with the former
directory in ld.so.conf, the problem persists.

@vicuna
Copy link
Author

vicuna commented Jul 31, 2002

Comment author: administrator

After compiling the tarball (default flags) without any problem, most ocaml*
commands works well but "ocamldoc" and "ocamlbrowser" both fail with:

Fatal error: cannot load shared library dllunix
Reason: dllunix.so: cannot open shared object file: No such file or directory

The file "dllunix.so" lays in /usr/lib/ocaml/stublibs, and even with
the former directory in ld.so.conf, the problem persists.

Try to set the OCAMLRUNPARAM environment variable to "v=256" and run
ocamlbrowser. The OCaml runtime system should then tell you what
shared libraries it is trying to load. If these aren't in
/usr/lib/ocaml/stublibs, then perhaps you have an OCAMLLIB or CAMLLIB
environment variable incorrectly set, or shared libraries from a
previous install interfering somehow.

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented Aug 1, 2002

Comment author: administrator

Try to set the OCAMLRUNPARAM environment variable to "v=256" and run
ocamlbrowser. The OCaml runtime system should then tell you what
shared libraries it is trying to load. If these aren't in
/usr/lib/ocaml/stublibs, then perhaps you have an OCAMLLIB or CAMLLIB
environment variable incorrectly set, or shared libraries from a
previous install interfering somehow.

There is no more junk from previous installs. I tried with the
OCAMLRUNPARAM variable, doesn't change much. I'm still said the
dllunix.so is missing (a nice "No such file or directory"). And even
when setting my own OCAMLLIB to something including "/usr/lib/ocaml/
stublibs", it still can't be found.

@vicuna
Copy link
Author

vicuna commented Aug 1, 2002

Comment author: administrator

There is no more junk from previous installs. I tried with the
OCAMLRUNPARAM variable, doesn't change much.

Soyez précis SVP. Quels sont les messages affichés exactement?

And even
when setting my own OCAMLLIB to something including "/usr/lib/ocaml/
stublibs", it still can't be found.

Si nécessaire, ce serait OCAMLLIB=/usr/lib/ocaml qu'il faut mettre.
(Pour qu'il trouve le fichier /usr/lib/ocaml/ld.conf.)

Que contient /usr/lib/ocaml/ld.conf?

Quelle sortie obtenez-vous avec la commande suivante:

strace -e trace=file /usr/bin/ocamlrun /usr/bin/ocamlbrowser

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented Aug 1, 2002

Comment author: administrator

Soyez précis SVP. Quels sont les messages affichés exactement?

(ça ira plus vite en français, en effet)

Donc, le problème est réglé, merci de votre patience.

Pour la petite histoire: tout cela venait du script d'installation pour
gentoo-linux (que j'étais en train de mettre au point), qui réalise une
"pré-installation" dans un répertoire à part. Et donc le
/usr/lib/ocaml/ld.conf contenait des valeurs complètement inadaptées.

J'ignorais complètement que CAML utilisait un tel fichier, j'aurais pu
chercher longtemps sans votre aide, encore merci.

Et longue vie à OCaml! :)

--
( Olivier Migeot ) He said "Who's that guy with the funny smile?"
( EPITA ING1 C1 ) and she said "He's just a friend of mine."
( TEL 0674315242 ) "He's just a friend of mine..."
( ICQ# 54430152 ) - Vaya con Dios

@vicuna
Copy link
Author

vicuna commented Aug 2, 2002

Comment author: administrator

Installation in other directories than those configured in.

@vicuna vicuna closed this as completed Aug 2, 2002
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant