A beginners problem. lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- knutendre · 2011-10-01 15:15 I have just installed Lazarus on a MacBook Air (2010), running Lion. I have according to instructions loaded three dmgs and installed them all. I can start Lazarus without any error messages, and I see a form and I can add a Tbutton to my form. Everything seems well. Then when I want to add some code to my Tbutton (by clicking it) I stops and I get the following error message "Error in TDefaultComponentEditor ...", see attachment 1. Furter in a message box it says "--------------------------------------------- Developer/lazarus/lcl/lclclasses.pp(32,10) Error: unit not found: Classes " Can anybody out there help a complete beginner? I would much appreciate to come over these start-problems so I can do some coding. Best regards Knut.E ---------------------------------------------------------------------- CaptBill · 2011-10-01 15:38 Hi Knutendre, You need to set your paths in menu|environment|options. Go to the "paths" section and supply the directory where fpc.exe is located (usually /fpc/bin i think). Also check for the path setting to the lazarus directory. First try simply saving your project. This may be the actual problem. Enjoy ---------------------------------------------------------------------- jwdietrich · 2011-10-01 15:44 Which version of Lazarus / Free Pascal do you use? ---------------------------------------------------------------------- kamischi · 2011-10-01 16:26 Quote from: CaptBill on October 01, 2011, 05:38:15 pmGo to the "paths" section and supply the directory where fpc.exe is located (usually /fpc/bin i think). On Mac OS X, the default is /usr/local/bin/fpc Mischi ---------------------------------------------------------------------- jwdietrich · 2011-10-01 18:17 Did you also load FPC and FPCsrc? On Mac OS X, it is a usual mistake to only load Lazarus and not the corresponding FPC and FPCsrc archives. Correct versions are: For Lazarus 0.9.30.2RC1: fpcsrc 2.4.4 and fpc 2.4.4 For Lazarus 0.9.30: fpcsrc 2.4.2 and fpc 2.4.2 The links are provided directly in the corresponding Lazarus downloads folder at SourceForge. And ensure to correctly set the paths as noted above. ---------------------------------------------------------------------- MonkeyChap · 2011-10-28 20:51 Hello, I'm having exactly the same problem. There is another issue (maybe this is the cause) in that FPC is not fully installing on Lion. There is no /usr/local/share/fpcsrc folder, and I get a warning about this when Lazarus starts up. As someone is bound to ask; yes, I have run the fpc 2.4.4 installer and the fpc-xcode 2.4.4. installer (in that order) then installed Lazarus (0.9.3rc2). Ian ---------------------------------------------------------------------- Bart · 2011-10-29 15:04 IIRC the fpc installer installs only the binaries? You must install/have the fpc sources, or the codetools from Lazarus won't work. (You can download the sources, unpack, and point Lazarus to them. That should be enough.) Bart ---------------------------------------------------------------------- felipemdc · 2011-10-29 15:58 You can download a DMG with the Free Pascal source code from the SourceForge of Lazarus: http://sourceforge.net/projects/lazarus/files/Lazarus%20Mac%20OS%20X%2 0i386/Lazarus%200.9.30/ ---------------------------------------------------------------------- MonkeyChap · 2011-11-01 20:06 Hi Kuntendre, Many thanks for that. When combined with this advice: http://www.lazarus.freepascal.org/index.php?topic=10834.0 ...it solves the problem. Ian