Recent

Author Topic: fail to install Lazarus 2.2.6 on KaOS Linux  (Read 4491 times)

raerband

  • Newbie
  • Posts: 4
fail to install Lazarus 2.2.6 on KaOS Linux
« on: October 24, 2023, 05:52:02 pm »
I downloaded the tar file from sourceforge.
Extract it but there is nothing file/command to install it.
How to do?
Regards

af0815

  • Hero Member
  • *****
  • Posts: 1381
Re: fail to install Lazarus 2.2.6 on KaOS Linux
« Reply #1 on: October 24, 2023, 06:10:06 pm »
Have you installed fpc before ? Nomal you can work with make. Is make available on your system ?
regards
Andreas

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12006
  • FPC developer.
Re: fail to install Lazarus 2.2.6 on KaOS Linux
« Reply #2 on: October 24, 2023, 06:26:50 pm »
If the TAR is the source, you need a FPC install to compile FPC.

If the TAR is a binary distribution, there should be an install.sh script.
« Last Edit: October 24, 2023, 06:49:28 pm by marcov »

raerband

  • Newbie
  • Posts: 4
Re: fail to install Lazarus 2.2.6 on KaOS Linux
« Reply #3 on: October 24, 2023, 06:48:59 pm »
Have you installed fpc before ? Nomal you can work with make. Is make available on your system ?
Yes, I installed FPC before.
I downloaded it from the official website freepascal.org. there is install.sh inside the FPC tar file. it looks like successfully installed.

There should be an install.sh script.
There is not install.sh file inside the Lazarus tar file.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12006
  • FPC developer.
Re: fail to install Lazarus 2.2.6 on KaOS Linux
« Reply #4 on: October 24, 2023, 06:50:22 pm »
What happens if you do

Code: Pascal  [Select][+][-]
  1. make bigide

in the lazarus dir ?

If that fails, paste the output of "make info"

raerband

  • Newbie
  • Posts: 4
Re: fail to install Lazarus 2.2.6 on KaOS Linux
« Reply #5 on: October 24, 2023, 06:59:08 pm »
What happens if you do

Code: Pascal  [Select][+][-]
  1. make bigide

in the lazarus dir ?

If that fails, paste the output of "make info"

 raerband  ~  Téléchargements  lazarus  make bigide
make -C packager/registration
make[1] : on entre dans le répertoire « /home/raerband/Téléchargements/lazarus/packager/registration »
/usr/bin/rm -f ../units/x86_64-linux/fcllaz.ppu
/usr/bin/rm: impossible de supprimer '../units/x86_64-linux/fcllaz.ppu': Permission non accordée
make[1]: [Makefile:3826: cleartarget] Error 1 (ignorée)
make[1]: stat: ../units/x86_64-linux : Permission non accordée
/usr/bin/mkdir -p ../units/x86_64-linux
/usr/bin/mkdir: impossible de créer le répertoire « ../units »: Permission non accordée
make[1]: *** [Makefile:3387: ../units/x86_64-linux] Error 1
make[1] : on quitte le répertoire « /home/raerband/Téléchargements/lazarus/packager/registration »
make: *** [Makefile:3800: registration] Error 2
 raerband  ~  Téléchargements  lazarus  

below is the result of make info

 raerband  ~  Téléchargements  lazarus  make info

== Package info ==
Package Name..... lazarus
Package Version.. 2.2.6

== Configuration info ==

FPC.......... /usr/bin/ppcx64
FPC Version.. 3.2.2
Source CPU... x86_64
Target CPU... x86_64
Source OS.... linux
Target OS.... linux
Full Source.. x86_64-linux
Full Target.. x86_64-linux
SourceSuffix. x86_64-linux
TargetSuffix. x86_64-linux
FPC fpmake... /usr/bin/ppcx64

== Directory info ==

Required pkgs... rtl regexpr

Basedir......... /home/raerband/Téléchargements/lazarus
FPCDir.......... /usr/lib/fpc/3.2.2
CrossBinDir.....
UnitsDir........ /usr/lib/fpc/3.2.2/units/x86_64-linux
PackagesDir..... /usr/lib/fpc/3.2.2

GCC library..... /usr/lib/gcc/x86_64-pc-linux-gnu/12.3.0
Other library...

== Tools info ==

As........ as
Ld........ ld
Ar........ ar
Rc........ rc

