Recent

Author Topic: [Solved] How to get Lazarus 1.8 working on an AMD64 Linux system - Again.  (Read 2521 times)

Hopestation

  • Full Member
  • ***
  • Posts: 156
Hi.
Following previous comments about not running Lazarus from the /usr folder I deleted Lazarus 1.6 and tried to find Lazarus 1.8 in Synaptic Package Manager.

It's not listed, so I downloaded lazarus-1.8.0-0.x86_64.rpm from Sourceforge.

Unlike Windows downloads this doesn't include fpc, so I downloaded fpc-3.0.4-1.x86_64.rpm and fpc-src-3.0.4-1.x86_64.rpm.

When I unpacked them I found all contained /usr folders, so I created a /usr folder in my local home/lazarus folder and copied the unpacked files from the lazarus and fpc-3.0.4-1.x86_64 into them. Package fpc-src-3.0.4-1.x86_64.rpm contained files in the /usr/share folders, so I moved these files to the share folder of my /usr folder.

I ran Startlazarus and got the Configure Lazarus IDE form. In the left panel Compiler and FPC sources had red exclamation marks.

On the Compiler tab the help message said I could use a complier like "ppcx64", so I found Home/Lazarus/usr/lib64/fpc/3.0.4/ppcx64 and selected this.

I got the message "Error: fpc.cfg is missing."

On the FPC sources tab the message said look for "rtl/linux/system.pp".

I can't find this in either FPC folder.

Am I wasting my time trying to load the 1.8 version on a Linux system?
« Last Edit: March 19, 2018, 02:49:43 pm by Hopestation »

Thaddy

  • Hero Member
  • *****
  • Posts: 7195
Re: How to get Lazarus 1.8 working on an AMD64 Linux system.
« Reply #1 on: February 25, 2018, 12:46:54 pm »
fpc.cfg is in /etc/fpc.cfg
inline variables like in D10.3 are a bit like Brexit: if you are given the wrong information it sounds like a good idea. Every kid loves candy, but it makes you fat and your teeth will disappear.

Eugene Loza

  • Hero Member
  • *****
  • Posts: 561
    • My "almost daily" development blog
Re: How to get Lazarus 1.8 working on an AMD64 Linux system.
« Reply #2 on: February 25, 2018, 01:59:25 pm »
Or you may try FPCUpDeluxe which will automatically do everything.
Lazarus 1.9 + FPC 3.1.1 Debian Jessie 64 bit.

My Free and Open Source games in Lazarus/FreePascal/CastleGameEngine:
https://decoherence.itch.io/
(and some ancient games in Turbo Pascal too)
Sources are here: https://github.com/eugeneloza?tab=repositories

Handoko

  • Hero Member
  • *****
  • Posts: 2690
  • My goal: build my own game engine using Lazarus
Re: How to get Lazarus 1.8 working on an AMD64 Linux system.
« Reply #3 on: February 25, 2018, 02:05:27 pm »
@Hopestation

Am I wasting my time trying to load the 1.8 version on a Linux system?

I can install and use Lazarus 1.8.0 64-bit on deb-based Ubuntu although the installation didn't run smoothly:
http://forum.lazarus.freepascal.org/index.php/topic,39281

But I have no luck in rpm-based Mageia 6 64-bit, maybe you can follow this thread to find something useful:
http://forum.lazarus.freepascal.org/index.php/topic,39246.msg269497.html#msg269497

Hopestation

  • Full Member
  • ***
  • Posts: 156
Re: How to get Lazarus 1.8 working on an AMD64 Linux system.
« Reply #4 on: February 25, 2018, 05:14:38 pm »
Thanks for your replies.

I've checked the FPC packages and neither of them contain /etc folders, only a /usr folder.

Lazarus has an /etc folder which only contains environmentoptions.xml.

I've now run FPCUpDeluxe and have a working Lazarus 1.8! Thanks Thaddy.

Hopestation

  • Full Member
  • ***
  • Posts: 156
Re: How to get Lazarus 1.8 working on an AMD64 Linux system - Again.
« Reply #5 on: March 17, 2018, 05:42:49 pm »
I thought that using FPCupDelux had solved all the problems but I have just tried to use F1 to look at the properties of a StringGrid and got the message:

"There is no Database installed for this topic".

It says that lcl.chm is not installed. A search in the Lazarus directory for  *.chm shows that no .chm files are present.

http://wiki.freepascal.org/Installing_Help_in_the_IDE tells me that I should download the latest version to get the files that I need.

