Recent

Author Topic: fpc.cfg is missing  (Read 6039 times)

Thaddy

  • Hero Member
  • *****
  • Posts: 14205
  • Probably until I exterminate Putin.
Re: fpc.cfg is missing
« Reply #15 on: October 22, 2019, 03:08:29 pm »
You do not have a proper installation if both return nothing. Start from scratch. Use fpcdeluxe if you do not have sufficient linux knowledge.
Specialize a type, not a var.

Hopestation

  • Full Member
  • ***
  • Posts: 181
Re: fpc.cfg is missing
« Reply #16 on: October 22, 2019, 03:26:18 pm »
I've moved fpc.cfg to /etc and tried startlazarus again.

There is a new error now. Error: system.ppu not found. check your fpc.cfg

So I opened fpc.cfg in Text Editor and searched for system.ppu.

It wasn't found.

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: fpc.cfg is missing
« Reply #17 on: October 22, 2019, 03:28:51 pm »
Try installing FPC.
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: fpc.cfg is missing
« Reply #18 on: October 23, 2019, 09:36:19 am »
Wow Hopestation, you really are having some problems.

I just fired up my VM of Linux Mint 19.2 and installed fpc-laz, as expected. And yes, at the end of the process I had an appropriate fpc.cfg in /etc

So, I really don't understand what is going wrong in your case. I guess I have to wonder if your DEB install of fpc-laz went wrong as a result of your previous attempts to install via rpm or manually generate a fpc.cfg file. I really recommend you try and clean out all the existing attempts and start again. gdebi, if you point it again at your fpc-laz deb file will 'remove' everything it installed (but maybe leave the dependencies, if so, thats good).

Then repeat the gdebi install of fpc-laz and then, as soon as its finished, look for /etc/fpc.cfg, no point in proceeding if something failed. We need to find out what that 'something' is first.

I do wonder a bit about what you mean by having files in /home/userfiles/...    Just what is that ?  Only thing that should be in /home is user home directories.   Are you trying to avoid installing fpc-laz in /usr/ ?

(Good reasons to install Lazarus in user space but I suggest fpc is fine were its intended to be)

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

Hopestation

  • Full Member
  • ***
  • Posts: 181
Re: fpc.cfg is missing
« Reply #19 on: October 24, 2019, 11:39:58 am »
I've copied fpc.cfg to /etc and now the error message says:

 Error: system.ppu not found. Check your fpc.cfg.

I've opened it in Text Editor and searched for system.ppu and it isn't there.


dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: fpc.cfg is missing
« Reply #20 on: October 24, 2019, 11:50:49 am »
Honestly mate, install it properly !  Otherwise, every time you have a problem, you will wonder if its a coding issue or 'something' wrong with your install. 

There is no intrinsic reason why you cannot install it as its meant to be installed. As I said, I had no issues installing it on Linux Mint here.

Instead of using the GUI based GDebi, perhaps you can use the command line version, capture the on screen report for us to see.

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

Hopestation

  • Full Member
  • ***
  • Posts: 181
Re: fpc.cfg is missing
« Reply #21 on: October 24, 2019, 01:48:40 pm »
I've deleted the usr directory in /home/userfiles, that was created when I extracted the rpm files. Deleted the fpc-laz_3.0.4-1_amd64.deb file from downloads and used Software Manager to uninstall fpc.

I've downloaded the fpc-laz_3.0.4-1_amd64.deb file again and run GDebi to install fpc-laz_3.0.4-1_amd64.deb.

This is the result that I got:

dpkg: regarding .../fpc-laz_3.0.4-1_amd64.deb containing fpc-laz:
 fpc-laz conflicts with fp-compiler
  fp-compiler-3.0.0 provides fp-compiler and is present and installed.

dpkg: error processing archive /home/userfiles/DOWNLOADS/fpc-laz_3.0.4-1_amd64.deb (--install):
 conflicting packages - not installing fpc-laz

It appears that I need to remove other files.

Where should I look?


MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: fpc.cfg is missing
« Reply #22 on: October 24, 2019, 02:48:18 pm »
sudo find / fp-compiler

or

locate fp-compiler etc.

As I've already said: start off with the binaries from the FPC download page, which have an install script. That will put fpc (the main "frontend" program) in e.g. /usr/local/bin, the "backend" programs and libraries in a tree off /usr/local/lib, and will create /etc/fpc.cfg.

