Install Lazarus - Ubuntu 7.10 - FPC Source not found lazarus / 1-Linux ---------------------------------------------------------------------- vendettanet · 2008-01-20 10:30 Hi, I'm new to ubuntu and lazarus (FPC too). I'm usually program with Delphi in windows, thinking to move to linux - lazarus. But after install the Lazarus package via Ubuntu Synaptic (which automatically also installing all the FPC needed), there is problem, the FPC units sources not exists. How can I install them ? Thank You ---------------------------------------------------------------------- sonicer · 2008-01-20 11:27 Just download FPC source from www.freepascal.org ,and unzip it to a folder I install FPC/Lazarus on a FreeBSD(6.3),same question,and solved via this way ---------------------------------------------------------------------- pch · 2008-01-20 12:11 But be sure to get the same version as the fpc from Ubuntu repository, 2.04 ? It may be better to get fpc 2.2 and lazarus 0.9.24 deb from the lazarus download page, it include fpc-src. ---------------------------------------------------------------------- vendettanet · 2008-01-21 08:09 Quote from: "pch"But be sure to get the same version as the fpc from Ubuntu repository, 2.04 ? FPC automatic installed when installing Lazarus in Ubuntu 7.10 and there is no other option than the one installed on synaptic. QuoteIt may be better to get fpc 2.2 and lazarus 0.9.24 deb from the lazarus download page, it include fpc-src. I really love if I just can simply use the one from synaptic for several reason but the most is because internet on my third country is very very very slowwwwww to download from lazarus directly (and often fail), since uses synaptic I'm downloading from national server not international. But since it might the only solution, unfortunately I must download from there. May be this is just a report to Lazarus & FPC team to fix Ubuntu 7.10 Lazarus & FPC installation problem. I wish a newbie like me doesn't discouraged on the first installation. Thank You ---------------------------------------------------------------------- tech-pro · 2008-01-21 15:51 Which type of packages does Ubuntu use? Can you install the lazarus 0.9.24 deb in Ubuntu Gutsy? I'm interested in the answer to this because I have a PC with some empty space ready to install Ubuntu and then Lazarus, and I'm also fairly clueless about Linux. I'm just waiting for the February 2008 Linux Magazine to arrive which has Ubuntu Gutsy on the cover DVD. And I was particularly interested in that because I know Ubuntu is one of the easier to use distros and I knew it had Lazarus in its repository. ---------------------------------------------------------------------- greendayzero · 2008-01-22 06:26 Quote from: "tech-pro"Which type of packages does Ubuntu use? Can you install the lazarus 0.9.24 deb in Ubuntu Gutsy? I'm interested in the answer to this because I have a PC with some empty space ready to install Ubuntu and then Lazarus, and I'm also fairly clueless about Linux. I'm just waiting for the February 2008 Linux Magazine to arrive which has Ubuntu Gutsy on the cover DVD. And I was particularly interested in that because I know Ubuntu is one of the easier to use distros and I knew it had Lazarus in its repository. I use Kubuntu. Only because I prefer KDE for a desktop.  However, these commands will work in Ubuntu. open xterm (or whichever console / console emulator you have) and type: dpkg --install lazarus-0.9.24.deb Tim ---------------------------------------------------------------------- tech-pro · 2008-01-25 18:14 I tried Kubuntu, but I could not get on with the user interface, the garish icons, the childish animated cursors, the awful file manager with a strange name, some odd editor called Kate... So I got Xandros, a Linux distribution that looks as if it has been designed by and for grown-ups. I downloaded the Lazarus deb and the FPC tar.gz of debs and began installing them. But I hit a problem when I got to fp-units-gfx because this depended on libggi-dev and libgd-dev which were nowhere to be found, even in the "unsupported" Debian repository that I added to the package manager. Eventually I found that I could overcome this problem by running apt- get -f install, which managed to fix the dependencies and install the missing packages. But I have hit a brick wall with fp-units-net. This requires libdbus-1-dev which is not available in the Xandros repository. I found it at debian, but when I configure the package manager to look there apt-get says it is going to have to remove all the Xandros desktop software that would effectively break the distribution. If I forget about fp-units-net and install Lazarus, then despite the errors, an entry is created for it in the programs menu and when I click it Lazarus runs! However, apt-get -f install wants to remove it! When I try to compile a simple "hello world" it fails with "Can't find unit URIParser used by XMLRead." I take back everything bad I ever said about Bill Gates! After a bit more faffing around uninstalling the Laz deb I finally managed to get it to compile. Yay! BUT, my package manager is now completely broken and apt-get -f install wants to remove both fp- units-net and lazarus to fix it. Obviously, I don't want to do that now that it seems to work, but I can't install anything else on my system. Any ideas? ---------------------------------------------------------------------- mmaca · 2008-01-31 15:45 Hola, you Watch the  page web, possible solution: https://answers.launchpad.net/ubuntu/+question/16174 Mauricio M. ---------------------------------------------------------------------- Marion · 2008-02-05 20:46 I am having the same problem with the Ubuntu install of Lazarus/FPC. I have followed all of the different threads of this post and none of them work. Either the file has changed and I have had to select a different one or the .deb install does work. I have even manually extracted the source and pointed Lazarus to it. In the end, nothing I have done has gotten a project to compile. My specific error is: project1.lpr(8,7) Fatal: Can't find unit Interfaces used by Project1 I am a long time Windows/Delphi programmer who has recently dumped Windows completely. I love Delphi and hope to be apart of a the great Lazarus/FPC community. Any help would be appreciated. ---------------------------------------------------------------------- tech-pro · 2008-02-05 21:02 I just checked my installation and the file interfaces.pas is in /usr/share/lazarus/interfaces/gtk2. I guess you may have not extracted all the files you need. I had a mighty battle trying to install Lazarus using debian packages. I have now made an image backup of this Linux installation and I will need a very compelling reason to change to another distro, unless I find one with a working, up to date Lazarus in its repository. ---------------------------------------------------------------------- Marion · 2008-02-06 12:59 Quote from: "tech-pro"I just checked my installation and the file interfaces.pas is in /usr/share/lazarus/interfaces/gtk2. I guess you may have not extracted all the files you need. I had a mighty battle trying to install Lazarus using debian packages. I have now made an image backup of this Linux installation and I will need a very compelling reason to change to another distro, unless I find one with a working, up to date Lazarus in its repository. I installed Lazarus using the Ubuntu repository. I looked for the path you indicated and it doesn't exist. So I searched for "interfaces.pas" and it was found in: /usr/lib/lazarus/lcl/interfaces/gtk2 /usr/lib/lazarus/lcl/interfaces/carbon I tried setting the "FPC source directory" to those paths but then other files came up missing. (I changed it back to "/usr/src/fpc-2.0.4") Is it a good idea to copy the contents of "/usr/lib/lazarus/lcl/interfaces/gtk2" into "/usr/src/fpc-2.0.4". If I did that I don't think I would be able to undo it if it is wrong. What does your FPC source directory say? ---------------------------------------------------------------------- Marion · 2008-02-06 13:30 Ok. As a test I copied the unit "/usr/lib/lazarus/lcl/interfaces/gtk2/interfaces.pas" into "/usr/src/fpc-2.2.0/interfaces.pas". The problem remained. ---------------------------------------------------------------------- Vincent Snijders · 2008-02-06 13:55 Marion, try this FAQ. It mayb e necessary to undo all your previous changes which copied files into the wrong location. ---------------------------------------------------------------------- Marion · 2008-02-07 02:07 Quote from: "Vincent"Marion, try this FAQ. It mayb e necessary to undo all your previous changes which copied files into the wrong location. Well, thanks for that link to the FAQ. I did everything in there and none of it worked. I couldn't even recompile Lazarus because it couldn't find FileUtil. I have to admit that I am disappointed. I am a long time Delphi programmer and love that tool. I was hoping to keep going with it but it looks like I am going to have to learn Eclipse/Java. I really prefer compiled over interpreted. ---------------------------------------------------------------------- greendayzero · 2008-02-07 02:31 tech-pro: The KDE desktop is configurable regardless of distro.. in fact, if you find that your not satisfied with any distro, there is always linux from scratch http://www.linuxfromscratch.org/ which is also a good learning experience.  I've made a few LFS "custom" distros for various functions on the home network.  Anyway, linux is nice for that reason.. you can use Gnome or Xfce if you don't like KDE, etc.. Marion: I would uninstall all of FPC and Lazarus and install from repositories. then follow mmaca's instructions above on sources.  If none of this works, it would be interesting to know your hardware configuration/platform.   I'm not sure what else to say here, because I've installed FPC & Lazarus on Open Suse, Slackware 12, and Kubuntu 7.10 on different hardware with little to no problems or "work arounds". ---------------------------------------------------------------------- Marion · 2008-02-07 03:01 It works! It works! Thanks to this wiki http://wiki.freepascal.org/Getting_Lazarus I was able to use their repository to get Lazarus installed and working! Why can't Lazarus do this? ---------------------------------------------------------------------- Marc · 2008-02-07 11:23 ???? The Freepascal wiki and the Lazarus wiki are the same wiki, so what can't Lazarus do ? ---------------------------------------------------------------------- gviger · 2008-02-22 21:57 I have installed Ubuntu 7.10 and then installed Lazarus via repository. But that was 0.9.22 and it was old (on windows I use 0.9.24.1). So I have downloaded 0.9.24 deb version and I have installed and everything started to work, but I have some issues and some bugs with this version and I notice that this is 0.9.24 beta. Now I am searching some new version for ubuntu maybe 0.9.25 but there is no such thing in download section. Can some one point me how to compile Lazarus from source. ---------------------------------------------------------------------- gviger · 2008-02-23 18:00 Ok I have managed to compile from source. Copy source to /usr/share/lazarus/ and then make > /dev/null so far so good.