Lazarus

Installation => Linux => Topic started by: tintinux on February 17, 2011, 05:24:39 pm

Title: How to install FPC 2.4.2 on Ubuntu ?
Post by: tintinux on February 17, 2011, 05:24:39 pm
Hi

I'd like to install the latest stable release of FPC and, following the wiki links, I download :

https://sourceforge.net/projects/freepascal/files/Linux/2.4.2/deb/fpc_2.4.2-0_all.deb/download (https://sourceforge.net/projects/freepascal/files/Linux/2.4.2/deb/fpc_2.4.2-0_all.deb/download)

But fp-units-math dependance is not satisfied.

If I tried then to install the package fp-units-math.deb from the same directory, but another dependance is not satisfied...

In short, is there a meta package to install everything requested ? Or some information about the right order for installing different packages ?

Thanks for help !

Title: Re: How to install FPC 2.4.2 on Ubuntu ?
Post by: Blaazen on February 17, 2011, 06:00:18 pm
I don't know what exactly fpc_2.4.2-0_all.deb is, but it has only- 12.3 kB -> it is not what you need.  :)

You need:

fpc & fp-units-rtl & fp-source

All three are in Ubuntu repositories (version 2-4-2).

Title: Re: How to install FPC 2.4.2 on Ubuntu ?
Post by: cpalx on February 17, 2011, 07:08:52 pm
did you try?:

dpkg -i *.deb
Title: Re: How to install FPC 2.4.2 on Ubuntu ?
Post by: tintinux on February 17, 2011, 07:14:59 pm
Quote
You need:
fpc & fp-units-rtl & fp-source

Thanks for your reply.

I'm not alone to be stuck : fpc_2.4.2-0_all.deb is the most frequently downloaded from sourceforge, and is labelled as "the latest version"... (of what ?)

So, I can find fp-units-rtl & fp-source, but where do you find fpc ?

Regards,
Tintinux



Title: Re: How to install FPC 2.4.2 on Ubuntu ?
Post by: tintinux on February 17, 2011, 07:18:20 pm
Code: [Select]
did you try?:
dpkg -i *.deb

No, I never saw such an advice. But why not...

I suppose that before I must download some .deb, but which ones ?

Regards
Tintinux
Title: Re: How to install FPC 2.4.2 on Ubuntu ?
Post by: Blaazen on February 17, 2011, 07:27:06 pm
There is:

fp-compiler_2.4.2-0_i386.deb

 on link you mentioned (the very last).
Title: Re: How to install FPC 2.4.2 on Ubuntu ?
Post by: cpalx on February 18, 2011, 04:28:40 am
in this pages

http://www.hu.freepascal.org/lazarus/

you have :

fpc debs

downloaded, UNTAR  and then

dpkg -i *deb

Title: Re: How to install FPC 2.4.2 on Ubuntu ?
Post by: marcov on February 18, 2011, 09:33:18 am
I always use the .tar installer on debian if I can't use the version in the normal deb repositories (which is usually very old)

One download, one extraction, one script to run.
Title: Re: How to install FPC 2.4.2 on Ubuntu ?
Post by: tintinux on February 19, 2011, 08:30:13 am
Quote from: cpaix
in this pages
http://www.hu.freepascal.org/lazarus/
This is definitely not what I'm looking for.  I'm starting to use Lazarus for shared and professional development, and I can't play with untested snapshots.

Quote from: blaazen
There is:
fp-compiler_2.4.2-0_i386.deb
 on link you mentioned (the very last).
Quote from: marcov
I always use the .tar installer on debian
Ok, I'll try them as soon as possible. This will require time and a new computer because I can't risk to spend time without a working compiler.

If you want FPC and Lazarus used by more peole, it is very important to provide installation procedure, easy to find and to understand. A .deb is the best one for debian based systems. Isn't it possible to correct the "usually very old" package ?

Regards,
Tintinux
Title: Re: How to install FPC 2.4.2 on Ubuntu ?
Post by: marcov on February 19, 2011, 11:26:16 am
Quote from: marcov
I always use the .tar installer on debian
Ok, I'll try them as soon as possible. This will require time and a new computer because I can't risk to spend time without a working compiler.

If you want FPC and Lazarus used by more peole, it is very important to provide installation procedure, easy to find and to understand. A .deb is the best one for debian based systems. Isn't it possible to correct the "usually very old" package ?
[/quote]

