Recent

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

BLL

  • Sr. Member
  • ****
  • Posts: 276
fpc.cfg is missing
« on: March 02, 2017, 03:36:27 pm »
Hi, I logged into my RasPi 3 via vnc this afternoon and found that the desktop was grey with no icons. I did an update/upgrade of the os and then I got the desktop as usual.
However, when I try to start lazarus, I get the message that fpc.cfg is missing, but it isn't. I have checked permissions on the fpc directory and on fpc and fpc.cfg and all are set as Anybody.

What is causing this error message and how do I cure it please? I get the same error if I try to start lazarus directly from the Pi's screen/keyboard.

Any help most appreciated!

Brian

Thaddy

  • Hero Member
  • *****
  • Posts: 19013
  • Glad to be alive.
Re: fpc.cfg is missing
« Reply #1 on: March 02, 2017, 04:06:31 pm »
Where is your fpc.cfg exactly? Is it where it belongs? in /etc/fpc.cfg or somewhere else.....
Recovered from removal of tumor in tongue following tongue reconstruction with a part from my leg.

BLL

  • Sr. Member
  • ****
  • Posts: 276
Re: fpc.cfg is missing
« Reply #2 on: March 02, 2017, 07:35:40 pm »
Hi Thaddy, thanks for the reply. The executable and the cfg are in /home/pi/Development/FreePascal/fpc/bin, which is where the installation put them and where they have been working fine since last May!

Brian
« Last Edit: March 02, 2017, 07:37:52 pm by BLL »

BLL

  • Sr. Member
  • ****
  • Posts: 276
Re: fpc.cfg is missing
« Reply #3 on: March 02, 2017, 07:59:15 pm »
God, I wish I understood this!! I copied fpc.cfg to /etc and it worked! How was fpc.cfg elsewhere and how could it have mysteriously disappeared from /etc on its own?

Linux/lazarus seem to have a mind of their own!!!

Brian

Thaddy

  • Hero Member
  • *****
  • Posts: 19013
  • Glad to be alive.
Re: fpc.cfg is missing
« Reply #4 on: March 03, 2017, 06:51:06 am »
From the path I see you probably used fpcdeluxe.  I had the same issue sometime ago. Hence I knew  ::)

If you once installed fpc from the RaspBian  repositories and later install with fpcdeluxe and uninstall the debian provided version, /etc/fpc.cfg will disappear.
A Raspbian install should use :  /usr/local/lib/fpc/3.0.2/*   /etc/fpc.cfg   and symlinks to fpc and ppcarm in /usr/local/bin
I also setup my fpc's (3.0.2, 3.1.1 and Lazarus (1.7)  to use the Debian default paths,although the method and paths used by fpcdeluxe should work too.

Note the current Jessie does not have 3.0.2 yet, but 2.6.4
« Last Edit: March 03, 2017, 07:08:27 am by Thaddy »
Recovered from removal of tumor in tongue following tongue reconstruction with a part from my leg.

BLL

  • Sr. Member
  • ****
  • Posts: 276
Re: fpc.cfg is missing
« Reply #5 on: March 03, 2017, 11:04:44 am »
Hi, Thanks for the reply. I installed fpc/lazarus from a script, so I didn't have a say in where it put everything. However, that setup has worked perfectly for about 6 months and then this week, I got the missing fpc.cfg message. Now, I didn't delete or change anything, so I am at a loss as to what happened. This RasPi has only had this one version of lazarus/fpc installed. Copying fpc.cfg to /etc has done the trick, but I still don't understand why.

Brian

fpc 3.0.0, lazarus 1.7

Thaddy

  • Hero Member
  • *****
  • Posts: 19013
  • Glad to be alive.
Re: fpc.cfg is missing
« Reply #6 on: March 03, 2017, 11:09:34 am »
The script is the setup.sh script from fpcdeluxe?
Then that's maybe at fault. In general fpc itself picks up any fpc.cfg, but Lazarus  requires it to be in the right place.

Anyway, it works now ;) And it works very good. I am still using one RPi3 as my everyday computer.
Recovered from removal of tumor in tongue following tongue reconstruction with a part from my leg.

BLL

  • Sr. Member
  • ****
  • Posts: 276
Re: fpc.cfg is missing
« Reply #7 on: March 03, 2017, 04:25:09 pm »
Yes, that is the script I used but I still can't understad why something that had worked for months suddenly stopped and needed a copy of fpc.cfg putting in the /etc directory, unless the RasPi thinks itself so clever that it "improves" things on its own!!

I agree that the RPi3 is very good - mine is processing and displaying data from a lot of sensors and also acting as my router and it does it effortlessly and quickly.

Thanks for the reply.

Brian

jshand2010

  • Full Member
  • ***
  • Posts: 236
Re: fpc.cfg is missing
« Reply #8 on: October 30, 2019, 03:18:18 am »
Yes, that is the script I used but I still can't understad why something that had worked for months suddenly stopped and needed a copy of fpc.cfg putting in the /etc directory, unless the RasPi thinks itself so clever that it "improves" things on its own!!

I agree that the RPi3 is very good - mine is processing and displaying data from a lot of sensors and also acting as my router and it does it effortlessly and quickly.

Thanks for the reply.

Brian

i have found a way to fix this issue and create the fpc.cfg for you.  Just use this command:

fpcmkcfg -d basepath=C:\fpc\ -o .\fpc.cfg for windows
fpcmkcfg -d basepath /usr/lib64/fpc/3.0.4/ -o ~/fpc.cfg
OpenSUSE Tumbleweed x86_64, Lazarus 2.2.0RC2 fixes branch, fpc 3.2.3 fixes branch

 

TinyPortal © 2005-2018