I installed Lazarus with this tutorial
But when i open Lazarus i get the error: fpc.cfg missing.
I used the alien command to install Lazaris and this is what i think the mistake(Because the site said: Debian users are recommended to use the deb packages, but may use either alien (warning, it doesn't generate fpc.cfg) or the tarball install.)
How can i create a fpc.cnf file or fix this error?
2 Answers
Its already stated there as to how to do that:
Open terminal: Ctrl + Alt + T.
Type the following:
THEPREFIX/lib/fpc/3.0.0/samplecfg $THEPREFIX/lib/fpc/3.0.0 $ETCDIR- Optionally test to see if ppc386 -i (or whatever compiler your architecture uses) gives output, else give a warning that user need to add $PREFIX/bin to his current path. Try to compiler a program with -viwn, and see if that gives errors.
I suggest you to use DEB packages anyway. There are DEB files to download directly on official sites. You need to install FPC, FPC-SRC, and Lazarus packages. fpc.cfg is autogenerated in /etc.
There is also command from FPC to generate fpc.cfg: fpcmkcfg.