I presume that when you started with rpms that you didn't use  alien  to convert them to Debian format, and it sounds as though there's something odd in the .deb that you've tried more recently.

MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Akira1364

  • Hero Member
  • *****
  • Posts: 561
Re: fpc.cfg is missing
« Reply #23 on: October 24, 2019, 08:14:33 pm »
Do you know what directory your actual "fpc" compiler binary is located in? If so, put fpc.cfg in that directory.

Or more broadly, put fpc.cfg in any directory that is on your system's global path and thus visible from everywhere.
« Last Edit: October 24, 2019, 08:16:17 pm by Akira1364 »

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: fpc.cfg is missing
« Reply #24 on: October 25, 2019, 04:28:09 am »
Actually, I think its more likely your problem is that the OS Package Manager thinks you still have the Package Manager's repo fp-compiler installed. I guess you don't have synaptic package manager installed ?  Its a far more powerfull tool than the things they ship called "software Install" and the like.  Either way, maybe its time for some command line work ?

At a terminal,  try -

dpkg -l | grep fp <enter>

The the '|' symbol, a pipe, its usually to the right of keyboard, shown as a vertical line, its not an alpha numeric.  The command firstly lists all installed packages and that is piped to the grep that filters out all except a line that has fp somewhere in it.  So, there will be lots of hits !  Look to see if what you interested in is listed. If it is, it must be removed with package manager, don't be tempted to remove the files, the package manager will still believe they are there !

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

zoltanleo

  • Sr. Member
  • ****
  • Posts: 486
Re: fpc.cfg is missing
« Reply #25 on: October 25, 2019, 09:19:39 am »
Where should I look?
Hi Hopestation

Maybe you should repeat the installation from scratch?
Here is the correct way to install fpc and Lazarus from standard packages for Debian (Mint is its clone)
https://forum.lazarus.freepascal.org/index.php/topic,47149.msg337054.html#msg337054
Win10 LTSC x64/Deb 11 amd64(gtk2/qt5)/Darwin Cocoa (Monterey):
Lazarus x32/x64 2.3(trunk); FPC 3.3.1 (trunk), FireBird 3.0.10; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: fpc.cfg is missing
« Reply #26 on: October 25, 2019, 09:31:03 am »
Do you know what directory your actual "fpc" compiler binary is located in? If so, put fpc.cfg in that directory.

Or more broadly, put fpc.cfg in any directory that is on your system's global path and thus visible from everywhere.

I'm not sure that's good advice in the general case.

It would certainly be unconventional to put fpc.cfg in /bin on a unix system.
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Akira1364

  • Hero Member
  • *****
  • Posts: 561
Re: fpc.cfg is missing
« Reply #27 on: October 31, 2019, 06:02:00 am »
Do you know what directory your actual "fpc" compiler binary is located in? If so, put fpc.cfg in that directory.

Or more broadly, put fpc.cfg in any directory that is on your system's global path and thus visible from everywhere.

I'm not sure that's good advice in the general case.

It would certainly be unconventional to put fpc.cfg in /bin on a unix system.

AFAIK the directory of itself is the first place FPC looks for the cfg in all cases, though.

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: fpc.cfg is missing
« Reply #28 on: October 31, 2019, 06:54:57 am »
Folks, I don't think anyone is helping Hopestation by suggesting hacks to make a botched install work. His problem is that his package manager thinks it has a better compiler installed already, whether thats true or not is unimportant, the issue is that the package manager thinks its there. 

All he needs do is convince the package manager its not, simply by doing a package manager uninstall. 

Wow, what a saga !  As an aside, I strongly believe that every Linux user build Lazarus from source as documented on the wiki page about installing Lazarus on Linux. Dead easy to build from either the SourceForge compiler or one from the Package manager's repo (as long as its 3.0.4).

Sigh ....

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

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: fpc.cfg is missing
« Reply #29 on: October 31, 2019, 09:44:33 am »
I agree with Davo. Also, leaving aside OP's initial attempt to unpack (but not install) RPMs, it looks as though at some point something has got badly confused and decided that because package management thinks that it's installed it doesn't have to check for the fpc.cfg file, or even that whoever built the fpc package for the distro has made a mistake.

One caveat: I notice than when building Lazarus on current Debian ("Buster", stable) I have to go back to the previous release to get the libqt4pas-dev package.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018