PsiLAB Frequently Asked Questions

Here you find some collected emails with problems frequently asked by peoples.

Date: Mon, 4 Feb 2002 09:25:54 +0100 (MET)
From: Stefan Bosse <>
To: Richard Allan Holcombe <>
Subject: Re: trouble compiling psilab 2.0 
Hello Richard,

On Sun, 3 Feb 2002, Richard Allan Holcombe wrote:

now let us see what's the problem:

> I saw your psilab site on sourceforge.
> I downloaded the source for psilab-2.0, and tried to compile.

Please use the latest snapshot from 8-Jan-2002 from:

> I am running Red Hat 7.2, with ocaml version 3.04.
> I run into error messages from the labels:

OOoohhh, yes I see. Since OcaML 3.03, many things were changed in OCaML.
Especially many labels in the standrad library (in OCaML, not in
my PsiLAB) were changed. So PsiLAB currently fail to compile with version
3.03/3.04. What a mess. Arrgh.
Use 3.01/3.02 instead. Hmm.  In this week, I will put a Linux binary
version in the above download directory (Slackware Linux-7.0). I hope
this will work on your system for the first time.

But stop: since Psilab-2.0 (at least release 8-Jan-2002) PsiLab is
delivered with his own (reduced and modified ) OCaML distribution (based
on 3.01) !!!! See below.

> File "", line 293, characters 29-40:
> This argument cannot be applied with label ~sep
> I tried removing the labels, and the compile continued.
> I do have f2c installed, but psilab doesn't seem to compile the code
> in the package, so I told it to link to the library I already had
> installed.
> When it gets to compiling fit/minpack , it says:
> f77  -o .f
> f77: No input files; unwilling to write output files
> I tried commenting out the compilation of this module.

PsiLAB is delivered with his own version of f2c, and especially, with a
modified f77 library. But you should not care about these things. The
generic Makefile will guide you through.
> at the end
> I get linker error messages:
> ../fit/libminpackc.a(minpack.o): In function `minpack_lmdif1':
> minpack.o(.text+0x893): undefined reference to `lmdif1_'
> ../fit/libminpackc.a(minpack.o): In function `minpack_lmdif2':
> minpack.o(.text+0xe93): undefined reference to `lmdif1_'
> /usr/lib/libf2c.a(main.o): In function `main':
> main.o(.text+0x1e5): undefined reference to `MAIN__'
> collect2: ld returned 1 exit status
> Error while building custom runtime system
> I know that the first two are a result of my commenting out the
> compilation of fit/minpack.

Below I show you my way to compile PsiLAB on FreeBSD:

1. download

2. unpack tar -zxf in a directory of your choice (for example

3. changing to directory psilab-2.0

4. under Linux:   cp Makefile.sys.linux Makefile.sys
   under FreeBSD: cp Makefile.sys.freebsd Makefile.sys

5. edit Makefile.sys:

   - change TOPDIR to your location (/home/sbosse/tmp/psi-test/psilab-2.0)
   - change INSTALLDIR (/usr/local/Psilab-2.0 for example)
   - take a look at the other settings in this file

6. cd ocamlsrc

7. Build the builtin OCaML distribution (based on v. 3.01):

   - gmake clean
   - gmake world (or gmake all)
   - gmake install

8. return to the psilab directory

   - cd ..
   - gmake all
   - gmake install

I hope this is all you must do.

Tell about your success :-) or failure :-(


Date: Mon, 4 Feb 2002 17:48:06 -0500 (EST)
From: Richard Allan Holcombe <>
To: Stefan Bosse <>
Subject: Re: trouble compiling psilab 2.0

I tried what you suggested, and it worked! Thanks, Richard

Problem: I've compiles psilab from the sources and installed the psilab system, and all is working right. But after I removed the sources, Psilab can't find the OCaML standard library. What happend ?

Answer: You must install the OCaML system delivered with PsiLAB, too. In the psilab source top directory do:

                     gmake ocaml-install