Lazarus
Programming => LCL => Topic started by: Hopestation on February 25, 2018, 12:44:50 pm
-
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?
-
fpc.cfg is in /etc/fpc.cfg
-
Or you may try FPCUpDeluxe which will automatically do everything.
-
@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
-
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.
-
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?
-
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:
sudo dpkg --ignore-depends=fpc -i lazarus-project_1.8.2-0_amd64.deb
See this discussion (https://serverfault.com/a/250227) 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.
-
@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.
-
You can also ask fpcupdeluxe to install the help.
See Setup+, "include help" checkbox.
-
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
-
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.