Can't find the unit glib Slackware lazarus / 1-Linux ---------------------------------------------------------------------- mirttex · 2005-08-14 02:06 To start I downloaded: fpc-2.0.0-0.i586.rpm - fpcsrc-2.0.0-0.i386.rpm - lazarus-0.9.8-fpc_2.0.0_0.i386.rpm rpm2tgz and installpkg all of then. type lazarus on de command line and it loads without any error. I try to press the play just to see if it is working, and it gives me a message Fatal: Can't find unit glib. I went to slackware.com and download the lastest glib and gtk but the same error persists. some searches on google and nothing! there is a FAQ on lazarus web page but it doesn't hv the solution!! If someone can help it will be very nice to made my school works (delphi ones). I use Slackware 10.1 ---------------------------------------------------------------------- Drewski · 2005-08-14 02:17 fpc is not configured correctly. make sure /etc/fpc.cfg exists and it has the lines: -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/* -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/rtl or possibly /usr/local/lib/... HTH Andrew ---------------------------------------------------------------------- mirttex · 2005-08-14 03:15 well I have already read the faq but there doesn't explain on how I solve the problens. the /etc/fpc.cfg doesn't even exists i also tried cd /usr/lib/fpc/.../ ./samplefpc /this dir/ /etc/fpc.cfg but it gives me more errors and didn't solve my problem! I'm getting tired of this... but I don't wanna give up! Im a kind of newbie and I love step by step... :lol: ---------------------------------------------------------------------- Drewski · 2005-08-14 03:26 you have to be root to run samplecfg. so as root you could try: /usr/lib/fpc/2.0.0/samplecfg /usr/lib/fpc/2.0.0 /etc HTH Andrew and that should fix it. ---------------------------------------------------------------------- Drewski · 2005-08-14 03:28 to become root temporarily, at a terminal type: "su" minus the quotes and then enter root's password ---------------------------------------------------------------------- mirttex · 2005-08-14 15:11 I hv allready done that. but I did it again and it didn't solve my problem. the problem still the same... thanks anyway... maybe I have to point that to somewhere else? ---------------------------------------------------------------------- mirttex · 2005-08-14 15:16 GREAT!! thanks... I did the command wrong it creates at /etc/fpc.cfg/fpc.cfg I cp the file and remove the dir. now it's working (at least I guess!)