Free Pascal provides own debs and all the metadata needed to build them. The delay is on the Ubuntu/Debian side, and their extremely long freezes.
Title: Re: How to install FPC 2.4.2 on Ubuntu ?
Post by: tintinux on March 02, 2011, 08:31:57 am
Quote from: Marcov
Free Pascal provides own debs
Yes, but it is very difficult to understand which ones are requested (and working) for an OS.

Thus, it is obvious that Ubuntu packagers will need a long time to select and include the right packages in their repository. They are quicker when it's easier.

FPC and Lazarus would be much more popular if they were easier to install. IMHO this is the most important issue now.

Regards
Title: Re: How to install FPC 2.4.2 on Ubuntu ?
Post by: tintinux on March 03, 2011, 06:32:57 pm
Quote from: cpaix
in this pages
http://www.hu.freepascal.org/lazarus/
you have :
fpc debs
downloaded, UNTAR  and then
dpkg -i *deb

Hi !

I said at the beginning of my post : I'd like to install the latest stable release of FPC.

In the link, it is a snapshot untested release.

I must find the stable release but however, I tried on a new computer.

A lot of broken dependances are shown.
Sorry the computer is speaking french. I don't know if it is possible to get english messages. I can translate if needed.

Sélection du paquet fpc précédemment désélectionné.
(Lecture de la base de données... 225502 fichiers et répertoires déjà installés.)
Dépaquetage de fpc (à partir de fpc_2.4.2-0_all.deb) ...
Sélection du paquet fp-compiler précédemment désélectionné.
Dépaquetage de fp-compiler (à partir de fp-compiler_2.4.2-0_i386.deb) ...
Sélection du paquet fpc-source précédemment désélectionné.
Dépaquetage de fpc-source (à partir de fpc-source_2.4.2-0_all.deb) ...
Sélection du paquet fp-docs précédemment désélectionné.
Dépaquetage de fp-docs (à partir de fp-docs_2.4.2-0_all.deb) ...
Sélection du paquet fp-ide précédemment désélectionné.
Dépaquetage de fp-ide (à partir de fp-ide_2.4.2-0_i386.deb) ...
Sélection du paquet fp-units-base précédemment désélectionné.
Dépaquetage de fp-units-base (à partir de fp-units-base_2.4.2-0_i386.deb) ...
Sélection du paquet fp-units-db précédemment désélectionné.
Dépaquetage de fp-units-db (à partir de fp-units-db_2.4.2-0_i386.deb) ...
Sélection du paquet fp-units-fcl précédemment désélectionné.
Dépaquetage de fp-units-fcl (à partir de fp-units-fcl_2.4.2-0_i386.deb) ...
Sélection du paquet fp-units-fv précédemment désélectionné.
Dépaquetage de fp-units-fv (à partir de fp-units-fv_2.4.2-0_i386.deb) ...
Sélection du paquet fp-units-gfx précédemment désélectionné.
Dépaquetage de fp-units-gfx (à partir de fp-units-gfx_2.4.2-0_i386.deb) ...
Sélection du paquet fp-units-gnome1 précédemment désélectionné.
Dépaquetage de fp-units-gnome1 (à partir de fp-units-gnome1_2.4.2-0_i386.deb) ...
Sélection du paquet fp-units-gtk2 précédemment désélectionné.
Dépaquetage de fp-units-gtk2 (à partir de fp-units-gtk2_2.4.2-0_i386.deb) ...
Sélection du paquet fp-units-gtk précédemment désélectionné.
Dépaquetage de fp-units-gtk (à partir de fp-units-gtk_2.4.2-0_i386.deb) ...
Sélection du paquet fp-units-i386 précédemment désélectionné.
Dépaquetage de fp-units-i386 (à partir de fp-units-i386_2.4.2-0_i386.deb) ...
Sélection du paquet fp-units-math précédemment désélectionné.
Dépaquetage de fp-units-math (à partir de fp-units-math_2.4.2-0_i386.deb) ...
Sélection du paquet fp-units-misc précédemment désélectionné.
Dépaquetage de fp-units-misc (à partir de fp-units-misc_2.4.2-0_i386.deb) ...
Sélection du paquet fp-units-multimedia précédemment désélectionné.
Dépaquetage de fp-units-multimedia (à partir de fp-units-multimedia_2.4.2-0_i386.deb) ...
Sélection du paquet fp-units-net précédemment désélectionné.
Dépaquetage de fp-units-net (à partir de fp-units-net_2.4.2-0_i386.deb) ...
Sélection du paquet fp-units-rtl précédemment désélectionné.
Dépaquetage de fp-units-rtl (à partir de fp-units-rtl_2.4.2-0_i386.deb) ...
Sélection du paquet fp-utils précédemment désélectionné.
Dépaquetage de fp-utils (à partir de fp-utils_2.4.2-0_i386.deb) ...
Paramétrage de fpc-source (2.4.2-0) ...
Paramétrage de fp-docs (2.4.2-0) ...
dpkg : des problèmes de dépendances empêchent la configuration de fp-units-gtk :
 fp-units-gtk dépend de libgtk2.0-dev ; cependant :
  Le paquet libgtk2.0-dev n'est pas installé.
