Sign in Join
Wiki copytemporary

Install on Ubuntu 11.10: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11*(Ubuntu only)*
22
33## In General
44
55**See [[Installing Lazarus on Linux]] - this page covers most of what you need for most Linux Distributions.**
66
77Warning, this page is very out of date and should be removed.
88
99### Overview
1010
1111To install Lazarus you install three things:
1212
1313- fpc - the Free Pascal compiler
1414- fpc-src - the source code for Free Pascal
1515- Lazarus -the IDE for Free Pascal
1616
1717### Versions
1818
1919You must install the correct version of Free Pascal for the version of Lazarus you choose. The versions below are correct.
2020
2121## Ubuntu 11.10 (Oneiric Ocelot)
2222
2323### What you want
2424
2525Matching versions of Lazarus and Free Pascal are in the repository (20/02/12). They are
2626
2727- Lazarus 0.9.30-2.
2828- Free Pascal 2.4.4
2929
3030In Synaptic they are called Lazarus 0.9.30-2Build1, fpc, and fp.
3131
3232### Find and install the packages
3333
3434In the Software Centre search for and install:
3535
3636- IDE for FreePascal - SDK metapackage - search under lazarus
3737- Free Pascal - SDK metapackage - search under fpc
3838- FreePascal - SDK source code metapackage- search under fpc
3939
4040With Synaptic, install everything beginning with Laz, fpc or fp.
4141
4242### Problem 1
4343
4444Once you have installed Lazarus, it will not work. Even if you add no code at all and compile and run everyone's favourite 'Blank form' project (having first saved it of course) you will get this error message:
4545
4646`Project project1 raised Exception class EInterface critical with message: ....`
4747
4848### Solution (10 mins): Remove the Ubuntu taskbar menu and overlay scrollbars
4949
5050- Remove the taskbar
5151
5252Open a terminal and try
5353
5454`sudo apt-get remove appmenu-gtk3 appmenu-gtk appmenu-qt`
5555
5656Give your password These can be re-installed if needed with the same command but put 'install' in place of 'remove'.
5757
5858- Remove the Ubuntu overlay scrollbars
5959
6060Open synaptic and search for 'liboverlay-scrollbar'.
6161
6262Uninstall the 2 packages highlighted. They can be re-installed if needed with Synaptic
6363
6464*`You now need to restart Ubuntu and hope.`*
6565
6666**The 'blank form' project should now run with no errors.**
6767
6868### Problem 2
6969
7070Add a button to your 'blank form' project. In the *Events* tab of the*Object Inspector* , try to open the 'Click' event handler. You will get the error message
7171
7272`unit not found: Classes`
7373
7474or
7575
7676`unit not found: Sysutils`
7777
7878### Solution (10 mins): Reconfigure Lazarus as sudo
7979
8080This can be solved as follows:
8181
8282- Open Lazarus as sudo
8383
8484Open a terminal and start Lazarus as sudo with
8585
8686`gksudo StartLazarus`
8787
8888Give your sudo password
8989
9090- Rescan the Pascal source directory
9191
9292**In Lazarus** choose
9393
9494*`Tools -> Rescan FPC source directory`*
9595
9696- Rebuild Lazarus
9797
9898**In Lazarus** choose
9999
100100*`Tools -> BuildLazarus with profile:Build all`*
101101
102102- Close Lazarus.
103103
104104*You should now be able to open Lazarus normally and create a project with a button that is clickable!*'
105105
106106'Hello World' here we come.
107107
108108*Oh Joy!*
109109
110110### Lazarus Forum
111111
112112There are several threads that are useful
113113
114114[Forgetting to install Free Pascal source code](http://www.lazarus.freepascal.org/index.php/topic,16062.0.html)
115115
116116[Solving problem 1](http://www.lazarus.freepascal.org/index.php/topic,14982.0.html)
117117
118118[Solving problem 2](http://www.lazarus.freepascal.org/index.php/topic,14672.0.html)
119119
120120[More about problem 2](http://www.lazarus.freepascal.org/index.php/topic,15005.0.html)
121121
122122[Installing using debs](http://www.lazarus.freepascal.org/index.php/topic,14672.0.html)
123123
124124### Video
125125
126126It's in German. It is very clear. In this case, after the installation, Lazarus ran without problem - mine didn't.
127127
128128[You tube showing install](http://www.youtube.com/watch?v=fgnzdegIB40)
129129
130130### Problem 2 image
131131
132-<figure>
133-<img src="LazarusErrorSmall.jpg" title="LazarusErrorSmall.jpg" />
134-<figcaption>LazarusErrorSmall.jpg</figcaption>
135-</figure>
132+![](/wiki-images/a/a2/LazarusErrorSmall.jpg)
136133
137134## Ubuntu 10.04 LTS (Lucid Lynx)
138135
139136The version in this repository is Lazarus 0.9.28.2 which is quite old. It installs via synaptic and it then works.
140137
141138### Install from .deb files
142139
143140If you want to install a newer version using .deb files then see the wiki page
144141
145142[[Install on Ubuntu from .deb files|How to install from .deb files]]
146143
147144## See also
148145
149146- [[Install on Ubuntu from .deb files]]
150147
151148---
152149*From the Free Pascal wiki, page "Install on Ubuntu 11.10", as it stood on 2021-01-17 after a change by Dbannon, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
153150Category: Install
154151Category: Ubuntu

Back to history