fpcsrc location problems lazarus / 11-Options ---------------------------------------------------------------------- GordC · 2010-11-18 22:03 I'm about to give up trying to find the path for the fpc source files. The installation is in Ubunto 10.10 with Lazarus 0.9.28. During installation I got this message- "source directory does not look correct. /usr/share/fpcsrc/2.4.0". There are two options :default or ignore. I chose "default". I have tried to find where this default location is so that it can be entered as the path in the Lazarus Envirnment Options. Searching the file system for "fp", "fpc" and "fpc.cfg" brings up many locations but I haven't found a path that works. Also Lazarus complains about the location of "system.ppu". Can someone please show me how to fix this fpc source situation so I can use the compiler! Secondly, the "Help" menu on Lazarus gives the message "The Help database Start Page was unable to find /usr/share/doc/lazarus/0.9.28.2/index.html". Fixing this would be nice. Thanks, GordC ---------------------------------------------------------------------- ivan17 · 2010-11-19 00:05 Quote from: GordC on November 18, 2010, 11:03:34 pmsource directory does not look correct. /usr/share/fpcsrc/2.4.0over here the path is /usr/share/fpcsrc (no number);  might not be same on ubuntu (i install from rpms) Quote from: GordC on November 18, 2010, 11:03:34 pmThe Help database Start Page was unable to find /usr/share/doc/lazarus/0.9.28.2/index.html". Fixing this would be nice.i think that one's in /usr/lib/lazarus/docs/ over here.  again it might not be there on ubuntu. ---------------------------------------------------------------------- Martin_fr · 2010-11-19 09:02 I don't know where it should be. But if you can't find it locate system.pp find / -name system.pp The other thing is: How did you install Lazarus. Are you 100% sure that all dependencies are actually installed? AFAIK, on most linux, you have the option to install fpc and/or fpc- src. The first only installs fpc with ppu, but no source. So maybe you still have to install the source? (And yes: you can compile apps with fpc, even if no source is isntalled. But if you use Lazarus, you need the source, or codecompletion features will be limited) ---------------------------------------------------------------------- GordC · 2010-11-19 22:34 Eventually I got version 2.4.2 of the fpc-source from the following links:- goto the ftp directory "freepascal.org/pub/fpc/dist/2.4.2" download "fpc-source_2.4.2-0_all.deb" click on the downloaded file and look for its installed path. The path is /usr/share/fpcsrc/2.4.2. I think the original installation failed on version 2.4.0. Anyways the Lazarus->Environment->Options accepted this new path for the fpc source. Thanks Ivan. Absolutely no luck on the index.html for the Help menu. Searching for "index.html" produces 130 (!) finds. I don't have the patience to get the paths for all of then. [Pity the File Manager does not show paths directly, you have to look at the properties of each item]. Again, I think the installation failed here also but I can't find anything understandable on the web. Martin, The system.ppu error message has now gone away so I hope all is well. ---------------------------------------------------------------------- Martin_fr · 2010-11-20 00:59 I don't use the help myself, but: http://sourceforge.net/projects/lazarus/files/Lazarus%20Documentation/ Lazarus%200.9.28.2/fpc-lazarus-doc-html-0.9.28.2.tar.bz2/download which is from the official download page: there is a section lazarus documentation, and it has html .... ---------------------------------------------------------------------- ivan17 · 2010-11-21 07:43 Quote from: GordC on November 19, 2010, 11:34:37 pmAbsolutely no luck on the index.html for the Help menu. Searching for "index.html" produces 130 (!) finds. I don't have the patience to get the paths for all of then. [Pity the File Manager does not show paths directly, you have to look at the properties of each item]. oh for heaven's sake - get a file manager that befits a programmer (emelfm2 or at least krusader) and learn how to use it.  the thing you called file manager is intended for girls to browse through picture/music directories. Quote from: GordC on November 19, 2010, 11:34:37 pmAgain, I think the installation failed here also but I can't find anything understandable on the web. so, you may need to poke around to get it to work. don't lose hope, first time is the hardest. after third time, you'll forget those troubles existed. oh, and did you read this one? ---------------------------------------------------------------------- GordC · 2010-11-21 18:58 OK, I am making some progress. The link you sent me:- http://sourceforge.net/projects/lazarus/files/Lazarus%20Documentation/ Lazarus%200.9.28.2/fpc-lazarus-doc-html-0.9.28.2.tar.bz2/download contains html help for the lcl, rtl and fcl. I downloaded the file to the default Downloads folder and unzipped it. Using the Environmental Options in Lazarus, I changed the paths of the database items above to match the subfolders of the Downloads. Now I can use the F1 key to get local help . So, with your help, things are looking good. Gord