So I went to https://sourceforge.net/projects/lazarus/files/Lazarus%20Documentation/ and downloaded lazarus-project_1.8.2-0_amd64.deb.

I am using Linux Mint 18.3 Cinnamon 64-bit.

When I opened the Lazarus file in Package Installer I got the message at the top:

ERROR: Dependency is not satisfiable: fpc(=3.04)|fp-compiler(=3.04) and the Install Package button is disabled.

I cannot understand how these are unsatisfiable when they both have the same number.

Where do I go from here?

ccrause

  • Full Member
  • ***
  • Posts: 130
Re: How to get Lazarus 1.8 working on an AMD64 Linux system - Again.
« Reply #6 on: March 18, 2018, 06:38:44 am »
ERROR: Dependency is not satisfiable: fpc(=3.04)|fp-compiler(=3.04) and the Install Package button is disabled.
You can try installing the package using dpkg and specify the dependency to ignore using the --ignore-depends option from the command line:
Code: [Select]
sudo dpkg --ignore-depends=fpc -i lazarus-project_1.8.2-0_amd64.debSee this discussion for more detail.

Alternatively you can try the --force-depends-version or --force-depends] option of dpkg.

Note that this may mess things up if there really are unmet dependencies, but you may be able to recover by uninstalling the package if something breaks.

In the past I have also struggled to install the latest versions of FPC and Lazarus in Debian and Mint, now I download source and build from scratch.

Handoko

  • Hero Member
  • *****
  • Posts: 2690
  • My goal: build my own game engine using Lazarus
Re: How to get Lazarus 1.8 working on an AMD64 Linux system - Again.
« Reply #7 on: March 18, 2018, 07:20:22 am »
@Hopestation

You can try Synaptic Package Manager or GDebi to fix the dependency problem. GDebi usually will automatically download and install necessary packages if they're missing on your computer. Synaptic Package Manager has more features, it can show you broken/conflict packages or versions so you can manually fix it by manually removing them and install the correct one. It also has feature to lock/force version too. Synaptic is a handy GUI tool, which serious Linux users must install.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1015
Re: How to get Lazarus 1.8 working on an AMD64 Linux system - Again.
« Reply #8 on: March 18, 2018, 07:34:55 am »
You can also ask fpcupdeluxe to install the help.
See Setup+, "include help" checkbox.

dbannon

  • Sr. Member
  • ****
  • Posts: 338
Re: How to get Lazarus 1.8 working on an AMD64 Linux system - Again.
« Reply #9 on: March 18, 2018, 08:53:27 am »
Hopestation, I wonder if you are not quite getting the idea of packages under linux ?
Really sorry if this blindingly obvious but just in case ....

To install Lazarus, you first must have installed FPC and FPC-SRC. The latter two are dependencies of lazarus and separate packages. They probably have dependencies of their own, build tools etc. No basic reason why someone could not make a deb or rpm that contain everything but it would not be consistent with the Linux model.

If you use one of the GUI tools that gets the package from an official repository, it will automatically resolve those dependencies for you. But right now, those official repos don't have L1.8.

So, https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%201.8.0/ has those three packages. A manual install means dependancies are your problem. You would  first install FPC, maybe resolve any dependencies there, and then FPC-SRC and then Lazarus. In that order !  I have done it, maybe four or five times recently, and everything worked fine.

My 1.8 Ubuntu install has chm files (including lcl.chm)  in /usr/share/lazarus/1.8.0/docs/chm/

My guess is your problem is related to your reluctance to install as the package maintainer intended, in /usr (why not ?) - the files will have ended up somewhere and my guess is Lazarus cannot find them. If you have a bit of time, maybe do, find / -name lcl.chm

Then, of course, you will need to tell the chm viewer where you (hopefully) found them.

Davo
Lazarus 1.8, Linux (and reluctantly Win10, OSX)

Hopestation

  • Full Member
  • ***
  • Posts: 156
Re: How to get Lazarus 1.8 working on an AMD64 Linux system - Again.
« Reply #10 on: March 19, 2018, 02:49:07 pm »
Thanks everyone for your assistance.

I went back to FPCupDelux  and set the inclusion of Help files. The default is Don't Install. In the Windows version everything is downloaded automatically. Why does Linux always make everything more complicated?

After re-installation the help files now work.

Regarding looking in the /usr directory, I searched for *.chm and found nothing.

I tried to install Lazarus 1.8 using Mint's Software Manager. It only offers version 1.6.