[SOLVED] Things went wrong installing a Component lazarus / 3-General ---------------------------------------------------------------------- garlar27 · 2012-05-16 20:46 Hello!! I'm using Lazarus 0.9.30 FPC 2.4.4 under Ubuntu 10.04 I was trying to install EpikTimer component. It compiled well so i decided to install it, but when I clicked the Install button at linking time it gave an error: lazarus could not find -lGL or something like that. Accidentally I exited Lazarus IDE but when trying to run Lazarus again startlazarus complained about missing lazarus. The lazarus binary is missing and I don't have a back up (lazarus-old is missing too). I had a problem like this long time before with an older version. so here comes the question: How do I rebuild Lazarus without EpikTimer but WITH ALL the components I have installed previously? I know if I use " make clean all" it will install lazarus like the first time I did it. And this is not what I want . Thanks in advance. ---------------------------------------------------------------------- JuhaManninen · 2012-05-17 04:57 Quote from: garlar27 on May 16, 2012, 10:46:45 pmHow do I rebuild Lazarus without EpikTimer but WITH ALL the components I have installed previously? I know if I use " make clean all" it will install lazarus like the first time I did it. And this is not what I want . Easiest way is to do it in 2 steps: First "make all" or "make clean all". Then in the IDE select only the packages you want installed, in Package -> Install/Uninstall Packages. It remembers your old selections. Then rebuild Lazarus from the IDE. It uses the build profile selected in Tools -> Configure Build Lazarus. Juha ---------------------------------------------------------------------- eny · 2012-05-17 10:19 And if that doesn't work: 1. remove the object files that were created during compilation; 2. select to install the package without compiling first. It's a bug somewhere that installation doesn't always work when the object files are already there. ---------------------------------------------------------------------- garlar27 · 2012-05-17 16:30 Thank you!! I finally could rebuild Lazarus correctly. You where right about remembering previously installed components!! When trying to rebuild Lazarus I had an error while linking Quote/usr/bin/ld: cannot find -lGL It looks like somewhere in time I tried to install an OpenGL component and it failed but it never was removed from the component list. And now I had the problem. I didn't know what was "-lGL". now I know. "-l" is to search for a library, and "GL" is the library name which I don't have installed. and that was the root of my problem.