dpkg : erreur de traitement de fp-units-gtk (--install) :
 problèmes de dépendances - laissé non configuré
dpkg : des problèmes de dépendances empêchent la configuration de fp-units-multimedia :
 fp-units-multimedia dépend de libogg-dev ; cependant :
  Le paquet libogg-dev n'est pas installé.
 fp-units-multimedia dépend de libvorbis-dev ; cependant :
  Le paquet libvorbis-dev n'est pas installé.
 fp-units-multimedia dépend de a52dec-dev ; cependant :
  Le paquet a52dec-dev n'est pas installé.
 fp-units-multimedia dépend de libdts-dev ; cependant :
  Le paquet libdts-dev n'est pas installé.
 fp-units-multimedia dépend de libmad0-dev ; cependant :
  Le paquet libmad0-dev n'est pas installé.
 fp-units-multimedia dépend de libmodplug-dev ; cependant :
  Le paquet libmodplug-dev n'est pas installé.
dpkg : erreur de traitement de fp-units-multimedia (--install) :
 problèmes de dépendances - laissé non configuré
Paramétrage de fp-units-rtl (2.4.2-0) ...
Paramétrage de fp-utils (2.4.2-0) ...
dpkg : des problèmes de dépendances empêchent la configuration de fpc :
 fpc dépend de fp-units-gtk ; cependant :
 Le paquet fp-units-gtk n'est pas encore configuré.
 fpc dépend de fp-units-multimedia ; cependant :
 Le paquet fp-units-multimedia n'est pas encore configuré.
dpkg : erreur de traitement de fpc (--install) :
 problèmes de dépendances - laissé non configuré
Paramétrage de fp-compiler (2.4.2-0) ...
update-alternatives: utilisation de « /usr/bin/fpc » pour fournir « /usr/bin/pc » (pc) dans mode automatique.

Paramétrage de fp-ide (2.4.2-0) ...
Paramétrage de fp-units-base (2.4.2-0) ...
Paramétrage de fp-units-db (2.4.2-0) ...
Paramétrage de fp-units-fcl (2.4.2-0) ...
Paramétrage de fp-units-fv (2.4.2-0) ...
Paramétrage de fp-units-gfx (2.4.2-0) ...
dpkg : des problèmes de dépendances empêchent la configuration de fp-units-gnome1 :
 fp-units-gnome1 dépend de fp-units-gtk (= 2.4.2-0) ; cependant :
 Le paquet fp-units-gtk n'est pas encore configuré.
dpkg : erreur de traitement de fp-units-gnome1 (--install) :
 problèmes de dépendances - laissé non configuré
Paramétrage de fp-units-gtk2 (2.4.2-0) ...
Paramétrage de fp-units-i386 (2.4.2-0) ...
Paramétrage de fp-units-math (2.4.2-0) ...
Paramétrage de fp-units-misc (2.4.2-0) ...
Paramétrage de fp-units-net (2.4.2-0) ...
Traitement des actions différées (« triggers ») pour « man-db »...
Traitement des actions différées (« triggers ») pour « doc-base »...
Processing 2 added doc-base file(s)...
Registering documents with scrollkeeper...
Des erreurs ont été rencontrées pendant l'exécution :
 fp-units-gtk
 fp-units-multimedia
 fpc
 fp-units-gnome1


Best regards,
Tintinux





