lazarus error, need help lazarus / 9-Editor ---------------------------------------------------------------------- freebsduser · 2004-08-24 09:47 I have install all version lazarus release with fpc on freebsd 4.10 or freebsd 5.21but get same error. ftp://pub.dec.cn/error.png alert: error in Tdefaultcomponenteditor message:unit not fount:SYSTEM ---------------------------------------------------------------------- Anonymous · 2004-08-24 09:57 What version of lazarus and what version of fpc are you using. from the message "message:unit not fount:SYSTEM" it looks like you have a different version of fpc than that of lazarus is compiled with ---------------------------------------------------------------------- Marc · 2004-08-24 09:59 Grrr.... somehow I got logged out. Previous message from me. ---------------------------------------------------------------------- Vincent Snijders · 2004-08-24 10:04 Did you install the fpc sources? If so, did you install them in /root/Desktop/fpc? Correct the fpc source directory in the Envrionment, Environment Options, Files tab, if necessary. Try Environment, Rescan FPC directory. ---------------------------------------------------------------------- Anonymous · 2004-08-24 10:10 http://pub.dec.cn/error.png ---------------------------------------------------------------------- Marc · 2004-08-24 10:21 This image is not different tha the first one.  We need more info to help you ---------------------------------------------------------------------- Anonymous · 2004-08-24 10:25 I have install : fpcsrc-1.9.5-040821.tgz with  Lazarus 0.9.2.0( lazarus-040822.tgz)  on freebsd 5.21 /4.10 lazarus-0.9.1.4 with fpc_1.9.3 on freebsd 5.21 /4.10 lazarus0.9.1.2 with fpc 1.9.3 on freebsd 4.10 lazarus-0.9.0.8 and fpc_1.9.2_040106. on freebsd 4.10 get same error as above screenshot I don't know how to fix it,so I deinstall and  reinstall many times  . thinks. ---------------------------------------------------------------------- Marc · 2004-08-24 10:36 from https://sourceforge.net/project/showfiles.php?group_id=89339&pack age_id=93718 you need all 3 links listed under lazarus 0.9.2.0 so if you want the lazarus binary from lazarus-040822.tgz you need a compiler and compiler source version fpc_1.9.5_040808 If you want to build lazarus yourself, the fpc version and fpc source version needs to be the same. ---------------------------------------------------------------------- Anonymous · 2004-08-24 10:53 I  have install fpc sources and set Environment Options->fpc source directory to "/root/Desktop/fpc "(I am decompressing fpcsrc package file there and install it) I can using lazarus open examples project and compile them without error,but I can't edit new button(or other component  I drop to form) envents procedure code. if I double click the button component  ,It alert "error in Tdefaultcomponenteditor " msgbox as screenshot. ---------------------------------------------------------------------- Anonymous · 2004-08-24 11:09 I built fpc_1.9.5-src using fpc 1.0.10 compiler ,then  built lazarus 0.9.2.0-src using fpc_1.9.5 compiler , and then rebuilt fpc_1.9.5-src with fpc_1.9.5 compiler .something wrong? ---------------------------------------------------------------------- Marc · 2004-08-24 11:32 This looks good. Did you try Environment, Rescan FPC directory ? ---------------------------------------------------------------------- Anonymous · 2004-08-24 12:19 yes ,I do it ,but no error message. ---------------------------------------------------------------------- Marc · 2004-08-24 12:22 What do you have configured as compiler in environment options ? (path to fpc) ---------------------------------------------------------------------- Anonymous · 2004-08-24 13:32 I hace configured  environment options->  fpc compiler path ->/usr/local/bin/ppc386  //run ppc386 -i    version is 1.95  fpc src  path  -> fpc_1.9.5-src directory  where i build fpc_1.9.5 compiler. Lazarus can compile and run  anything(in exampels) fast  without error,I sure  environment configure is correct. ---------------------------------------------------------------------- Marc · 2004-08-24 14:38 Environment is not used when compiling examples. Environment is for lazarus itself. I now see something strange in your picture: Lazarus is complaining that while pasing the file /root/Desktop/fpc/fcl/classes/freebsd/classes.pp it cannot find system. But in fpc 1.9.5 the classes dir is moved to the rtl. So that sould be /root/Desktop/fpc/rtl/objpas/classes What version of sources do you have ? Have you installed different versions in the same location ? ---------------------------------------------------------------------- Anonymous · 2004-08-24 16:11 I have download fpcsrc-1.9.5-040821.tgz unpack it to  /root/Desktop/fpc cd  /root/Desktop/fpc gmake all OP=... PP= .. gmake install  .... install ok ,check pp386 version is 1.95  built   Lazarus(9.20) (gmake)  run ./lazarus, it  prompt fpc src path not setting ,so I set fpc src path to  /root/Desktop/fpc. just I try to set fpc src path to fpc 1.0.10 src directory(download in www.freepascal.org) ,lazarus 9.20  can working well:) ---------------------------------------------------------------------- Anonymous · 2004-08-24 16:59 I have download fpcsrc-1.9.5-040821.tgz extract it to /root/Desktop/fpc and built install it and set  Environment->fpc src path to this. can you tell me what is difference fpc-1.9.5-040808.src.rpm and fpcsrc-1.9.5-040808.src.rpm or fpcsrc-1.9.5-040821.tgz. I just set lazarus9.20 Environment->fpc source path to fpcsrc1.0.10(download on www.freepascal.org)  it work fine (of course,can't pass complie) thank you very much,I think I have set "fpc src path" to rong src,but i don't know witch one is correct ---------------------------------------------------------------------- Anonymous · 2004-08-24 20:48 mv /usr/local/lib/fpc/1.0.10  /usr/local/lib/fpc/1.0.10.bak ln -s /usr/local/lib/fpc/1.95 /usr/local/lib/fpc/1.0.10 every things been ok. I'am don't known why,but Lazarus runing well. Many thanks for your help. ---------------------------------------------------------------------- Vincent Snijders · 2004-08-25 06:26 Maybe you have a ppc386 on your path symlinking to  /usr/local/lib/fpc/1.0.10/ppc386. Or maybe you need to look at /etc/fpc.cfg or ~/.fpc.cfg and check if it points to /usr/local/lib/fpc/1.0.10. ---------------------------------------------------------------------- Marc · 2004-08-25 08:41 Quote from: "Anonymous"I have download fpcsrc-1.9.5-040821.tgz unpack it to  /root/Desktop/fpc Before you unpack, is the /root/Desktop/fpc  dir empty ? ---------------------------------------------------------------------- Anonymous · 2004-08-27 11:15 my god! after restart X-window ,this error come back to disturb me, /etc/fpc.cfg have seting ponit to 1.9.5,  /root/Desktop/fpc is new folder  create by  exctract tools.