Compilation & Installation Problems

Gambas does not compile ! It stops at configuration time.

Did you install every needed library and development package ?

If the configure script stops by telling you that it cannot find a header or a library, you can specify its path by passing an option to the script. For example :

$ ./configure --with-kde-libraries=/opt/kde3/lib

will tell where the Kde libraries are on a SuSE system.

If configure does not auto-detect paths, write me so that I modify the script. Next time, it will detect them automagically !

Gambas does not compile ! It stops at compile time.

First, be sure that you have uninstalled any previous version of Gambas having the same major version number, before trying to install a new one.

If the compiler stop in a component, for example in the KDE one, you can disable it this way :

$ ./configure --disable-kde-component

In all cases, this is a bug, so write me and give me all information you can !

I have reinstalled my Linux box, and my Gambas package does not compile anymore.
I have copied the source package on a new machine, but it does not compile anymore.

By default, the configuration is cached once done. If you want to compile the same package twice, you must reconfigure it.

To do that, type ./reconf before typing ./configure.

$ ./reconf
$ ./configure
$ make
$ su -c "make install"

I have strange errors during the compilation.
Everything compiles fine, but I get strange errors when loading shared libraries at runtime.

Check that you do not use gcc 3.0x by typing :

$ gcc --version

You must use gcc 2.9x, gcc 3.1 or gcc 3.2 to compile Gambas.

Everything compiles fine, but when I run Gambas, I get a strange relocation error.

More exactly, you get something like that:

/usr/bin/gbx: relocation error:
/usr/lib/qt-3.1/lib/libqt-mt.so.3: undefined symbol: _ZNSs4_Rep11_S_terminalE

You tried to compile Gambas on a RedHat 9, and this distribution includes a bad Qt library. You have two solutions:

For a complete information, read the README.REDHAT in the source package.