Title: Re: How to install FPC 2.4.2 on Ubuntu ?
Post by: fabienwang on March 03, 2011, 06:45:15 pm
Tintinux, try installing the following package:
libgtk2.0-dev

sudo apt-get install libgtk2.0-dev
Title: Re: How to install FPC 2.4.2 on Ubuntu ?
Post by: tintinux on March 03, 2011, 07:44:50 pm
Thanks Fabien, it was installed without error like this.

Doesn't this simply mean that a dependance to libgtk2.0-dev is missing in fp-units-gtk2_2.4.2-0_i386.deb or another package ?

Best regards,
Martin 

Title: Re: How to install FPC 2.4.2 on Ubuntu ?
Post by: fabienwang on March 03, 2011, 08:32:03 pm
i'm not sure about the packages, but as long as it tells you what dependency is not satisfied, you are able to install it :)

Regards,
Fabien
Title: Re: How to install FPC 2.4.2 on Ubuntu ?
Post by: mdalacu on March 29, 2011, 07:04:04 am
The Ubuntu way is to install the ppa. On 10.10 and the with Lazarus 0.9.30 it does not work.  :( Please help. Did anyone succeed in upgrading Lazarus from 9.28 stable?
Title: Re: How to install FPC 2.4.2 on Ubuntu ?
Post by: Blaazen on March 29, 2011, 01:59:57 pm
I use SVN versions for both fpc and Lazarus. I have fpc installed in /usr ... but I have Lazarus only compiled in /home ... (I don't install it). I also tried fpc 2.4.2. Everything worked on Kubuntu.
So how exactly you try upgrade?
Title: Re: How to install FPC 2.4.2 on Ubuntu ?
Post by: mdalacu on March 30, 2011, 09:59:21 am
I try to upgrade between Ubuntu stable versions 0.9.20 - 0.9.30, using ppa from wiki.
Title: Re: How to install FPC 2.4.2 on Ubuntu ?
Post by: DanArg on April 03, 2011, 03:46:30 am
Hi mdalacu.

A few hours ago I have install lazarus 0.9.30 on Ubuntu 10.04.2 64 bits with just a temporal problem.
First I have uninstall lazarus 0.9.28 from the software center (not using the synaptic package manager).
Then follow the instructions to install from repository stated at
http://wiki.lazarus.freepascal.org/Installing_Lazarus/es#Via_Repositorios_para_instalar_en_Ubuntu
(spanish page, anyway is quite straightforward), ie:

End of the installation.
Like I mention here (http://www.lazarus.freepascal.org/index.php/topic,12615.msg65372.html#msg65372), the first run of lazarus several "package not found" windows appears, but the problem solved itself after save and run a very basic project, no problem with the application. Then I have close and reopen Lazarus, no more error windows.
Good luck!!!!
Title: Re: How to install FPC 2.4.2 on Ubuntu ?
Post by: michaelthuma on April 03, 2011, 10:39:38 am
Uninstall the old packages, download the new ones from the official downloads ...

I personally unpacked the packages for fpc in a seperate directry ...

First installed FPC and then Lazarus ...

sudo dpkg --force-overwrite --install *.deb

As suggested in the 0.9.30 Release announcement ... Worked...
Title: Re: How to install FPC 2.4.2 on Ubuntu ?
Post by: Gizmo on May 22, 2011, 12:16:08 am
Just for the benefit of other users who may find this thread...

I took the plunge today and updated FPC and Lazarus to 0.9.30 and 2.4.2. As I use Ubuntu 10.04, 0.9.28 and 2.4.0 are the main packaged versions. I attempted the upgrade as stated above and it caused conflicts that I didn't really understand but basically it seemed to try and run both versions alongside eachother and I got various error messages.

So I used the Synaptic Package Manager to Completely Remove all installed packages for Lazarus and FPC (I just entered 'lazarus' in the search field and they were all listed for both things). I then repeated the steps stated above, and it worked a treat. So I'm not sure what the initial conflicts were, but I am all up to date now.

I must say there is VERY noticeable difference between 0.9.28 and 0.9.30! I am really pleased I've upgraded. The forms look so much sharper and brighther, and the code looks much sharper too. I'm not sure exactly what has been changed but it looks great. I even notice StringGrids in the Object Inspector have their elements included! Very neat.

Ted
TinyPortal © 2005-2018