Recent

Author Topic: Installing Lazarus 1.8.4 on Ubuntu 18.04  (Read 72916 times)

dbannon

  • Hero Member
  • *****
  • Posts: 2778
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Installing Lazarus 1.8.4 on Ubuntu 18.04
« Reply #75 on: February 04, 2019, 07:12:52 am »
Yep, I just say "Package Manager" - do you think I need be specific ? I ask because I personally dont use USC, I prefer Synaptic, its always the very first thing I install.

Every distro has its own "package manager" - I'd like to be general where we can but not at the risk of clarity.....

Yes, I think we should make it clearer that the distro packages are always suspect from a currency view.

Your third point is one we need to drill down on. My tests show using fpc form Ubuntu is fine with both SourceForge and built from src Lazarus. Have you seen otherwise ?

Or do you mean using (eg) Ubuntu Lazarus with SourceForge FPC ?  I'd consider that very brave, would not advise that at all.

And maybe its why my favourite model, building Lazuras from source  works well ? Then, apt does not know about Lazarus at all, so no repository conflicts possible ?

Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Handoko

  • Hero Member
  • *****
  • Posts: 5122
  • My goal: build my own game engine using Lazarus
Re: Installing Lazarus 1.8.4 on Ubuntu 18.04
« Reply #76 on: February 04, 2019, 07:23:41 am »
I checked the wiki page and I didn't see you mentioned Ubuntu Software Center.

My point is:
Newbies (Ubuntu users) who don't know much about using Linux should try the easiest first.
« Last Edit: February 04, 2019, 07:28:59 am by Handoko »

dbannon

  • Hero Member
  • *****
  • Posts: 2778
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Installing Lazarus 1.8.4 on Ubuntu 18.04
« Reply #77 on: February 05, 2019, 11:42:54 am »
OK, Handoko, I have put in more about GUI package managers.  And test script for fpc and some example command lines for  redhat sort of people. I've not tested any of this on a redhat system, any Centos, Fedora or RedHat users out there ??

http://wiki.freepascal.org/Installing_Lazarus_on_Linux

Davo
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

dbannon

  • Hero Member
  • *****
  • Posts: 2778
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Installing Lazarus 1.8.4 on Ubuntu 18.04
« Reply #78 on: February 06, 2019, 11:00:34 am »
Hmm, so, timing !
I have rewritten that HowTo given todays new release. The change of name of the fpc in SourceForge, means mix and match distro and sourceforge is no longer possible on Debian based things. And, maybe is not a good idea on eg RPM based system ?

Good outcome is the HowTo is now heaps simpler and shorter.

What is not dealt with is dist upgrades ??

davo 
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

VTwin

  • Hero Member
  • *****
  • Posts: 1215
  • Former Turbo Pascal 3 user
Re: Installing Lazarus 1.8.4 on Ubuntu 18.04
« Reply #79 on: February 22, 2019, 03:10:31 pm »
Thanks for the work on wiki davo. Just a note on my recent install on Ubuntu in case it is helpful to someone. I downloaded:

fpc-laz_3.0.4-1_amd64.deb
fpc-src_3.0.4-2_amd64.deb
lazarus-project_2.0.0-0_amd64.deb

and put them in a folder. Then navigated to the folder in the Terminal (type "cd " and then you can drag the folder to the terminal to insert the full path). On Ubuntu, I need to install libgtk2.0-dev to solve dependencies. The following did the trick for me:

# fix any dependency errors
sudo apt-get -f install

# install libgtk2.0-dev & lazarus
sudo apt-get install libgtk2.0-dev
sudo dpkg -i *.deb

Cheers,
VTwin
“Talk is cheap. Show me the code.” -Linus Torvalds

Free Pascal Compiler 3.2.2
macOS 12.1: Lazarus 2.2.6 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 2.2.6 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.2.6 (64 bit on VBox)

dbannon

  • Hero Member
  • *****
  • Posts: 2778
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Installing Lazarus 1.8.4 on Ubuntu 18.04
« Reply #80 on: February 26, 2019, 02:14:25 am »
Thanks VTwin,
Quote
and then you can drag the folder to the terminal to insert the full path).

?? Over 30 years of using Linux and I did not know that ! Thanks

Quote
I need to install libgtk2.0-dev to solve dependencies.

Now, I want to be really sure here. You did not use gdebi to install the Lazarus/FPC packages, instead you used dpkg ?    (gdebi would, I am pretty sure, have resolved the dependencies automatically)

but dpkg did tell you there were unresolved dependencies and specifically named libgtk2+   ?

I am surprised there was only one dependency missing. IIRC there used to be a long list of build tools needed by fpc.

Anyway, you confirm my thought that much of the problems people have had in the past installing from packages on Linux was due to the packages not knowing their own dependencies, thats now fixed. And thats a good thing !

