Lazarus
Programming => Operating Systems => Linux => Topic started by: JD on September 24, 2011, 01:44:00 am
-
Hi there everyone,
I have a new Linux Mint 11 installation on which I just installed Lazarus 0.9.31 of August 2, 2011 (SVN version number does not show in Linux versions of Lazarus - see the attachment; but it is svn 31847 in the windows version).
After installation, I can't even run an empty project because it says it can't find the Cairo unit used by gdk2. The exact error as well as the line on which the error occurred is as follows:
/usr/share/fpcsrc/2.4.4/packages/gtk2/src/gtk+/gdk/gdk2.pas(32,13) Fatal: Can't find unit Cairo used by gdk2
I have the same Lazarus version installed in Ubuntu 11.04 and I did not get this error so it must have something to do with my Linux Mint setup.
What do I do to correct it? Thanks for your assistance.
JD
-
Strange, it looks as if it is trying to compile gtk2 ... did you do anything unusual with your cfg.fpc (or is it fpc.cfg?)? How did you install fpc?
-
I did not do anything at all to the configuration files. I just followed the instructions below
Install fpc
1) download FPC
2) unpack, and go to unpacked directory
3) sudo dpkg -i * (this will install all debs)
Install Lazarus
1) download Lazarus svn
2) unpack, and go to unpacked directory
3) sudo dpkg -i * (this will install all debs)
I installed the same version of Lazarus on Ubuntu 11.04 and I did not have this problem. :(
-
Hello.
After install FPC and Lazarus, try in Terminal :
sudo apt-get install -f
-
Hello.
After install FPC and Lazarus, try in Terminal :
sudo apt-get install -f
Dosen't work.
-
What version of FPC do you have installed?
-
What version of FPC do you have installed?
Same version on all my systems; XP, Vista and Ubuntu 11.04
It is FPC 2.4.4 and Lazarus 0.9.31 svn 31847. It works perfectly in all the systems above. I don't know why it is not working with Linux Mint 11 Katya.
-
I've been sniffing around my system and I see that Synaptic lists 3 Free Pascal packages as broken. They are
a) fp-units-gfx-2.4.4
b) fp-units-gtx-2.4.4
c) fp-units-multimedia-2.4.4
These packages were not installed with the rest of Free Pascal 2.4.4 in the file fpc-2.4.4-1.i386.deb.tar
I have no idea why this is the case. :(
The screenshot of my Terminal (sorry, it's in French :-[) after installation of Free Pascal 2.4.4 shows the errors.
-
Solved it! If at first you don't succeed, keep trying...... :D
Since I discovered that the problem was the broken packages, I did this in the terminal window
sudo apt-get update
sudo apt-get install -f
I then reinstalled Free Pascal 2.4.4 and Lazarus was now able to compile an empty project. ;)
I must say it was worth the trouble. Lazarus looks beautiful in Linux. O:-)
@Fred vS thanks for the hint.
To everyone else, thanks for the comments and thanks for reading this thread.