Sign in Join
Wiki copytemporary

Install on Ubuntu 11.10: what changed

Revision 2 to 3. 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
46-`Project project1 raised Exception class EInterface critical with message: ....`
46+```text
47+Project project1 raised Exception class EInterface critical with message: ....
48+```
4749
4850### Solution (10 mins): Remove the Ubuntu taskbar menu and overlay scrollbars
4951
5052- Remove the taskbar
5153
5254Open a terminal and try
5355
54-`sudo apt-get remove appmenu-gtk3 appmenu-gtk appmenu-qt`
56+```text
57+sudo apt-get remove appmenu-gtk3 appmenu-gtk appmenu-qt
58+```
5559
5660Give your password These can be re-installed if needed with the same command but put 'install' in place of 'remove'.
5761
5862- Remove the Ubuntu overlay scrollbars
5963
6064Open synaptic and search for 'liboverlay-scrollbar'.
6165
6266Uninstall the 2 packages highlighted. They can be re-installed if needed with Synaptic
6367
64-*`You now need to restart Ubuntu and hope.`*
68+```text
69+You now need to restart Ubuntu and hope.
70+```
6571
6672**The 'blank form' project should now run with no errors.**
6773
6874### Problem 2
6975
7076Add 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
7177
72-`unit not found: Classes`
78+``` pascal
79+unit not found: Classes
80+```
7381
7482or
7583
76-`unit not found: Sysutils`
84+``` pascal
85+unit not found: Sysutils
86+```
7787
7888### Solution (10 mins): Reconfigure Lazarus as sudo
7989
8090This can be solved as follows:
8191
8292- Open Lazarus as sudo
8393
8494Open a terminal and start Lazarus as sudo with
8595
86-`gksudo StartLazarus`
96+```text
97+gksudo StartLazarus
98+```
8799
88100Give your sudo password
89101
90102- Rescan the Pascal source directory
91103
92104**In Lazarus** choose
93105
94-*`Tools -> Rescan FPC source directory`*
106+```text
107+ Tools -> Rescan FPC source directory
108+```
95109
96110- Rebuild Lazarus
97111
98112**In Lazarus** choose
99113
100-*`Tools -> BuildLazarus with profile:Build all`*
114+```text
115+Tools -> BuildLazarus with profile:Build all
116+```
101117
102118- Close Lazarus.
103119
104120*You should now be able to open Lazarus normally and create a project with a button that is clickable!*'
105121
106122'Hello World' here we come.
107123
108124*Oh Joy!*
109125
110126### Lazarus Forum
111127
112128There are several threads that are useful
113129
114130[Forgetting to install Free Pascal source code](http://www.lazarus.freepascal.org/index.php/topic,16062.0.html)
115131
116132[Solving problem 1](http://www.lazarus.freepascal.org/index.php/topic,14982.0.html)
117133
118134[Solving problem 2](http://www.lazarus.freepascal.org/index.php/topic,14672.0.html)
119135
120136[More about problem 2](http://www.lazarus.freepascal.org/index.php/topic,15005.0.html)
121137
122138[Installing using debs](http://www.lazarus.freepascal.org/index.php/topic,14672.0.html)
123139
124140### Video
125141
126142It's in German. It is very clear. In this case, after the installation, Lazarus ran without problem - mine didn't.
127143
128144[You tube showing install](http://www.youtube.com/watch?v=fgnzdegIB40)
129145
130146### Problem 2 image
131147
132148![](/wiki-images/a/a2/LazarusErrorSmall.jpg)
133149
134150## Ubuntu 10.04 LTS (Lucid Lynx)
135151
136152The version in this repository is Lazarus 0.9.28.2 which is quite old. It installs via synaptic and it then works.
137153
138154### Install from .deb files
139155
140156If you want to install a newer version using .deb files then see the wiki page
141157
142158[[Install on Ubuntu from .deb files|How to install from .deb files]]
143159
144160## See also
145161
146162- [[Install on Ubuntu from .deb files]]
147163
148164---
149165*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).*
150166Category: Install
151167Category: Ubuntu

Back to history