Recent

Author Topic: Newbie in too deep, Ubuntu, FPC and Lazarus.  (Read 10349 times)

MrJohn

  • New Member
  • *
  • Posts: 22
Newbie in too deep, Ubuntu, FPC and Lazarus.
« on: April 22, 2014, 06:03:40 am »
I have spent four days on this.. ::)  But I am starting from the very beginning. :-X

I am trying to install Free Pascal and Lazarus on a Pentium 4 machine with no other operating system installed.

Two days were spent trying to get to grips with Ubuntu 12.04.4 but it defeated me, it did install and it does run but I make many problems including such things as the terminal going into invisible (white on white?) mode. But I did get Lazarus installed and tried for a "Hello world" program which gave an error which I tried to capture with a screen snapshot but that failed by which time I forgot what the error was!

 So I put that aside and installed Ubuntu 8.04  i386 which I had a CD for and it installs OK, no problems.

Once again I downloaded Lazarus_1.0.14-0_i386.deb,  fpc-2.6.2-0_i386.deb and fpc-src_2.6.2-0_i386.deb.  This time I used the package installer that came with Ubuntu 8.04 to install them but when I got to installing Lazarus I got..

Dependency not satisfiable libgtk2.0-dev   can someone please explain what this error is and is it something I can fix?     

Is it too much to expect Free Pascal and Lazarus to run on that old Ubuntu?

Thanks

MrJohn in New Zealand

CaptBill

  • Sr. Member
  • ****
  • Posts: 435
Re: Newbie in too deep, Ubuntu, FPC and Lazarus.
« Reply #1 on: April 22, 2014, 06:43:41 am »
Hi MrJohn,
Welcome aboard. If you go to the "package intaller/manager", where you got Lazarus, and do a search for the "libgtk2-dev" package and install it. Simple as that. It needs the Gtk2 development package is all. It should have been downloaded as a dependency with the rest. I would report it as a bug.

MrJohn

  • New Member
  • *
  • Posts: 22
Re: Newbie in too deep, Ubuntu, FPC and Lazarus.
« Reply #2 on: April 22, 2014, 08:06:38 am »
Thanks CaptBill, I will be trying that as soon as I can!

MrJohn

  • New Member
  • *
  • Posts: 22
Re: Newbie in too deep, Ubuntu, FPC and Lazarus.
« Reply #3 on: April 22, 2014, 08:44:05 am »
Oh well!  I got that file but a lock symbol appears beside it. :'(

More study required..

MrJohn

  • New Member
  • *
  • Posts: 22
Re: Newbie in too deep, Ubuntu, FPC and Lazarus.
« Reply #4 on: April 22, 2014, 10:00:06 am »
Oh dear, the best part of five days spent on this futile exercise and I regret that I will be leaving Ubuntu/Free Pascal/ Lazarus aside until my blood pressure subsides... >:(

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Newbie in too deep, Ubuntu, FPC and Lazarus.
« Reply #5 on: April 22, 2014, 10:57:32 am »
Relax man, you're getting into two different worlds at one time, that of course could be troublesome. I suggest you learn Ubuntu first (and Linux in general) and get used to its environment (package management, permissions, file system hierarchy, etc). Only after that you can try installing Lazarus and play with it. One advice though, Ubuntu Software Center is somewhat problematic. I suggest using the more technical but working Synaptic Package Manager instead, or the command line version: apt-get.

MrJohn

  • New Member
  • *
  • Posts: 22
Re: Newbie in too deep, Ubuntu, FPC and Lazarus.
« Reply #6 on: April 22, 2014, 11:53:17 am »
Thanks, but I expect to be taking a bit of a break from this... >:D

Maybe in a day or so..

John

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: Newbie in too deep, Ubuntu, FPC and Lazarus.
« Reply #7 on: April 22, 2014, 12:07:48 pm »

Dependency not satisfiable libgtk2.0-dev   can someone please explain what this error is and is it something I can fix?     

Is it too much to expect Free Pascal and Lazarus to run on that old Ubuntu?

Thanks

MrJohn in New Zealand

Hi there. I had the same problem & this is how it was resolved

http://forum.lazarus.freepascal.org/index.php/topic,23942.msg143630.html#msg143630

Cheers,

JD
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

MrJohn

  • New Member
  • *
  • Posts: 22
Re: Newbie in too deep, Ubuntu, FPC and Lazarus.
« Reply #8 on: April 25, 2014, 06:45:28 am »
Another few days and Ubuntu 12.04.4, fpc 2.6.4, Lazarus 0.9.30.2 and Hello World 1.0.0.0 all running well!  I followed http://wiki.lazarus.freepascal.org/Install_on_Ubuntu

Thanks for the assistance! :)
« Last Edit: April 25, 2014, 06:55:10 am by MrJohn »

