Forum > Linux

How to Install Lazarus on Ubuntu

(1/5) > >>

Handoko:
I saw some have problems installing Lazarus 1.8.0 on Ubuntu, so I decided to test it. No problems, the installation process run smoothly with some non-critical messages.

My system:
- Ubuntu Mate 17.10 64-bit
- Previous Lazarus version was 1.8.0RC5
- Installation tool: Gdebi (read more https://simple.wikipedia.org/wiki/Gdebi)
- My home folder: /home/handoko
- Installation files downloaded from https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%201.8.0/

I use Gdebi (instead of sudo dpkg), which is more user friendly and it can provide you some useful information if the installation fails. Also I recommend Synaptic Package Manager, which can be useful if you want to fix broken packages and do version locking.

On this test, I did not do version locking and I also did not reboot my computer. The test result was: it installed successfully, I can compile my old projects. Lets see, will Ubuntu downgrade my FPC or not, the version is not locked.

My installation process:

01. I downloaded all the 3 deb files
02. Double clicked fpc_3.0.4-1_amd64.deb (it will start Gdebi)
03. Got a warning: "An older version is available ..." (see pic: Message 1)
04. Ignored the message and continue the installation
05. Got an error: "Error: Breaks existing package ..." (see pic: Message 2)
06. Ignored the error and the fpc installion will be finished
07. Double clicked and installed fpc-src_3.0.4-1_amd64.deb
07. Double clicked and installed lazarus-project_1.8.0-0_amd64.deb
08. Started Lazarus and got a message "Multiple lazarus found" (see pic: Message 3)
09. I chose Abort and deleted the "bin" folder: /home/handoko/.lazarus/bin
10. Started Lazarus again and got a message "Incorrect configuration ..." (see pic: Message 4)
11. I chose Update info
12 And got a message "Upgrade configuration" (see pic: Message 5)
12. I chose Upgrade
13. Well done, everything is working correctly now

Note:

If you already have fpc/fpc-source/Lazarus installed, you have remove them before installing version 1.8.0. I used Synaptic Package Manager to do complete removal of all the 3 packages (fpc/fpc-source/Lazarus).

You may need to do cleaning up if you installation become messy.

More information about FPC/Lazarus installation, cleaning up and version locking can be read here:
http://forum.lazarus.freepascal.org/index.php/topic,38828.msg265293.html#msg265293

---edit---

I also tested how to install Lazarus 1.8.0 on Ubuntu 16.04, read here if you're interested:
http://forum.lazarus.freepascal.org/index.php/topic,39281.msg269112.html#msg269112

lainz:
I usually have problems installing Lazarus on Ubuntu. The main problem is the conflict with the Ubuntu repository and the custom installation from the Lazarus website.

Tried to lock with Synaptic but with no results..

I wish there is a portable lazarus for ubuntu, if that is possible to do.

I've not tested fpcupdeluxe under Ubuntu yet, maybe that helps..

Handoko:
Did you not use Gdebi?

Using Gdebi, I got a critical error message. But simply ignoring it, everything working good. Next time use Gdebi instead of sudo dpkg.

lainz:

--- Quote from: Handoko on December 13, 2017, 02:05:25 pm ---Did you not use Gdebi?

Using Gdebi, I got a critical error message. But simply ignoring it, everything working good. Next time use Gdebi instead of sudo dpkg.

--- End quote ---

What I'm saying is that I got Lazarus installed (sorry if I did not explain it well first), but then it gets 'outdated' with the version of the Ubuntu repository due to automatic updates.

Maybe I did not lock it well, so if you can, please add a simple instruction on how to lock it, because maybe I did that step wrong.

Handoko:
About version locking can be found here:
http://forum.lazarus.freepascal.org/index.php/topic,38828.msg265293.html#msg265293

It is on step #04, the detail starts from step #41.

Navigation

[0] Message Index

[#] Next page

Go to full version