Can't find unit XXXXX??? lazarus / 1-Linux ---------------------------------------------------------------------- pjp2009 · 2009-05-22 22:19 Hi I recently upgraded to Lazarus v0.9.26 beta on Ubuntu Linux and have a few problems. First off... When I create a new LCL project and try to run it I get an error: "Can't find unit Interfaces used by project1" When I try to rebuild Lazarus I get an error: "Can't find unit Graphics used by TASeries" Now, all the file paths are correct in the environment settings. I installed FPC and the source, followed all the steps necessary. Can anyone please help???? Thanks ahead... ---------------------------------------------------------------------- LazaruX · 2009-05-23 16:03 I am not sure,   but please try to save your project to a path without spaces ---------------------------------------------------------------------- pjp2009 · 2009-05-23 21:05 Nah, doesn't work... thanks anyway. The steps I take: 1.) Start a new LCL project. 2.) Save the project to a folder in my home directory. 3.) Squeeze the F9 key (The LCL form is still empty). 4.) Error: "Can't find unit interfaces used by project1" Environment Path Settings: Lazarus Path: "/usr/lib/lazarus/" - Looked for it, found it... 100% right. FPC Path: "/usr/bin/fpc" - Yeah, it's really there. FPC Source path: "/usr/share/fpcsrc/" - Also on my system. Everything needed is installed, but I still get those errors. Problem is... Lazarus can't find those units, but I can??? ---------------------------------------------------------------------- clauslack · 2009-05-23 23:59 For recompile lazarus before check paths in /etc/fpc.cfg In the line # searchpath for units and other system dependent things -Fu/usr/lib/$fpcversion/units/$fpctarget -Fu/usr/lib/$fpcversion/units/$fpctarget/* -Fu/usr/lib/$fpcversion/units/$fpctarget/rtl In my case is /usr/lib/fpc/2.2.2/units/i386-linux Check in Compiler Options the correct Widgetset LCL, if you have a gtk2 not  instaled or compiled, rebuild LCL with GTK2. Look at this too http://wiki.lazarus.freepascal.org/Lazarus_Faq#.22Cannot_find_Unit_int erfaces.22._How_can_I_solve_this.3F ---------------------------------------------------------------------- pjp2009 · 2009-05-24 16:25 Okay... that almost worked... When I try to rebuild Lazarus it goes on for a while (not complaining about the graphics unit) and then it can't find a unit named FileUtil thats used by ProjectTemplates... But I totally removed the Lazarus package from my system and compiled it from source... And it WORKED! Thanks guys...