cdbc

  • Hero Member
  • *****
  • Posts: 1025
    • http://www.cdbc.dk
Re: Newbie in too deep, Ubuntu, FPC and Lazarus.
« Reply #9 on: April 25, 2014, 08:07:32 am »
Hi mate.
If you continue to get into trouble, i'd suggest you try PcLinuxOs operating system, preferably the LXDE version, as it is light on resources  :) We've got lazarus & Fpc in the repository via synaptic... It's a matter of "point and click install" Easy peasy  :D
Good luck my friend...
http://www.pclinuxos.com/
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

mdalacu

  • Full Member
  • ***
  • Posts: 233
    • dmSimpleApps
Re: Newbie in too deep, Ubuntu, FPC and Lazarus.
« Reply #10 on: April 25, 2014, 08:27:33 am »
I think that we have a wrong attitude about Ubuntu. Ubuntu (and derivates) is the biggest linux distribution, by far. So, Lazarus MUST work on Ubuntu first and then on the other distributions for it to gain traction. Unfortunately it does not happen and Ubuntu 14.04  has an old version in repos (1.0.14) and the debs provided on Lazarus site is not installing (dependency problems or bad packaging). I really hope that this situation will change soon. As an alternative you could install Code Typhoon 4.8 which is tested on Ubuntu 14.04.
« Last Edit: April 25, 2014, 08:42:41 am by mdalacu »

MrJohn

  • New Member
  • *
  • Posts: 22
Re: Newbie in too deep, Ubuntu, FPC and Lazarus.
« Reply #11 on: April 25, 2014, 09:19:15 am »
Thanks guys but I seem to have a system up and working now.  As I indicated I even managed a Hello World compile and run. :D

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: Newbie in too deep, Ubuntu, FPC and Lazarus.
« Reply #12 on: April 25, 2014, 10:08:08 am »
I think that we have a wrong attitude about Ubuntu. Ubuntu (and derivates) is the biggest linux distribution, by far. So, Lazarus MUST work on Ubuntu first and then on the other distributions for it to gain traction. ......

I agree with you on this point. Such a move will cover a large part of the Debian/Ubuntu like distros out there right now. I haven't updated my Lazarus version on Linux because I'm waiting for Linux Mint 17 LTS to be released in May. In any case I often download the 3 debs (Lazarus, FPC & FPC sources) & do the installation "manually".
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: Newbie in too deep, Ubuntu, FPC and Lazarus.
« Reply #13 on: April 25, 2014, 11:25:18 am »
So, Lazarus MUST work on Ubuntu first

It DOES work. It is just not packaged.

Quote
I think that we have a wrong attitude about Ubuntu. Ubuntu (and derivates) is the biggest linux distribution, by far.

Then why is it so hard to get packagers for it?
 

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Newbie in too deep, Ubuntu, FPC and Lazarus.
« Reply #14 on: April 25, 2014, 12:12:04 pm »
Quote
I think that we have a wrong attitude about Ubuntu. Ubuntu (and derivates) is the biggest linux distribution, by far. So, Lazarus MUST work on Ubuntu first and then on the other distributions for it to gain traction. Unfortunately it does not happen and Ubuntu 14.04  has an old version in repos (1.0.14) and the debs provided on Lazarus site is not installing (dependency problems or bad packaging).
I don't think that MUST is appropriate. But since I've moved to Manjaro (which is ArchBased), I always have up to date stable Lazarus. Perhaps Manjaro doesn't have complicated policy as Debian implements.
The debs are installing, IF you understand the dependency concept of debian packages. We don't provide standalone debs, simply because shared library duplication is not in the spirit of package management. The required dependencies are all in the repo.

 

TinyPortal © 2005-2018