Mv........ /usr/bin/mv
Cp........ /usr/bin/cp
Rm........ /usr/bin/rm
GInstall.. /usr/bin/install
Echo...... /usr/bin/echo
Shell..... /bin/sh
Date...... /usr/bin/date
FPCMake... /usr/bin/fpcmake
PPUMove... /usr/bin/ppumove
Zip....... /usr/bin/zip

== Object info ==

Target Loaders........
Target Units..........
Target Implicit Units.
Target Programs....... lazarus startlazarus lazbuild
Target Dirs...........
Target Examples.......
Target ExampleDirs....

Clean Units.........
Clean Files.........

Install Units.......
Install Files.......

== Install info ==

DateStr.............. 20231024
ZipName.............. lazarus
ZipPrefix............
ZipCrossPrefix.......
ZipSuffix............ .x86_64-linux
FullZipName.......... lazarus.x86_64-linux
Install FPC Package.. n

Install base dir..... share/lazarus
Install binary dir... /usr/local/bin
Install library dir.. /usr/local/lib
Install units dir.... share/lazarus/units/x86_64-linux/lazarus
Install source dir... /usr/local/share/src/fpc-3.2.2/lazarus
Install doc dir...... /usr/local/share/doc/fpc-3.2.2/lazarus
Install example dir.. /usr/local/share/doc/fpc-3.2.2/lazarus/examples
Install data dir..... share/lazarus

Dist destination dir. /home/raerband/Téléchargements/lazarus/dist
Dist zip name........

 raerband  ~  Téléchargements  lazarus  

Regards

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12006
  • FPC developer.
Re: fail to install Lazarus 2.2.6 on KaOS Linux
« Reply #6 on: October 24, 2023, 07:17:21 pm »
If my limited French serves mer right, it seems you don't have adequate permissions in the lazarus dir. Needs a bit of chmod and chown'ing to match the read/write/execute permissions to your account

raerband

  • Newbie
  • Posts: 4
Re: fail to install Lazarus 2.2.6 on KaOS Linux
« Reply #7 on: October 25, 2023, 04:23:20 am »
If my limited French serves mer right, it seems you don't have adequate permissions in the lazarus dir. Needs a bit of chmod and chown'ing to match the read/write/execute permissions to your account

After sudo make bigide, below is the last screenshot

TRon

  • Hero Member
  • *****
  • Posts: 3840
Re: fail to install Lazarus 2.2.6 on KaOS Linux
« Reply #8 on: October 25, 2023, 05:24:48 am »
https://wiki.lazarus.freepascal.org/Lazarus_FAQ#I_receive_an_error_during_the_linking_that_states_.2Fusr.2Fbin.2Fld:_cannot_find_-l.3Csome_lib.3E
https://wiki.lazarus.freepascal.org/GTK2_Interface#Quick_start_guide_for_Linux.2C_FreeBSD.2C_etc

That is, assuming you run a gtk2 desktop or want to target gtk2 widgetset. I don't even know if the Lazarus build automatically detects the correct/default desktop interface.

After sudo make bigide
The Lazarus build does not require any elevated rights, unless you specifically tell it to install somewhere where those rights are required (but since the commandline only contains make ...).


edit: On second thought, nevermind all the above. You seem to be using a distribution that wants to do things in its own way, not adhering to any standard, does not want to rely on symlinks etc. I would suggest to read their manual on how you are suppose to setup their OS for development.
« Last Edit: October 25, 2023, 06:01:15 am by TRon »
I do not have to remember anything anymore thanks to total-recall.

dbannon

  • Hero Member
  • *****
  • Posts: 3202
    • tomboy-ng, a rewrite of the classic Tomboy
Re: fail to install Lazarus 2.2.6 on KaOS Linux
« Reply #9 on: October 25, 2023, 02:16:32 pm »
Firstly, by running make as root, you will have left a whole pile of root owned files in your install directory. Always a bad thing. So, clean that up, possibly by blowing that directory away and unzipping (zip ? tar ? etc ) the source files again.

Then, find out why you don't have write permission  in your home directory, maybe thats the first thing to do ?

Thirdly, its appears Lazarus is trying to build a gtk2 version, probably a good choice, but you have not installed the dependencies, please see https://wiki.freepascal.org/Installing_Lazarus_on_Linux#Build_Lazarus_from_Source especially the second   Note: Dependencies. But don't even think about that step until you have solved that write in your own dir issue and cleaned up the root files one way or another.

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

 

TinyPortal © 2005-2018