Forum > Unix
[SOLVED] Build Error On AlmaLinux 8.9
cdbc:
Hi
I'm wondering ...isn't 'fpcupdeluxe' a viable option on AlmaLinux?!?
That worked great for me here.
Regards Benny
dbannon:
Hmm, you are still building as root ? Please do not confuse running as root on Linux with running as administrator on Windows, not the same thing.
RPM systems are not my specialty but I do know "some" use the library /usr/lib64/ and its possible the rpm install puts some executables there. That might mean the install you did has failed. My guess is the packages were not tested on AlmaLinux but its just a guess.
Be cool if someone else here uses Alma to be honest ! Not sure if I have heard it mentioned here ...
Failing better advice from someone more knowledgeable, my only suggestion would be to remove the fpc and Lazarus rpms and install both directly into user space using a FPC tarball - https://wiki.freepascal.org/Installing_the_Free_Pascal_Compiler#Downloading_FPC_tar_balls and using that to build Lazarus.3.4 from source, (https://wiki.freepascal.org/Installing_Lazarus_on_Linux#Build_Lazarus_from_Source). Its how I always do such things. Lazarus in particular is a lot happier running purely in user space and both installs are very easy.
For FPC its just running a script from the tarball, and setting a path to the (local) install's bin dir. For Lazarus, just extract the source from a zip and run the command "make bigid". Don't bother to install lazarus, use it directly from its build directory.
If you want to give it a try, please have a look at those wiki pages and give us a yell if anything is not clear.
Benny - yes, I agree, a good case for fpcupdeluxe too. Probably be a lot quicker someone a bit out of their space.
Davo
hymcode:
--- Quote from: hymcode on July 12, 2024, 10:59:26 am ---
--- Quote from: dbannon on July 12, 2024, 02:55:10 am ---Error: No known file format detected for file 'convertipfiles.res'
You are using a very old version of Lazarus (and FPC). Could it be that the convertipfiles.res was made by a newer version ? Not sure I'd recommend such old tools to be honest.
I'd also check its permissions, size (ie is it an empty file) and ownership given you have been running Lazarus as root. IMHO, that is very bad practice.
Davo
--- End quote ---
Hello Davo, I have removed the Lazarus development environment that is provided by yum as you're right it's very old and now have installed via the .rpm files found on Sourceforge.
I tried to build the software again but now I get the following error message:
--- Code: Bash [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---[root@dev00 LINUXPASCAL]# lazbuild -B linuxconvertipfiles.lpi Error: (lazarus) invalid Lazarus directory "/usr/lib64/lazarus/": directory not foundError: (lazarus) Building failed: linuxconvertipfiles.lpi
Any ideas on this?
--- End quote ---
Update: 15/07/2024
I was able to correct the build error message by updating the command to the following:
--- Code: Bash [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---lazbuild -B --primary-config-path=/usr/bin/ linuxconvertipfiles.lpi
Interestingly enough, after doing a complete clean install of the .rpm files again, which I got from SourceForge the original build command worked fine %)
hymcode:
--- Quote from: TRon on July 12, 2024, 11:19:14 am ---In addition to af0815's response and using the default package manager's version of fpc you can either work your way up if that version is too old or extract the ppc executable from the provided packages of the previous compiler version to use as bootstrap compiler for building the latest FPC compiler.
Building and installing Lazarus from source is a trivial matter.
There is no need whatsoever to run FPC and/or Lazarus as root and should be discouraged.
--- End quote ---
Hello TRon, I am in agreement that the current build process used under the root user account is bad practice, and this is something I aim to address once I have a better understanding of the build process currently in use. Unfortunately, I do not have any documentation or knowledge as to why it is done this way, so best to understand what's currently at play before moving to a better system.
hymcode:
--- Quote from: af0815 on July 12, 2024, 11:12:01 am ---One problem is, different linux use different path.
For me, i use often: fpc from the distribution and lazarus build from sources. Path are correct with this. And no root is nessesary. I never use shares as a base for the sources, always only a source control tool like git (or svn). With this, it is for me meaningless on what platform i have to work. And i am working on different linux, raspbian and windows.
BTW: I can use a crosscompiling sytsem to compile from windows to the linux targets. The only goal is, to have the correct libs on the windows machine for the different linux'es.
--- End quote ---
Hello af0815, I would very much like to learn how I could achieve a cross compiling system from windows. This has been on my mind for a while now. The current history I have on this software that I am trying to get working is as follows:
* Originally written and compiled for OpenVMS
* Ported to CentOS 7 and compiled on the distro
* Copied source code from CentOS 7 and now attempting to build on AlmaLinux
Currently, the source code is stored on a Windows Server and when building for Linux, the network directory is mounted via Samba and the lazbuild command is used to compile the source code.
Additionally, the majority of the source code was not written within the Lazarus IDE as there wasn't one for OpenVMS, it was all done using the inbuilt text editor (not sure if that affects anything).
Navigation
[0] Message Index
[#] Next page
[*] Previous page