Recent

Author Topic: Install Lazarus - Ubuntu 7.10 - FPC Source not found  (Read 17972 times)

vendettanet

  • New member
  • *
  • Posts: 7
Install Lazarus - Ubuntu 7.10 - FPC Source not found
« on: January 20, 2008, 11:30:42 am »
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

  • New Member
  • *
  • Posts: 14
RE: Install Lazarus - Ubuntu 7.10 - FPC Source not found
« Reply #1 on: January 20, 2008, 12:27:33 pm »
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

  • Jr. Member
  • **
  • Posts: 51
    • http://ap-i.net
RE: Install Lazarus - Ubuntu 7.10 - FPC Source not found
« Reply #2 on: January 20, 2008, 01:11:57 pm »
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

  • New member
  • *
  • Posts: 7
Re: RE: Install Lazarus - Ubuntu 7.10 - FPC Source not found
« Reply #3 on: January 21, 2008, 09:09:04 am »
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.

Quote
It 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

  • Full Member
  • ***
  • Posts: 173
    • Tech-Pro.net
RE: Re: RE: Install Lazarus - Ubuntu 7.10 - FPC Source not f
« Reply #4 on: January 21, 2008, 04:51:30 pm »
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.
Julian

greendayzero

  • New Member
  • *
  • Posts: 11
Re: RE: Re: RE: Install Lazarus - Ubuntu 7.10 - FPC Source n
« Reply #5 on: January 22, 2008, 07:26:23 am »
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

  • Full Member
  • ***
  • Posts: 173
    • Tech-Pro.net
RE: Re: RE: Re: RE: Install Lazarus - Ubuntu 7.10 - FPC Sour
« Reply #6 on: January 25, 2008, 07:14:41 pm »
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?
Julian

mmaca

  • Newbie
  • Posts: 2
Posible soluction
« Reply #7 on: January 31, 2008, 04:45:51 pm »
Hola,

you Watch the  page web, possible solution:

https://answers.launchpad.net/ubuntu/+question/16174


Mauricio M.

Marion

  • Full Member
  • ***
  • Posts: 125
RE: Posible soluction
« Reply #8 on: February 05, 2008, 09:46:34 pm »
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.
Thank you,
Marion
(A recovering Windows programmer.)

tech-pro

  • Full Member
  • ***
  • Posts: 173
    • Tech-Pro.net
RE: Posible soluction
« Reply #9 on: February 05, 2008, 10:02:42 pm »
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.
Julian

Marion

  • Full Member
  • ***
  • Posts: 125
Re: RE: Posible soluction
« Reply #10 on: February 06, 2008, 01:59:08 pm »
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?
Thank you,
Marion
(A recovering Windows programmer.)

Marion

  • Full Member
  • ***
  • Posts: 125
RE: Re: RE: Posible soluction
« Reply #11 on: February 06, 2008, 02:30:16 pm »
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.
Thank you,
Marion
(A recovering Windows programmer.)

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
RE: Re: RE: Posible soluction
« Reply #12 on: February 06, 2008, 02:55:09 pm »
Marion, try this FAQ. It mayb e necessary to undo all your previous changes which copied files into the wrong location.

Marion

  • Full Member
  • ***
  • Posts: 125
Re: RE: Re: RE: Posible soluction
« Reply #13 on: February 07, 2008, 03:07:46 am »
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.
Thank you,
Marion
(A recovering Windows programmer.)

greendayzero

  • New Member
  • *
  • Posts: 11
RE: Re: RE: Re: RE: Posible soluction
« Reply #14 on: February 07, 2008, 03:31:52 am »
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".

 

TinyPortal © 2005-2018