Davo
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Zoran

  • Hero Member
  • *****
  • Posts: 1824
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Installing Lazarus 1.8.4 on Ubuntu 18.04
« Reply #81 on: February 26, 2019, 10:53:18 am »
Thanks VTwin,
Quote
and then you can drag the folder to the terminal to insert the full path).

?? Over 30 years of using Linux and I did not know that ! Thanks


Neither did I know that, thanks for a useful tip!

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: Installing Lazarus 1.8.4 on Ubuntu 18.04
« Reply #82 on: February 26, 2019, 11:33:03 am »
Quote
and then you can drag the folder to the terminal to insert the full path).

?? Over 30 years of using Linux and I did not know that ! Thanks

In case you didn't know either, there's no need to drag (if you prefer kbd operation): just "copy" the folder/file with Ctrl+C and "paste" it to the terminal with Shift+Ctrl+V

Works even with multiple folder/file names :)
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

Handoko

  • Hero Member
  • *****
  • Posts: 5122
  • My goal: build my own game engine using Lazarus
Re: Installing Lazarus 1.8.4 on Ubuntu 18.04
« Reply #83 on: February 26, 2019, 11:42:00 am »
Then navigated to the folder in the Terminal (type "cd " and then you can drag the folder to the terminal to insert the full path).

I never knew it. But I usually use right clicking on the folder and then select "Open in Terminal".

guest63388

  • Guest
Re: Installing Lazarus 1.8.4 on Ubuntu 18.04
« Reply #84 on: September 04, 2019, 11:38:53 pm »
How to install Lazarus Free Pascal on Linux Ubuntu, Mint and Lite. Problems and Solutions.

This video: https://www.youtube.com/watch?v=_C0oji_zQ-c

Installing Lazarus on Linux Ubuntu 18.04 LTS.
Installing Lazarus on Linux Mint 19.01.
Installing Lazarus on Linux Lite 18.04.

Fetha Tutoriais:
https://www.youtube.com/channel/UC00iLRuOPnsKLXHCmOJWHDQ

440bx

  • Hero Member
  • *****
  • Posts: 3921
Re: Installing Lazarus 1.8.4 on Ubuntu 18.04
« Reply #85 on: September 05, 2019, 12:34:08 am »
?? Over 30 years of using Linux and I did not know that ! Thanks
It cannot be over 30 years.  In 1989, Linux was about 2 years away from making its first appearance on usenet.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: Installing Lazarus 1.8.4 on Ubuntu 18.04
« Reply #86 on: September 05, 2019, 01:04:30 am »
First linux version 0.01 was autum 1991.
The great debate with Andrew S. Tanenbaum was 1992.
Christmas 1992 version 0.99 was released.

The pre 1.0 versions were really an adventure.



dbannon

  • Hero Member
  • *****
  • Posts: 2778
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Installing Lazarus 1.8.4 on Ubuntu 18.04
« Reply #87 on: September 05, 2019, 02:06:56 am »
?? Over 30 years of using Linux and I did not know that ! Thanks
It cannot be over 30 years.  In 1989, Linux was about 2 years away from making its first appearance on usenet.
Hmm, sorry, careless wording. I should have said "unix" or  "*nix". While I started using computers with VMX, I soon progressed to Ultrix, OSF and then True64 on the Dec/Compaq Supercomputers.  I used something called Coherent, maybe 1985 or 1986 - that was the first Unix like OS I used running on PC hardware. Maybe we could consider that as one of many fore runners to Linux ?

Davo
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

440bx

  • Hero Member
  • *****
  • Posts: 3921
Re: Installing Lazarus 1.8.4 on Ubuntu 18.04
« Reply #88 on: September 05, 2019, 02:29:53 am »
Hmm, sorry, careless wording.

Davo
No problem.  I'm often guilty of, let's say, casual wording myself.  I only pointed it out to ensure no one would be left with the mistaken impression that Linux was actually that old.  If the word "over" had not been there, I would not have mentioned it.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

munair

  • Hero Member
  • *****
  • Posts: 798
  • compiler developer @SharpBASIC
    • SharpBASIC
Re: Installing Lazarus 1.8.4 on Ubuntu 18.04
« Reply #89 on: September 04, 2021, 04:05:54 pm »
Hmm, sorry, careless wording.

Davo
I only pointed it out to ensure no one would be left with the mistaken impression that Linux was actually that old.

Over 30 years would legitimately bring you to 1990 or earlier. Given the first release of Linux in 1991, it actually is almost that old. This is apart from the fact that the first distributions came out in 1992, which weren't even useful for a production desktop at the time. Point being, 30 years don't really give a mistaken impression about the age of Linux. It does give a mistaken impression about the GNU/Linux operating systems or distro's that could actually be used in production environments. Even SuSE version 6.4 in 1998 was a pain to install because it required manual selection of dependencies against 'unsatisfied' error messages (don't remind me).
keep it simple

 

TinyPortal © 2005-2018