Lazarus
Installation => Linux => Topic started by: ZL on November 03, 2009, 01:57:37 pm
-
Hello all,
I have just very basic knowledge and experience with Linux and I want to try to compile few FPC/Lazarus projects for Linux.
What distributions are recommended to be not too difficult to use and compatible with FPC/Lazarus?
-
I have tried different distributions in the years, and I can tell you PCLinuxOS has been the one I liked the most. Its easy to use and nice. To install Lazarus you have to solve some small dependencies, but very few.
-
Hi,
I use Kubuntu 9.04 64bit and Qt widgetset and also works fine.
B.
-
OpenSUSE's 1-Click Installation is easy for installing lazarus:
http://software.opensuse.org/search?baseproject=openSUSE%3A11.1&p=1&q=lazarus
-
Lazarus/FPC installs easily from repositories on Linux Ubuntu (8.04-9.04-9.10) and Suse (SLED 10-11).
-
I consider SuSE a huge distribution, good for servers, but too much for a normal user.
PCLinusOS, ubuntu, are small and simpler,
Consider,
PCLOS or ubuntu = 1 CD
SuSE = 5 CD or 1 DVD
---
Choosing a distribution is not that easy, you have to ask your self what do you want?
A distribution:
- small in size, to fit on a USB stick (choose Puppy Linux)
- small in RAM usage, (choose Puppy Linux, or a distribution that uses XFCE, LXDE, JWM,...)
- a distribution with everything included (choose SuSE)
- a very easy distribution (choose Ubuntu, PCLinuxOS)
- a Windows like distribution (choose something with KDE)
- a cool graphic distribution (choose something that has Compiz Fusion on it)
...
...
In the Linux world it's like playing Lego. You have different "blocks" (KDE, GNOME, XFCE,...), different architectures, different bootloaders (GRUB, LILO), distributions are just different ways to assemblate those components. I suggest you to try different distribution and finally you will find what you need.
I have tryed different distro's always thinking this is the best, but then after 6 months my needs changed and i switched.
Everybody has different tastes, different needs, my suggestion try one of those big distro's to begin using Lazarus on Linux, later on when you are more experienced, you will be able to choose.
-
I consider SuSE a huge distribution, good for servers, but too much for a normal user.
PCLinusOS, ubuntu, are small and simpler,
Consider,
PCLOS or ubuntu = 1 CD
SuSE = 5 CD or 1 DVD
For server are rather CentOS or so. OpenSUSE is definitely for desktops. Second thing is that if you are installing it on machine with internet connection then you don't have to download whole DVD, just mini cd and install over net (download only what you need). Third thing is that you always can download LiveCD which is 700 MB.
-
Unlike Ubuntu/Kubuntu OpenSuSE installation contains everything KDE 3/4, Gnome, etc.
But you don't have to install everything.
-
Thank you all! I'll read a little about each distribution you have mentioned here and then I'll try to choose :)
-
Hello!
I think, you should try Zenwalk Linux too. It is a small, lightweight, slackware based distribution. Perhaps it is not as userfriendly as Ubuntu or Suse but I think it would be a good choice. You can find Free Pascal in its repos and you should "install" lazaraus from source (it works fine for me;)).
PS.: Sorry for my english, I use this language very rarely.
-
Hello.
I've read this forum with great interest. I too struggle to install Lazarus on a Linux distro. I'm a newbie to Linux, but pretty well knowleadgeable in Windows, but I soon discovered that everything I learned to do in Windows has no value in Linux whatsoever.
So, I tried Ubuntu (9.04 -> 9.10), Open SUSE 11.1 (DVD!), Fedora 12 and Debian and then installed Lazarus. Or better: I tried and got lost in dependencies, errors, missing Libraries and endlessly slow systems (OpenSUSE), used rpm and deb, learned about apt and other commands.
But Lazarus never worked. Only in Fedora I got it installed, but then lX11 was missing, so stuck again.
Can this forum help me to overcome these 'minor dependencies'? I'll start to install PCLinuxOS as a good suggestion from BPSoftware, but how to overcome the 'few dependencies'? I use a spare Athlon XP system (not 64bit).
Thanks :P
-
I have just started Lazarus on Linux (Lazarus in general) and I have tried Ubuntu and several other distributions, spent several hours on finding useable info on how to install Lazarus.
Ubuntu did not work for me. Took hours, downloading both binaries and sources and trying to get it all to work. Trouble is: when used to Windows, everything including folders and rights are very new.
Finally I downloaded OpenSuse 11.3 and trough the one click installer on opensuse.org I managed to install Lazarus, only after trying all of the installer packages untill one worked. The others just tried to screw up the Linux installation.
For trying Lazarus as a newbie I would recommend Opensuse. You can always switch to a different distro once you get some first impressions. I got it to work. Complete newbie.
The only thing left that I run into is setting read/write access on folders used for Lazarus projects. I can't imagine that there is no way to set those rights on my home/user/documents folder and have those rights on files and folders below.
For people coming from Delphi on Windows there is one major things (speaking from 10 years as developer in Delphi) left. One is the way Lazarus uses package folders or paths in a project. I still don't understand what newbie who never installed a package in Delphi decided for this approach.
-
Finally I downloaded OpenSuse 11.3 and trough the one click installer on opensuse.org I managed to install Lazarus, only after trying all of the installer packages untill one worked. The others just tried to screw up the Linux installation.
For trying Lazarus as a newbie I would recommend Opensuse. You can always switch to a different distro once you get some first impressions. I got it to work. Complete newbie.
In case of openSUSE it is better to wait a few days since in a few days there will be openSUSE 11.2 released. Also rpm packages from http://sourceforge.net/project/showfiles.php?group_id=89339 should work with it.
-
@Sybren13
After installing PCLinuxOS, go to the Lazarus download page and download all the .rpm packages for example into:
/home/sybren/Downloads
Open Synaptic (one of the icons in the taskbarm the red/black icon)
I am now not on Linux, but you should look for something called like this\
libgtk-devel
pixbuf
Install them
open a Terminal (something like cmd in the windows world), there write:
su
Then enter your password
Write (remember Linux is case sensitive):
cd /home/sybren/Downloads
rpm -Uvh fpc-src-2.2.4-0.i386.rpm
rpm -Uvh fpc-2.2.4-0.i386.rpm
rpm -Uvh fpc_crosswin32-2.2.4-091006.i386.rpm
rpm -Uvh lazarus-0.9.28-0.i386.rpm
Lazarus can now be found in the start menu and should be working, I may have forgotten something, in case you have problems let me know.
These instructions apply to Lazarus 0.9.28
Version 0.9.28.2, gave me some problems and I didn't had the time to try to fix it.
-
Unlike Ubuntu/Kubuntu OpenSuSE installation contains everything KDE 3/4, Gnome, etc.
But you don't have to install everything.
How do you mean "Unlike Ubuntu"... Ubuntu contains everything but the kitchen sink :D
And it's easy to install lazarus, just add the lazarus repository and install it and its dependencies from Synaptic.
-
Unlike Ubuntu/Kubuntu OpenSuSE installation contains everything KDE 3/4, Gnome, etc.
But you don't have to install everything.
How do you mean "Unlike Ubuntu"... Ubuntu contains everything but the kitchen sink :D
And it's easy to install lazarus, just add the lazarus repository and install it and its dependencies from Synaptic.
I think the meant that when you download openSUSE and you try GNOME, you don't like it, you don't have to download anything else to try KDE since both are on one DVD.
-
I think the meant that when you download openSUSE and you try GNOME, you don't like it, you don't have to download anything else to try KDE since both are on one DVD.
Ah that, yes I suppose it could be inconvenient, and it used to bug me too before, but now I usually install mostly from the online repositories and stopped worrying about that.
Before, when I didn't have flat rate Internet access, I liked Debian with its DVD's much more ;) (I have been Debian user for a long time, I use Ubuntu on my laptops, for the last couple of years).
-
I think the meant that when you download openSUSE and you try GNOME, you don't like it, you don't have to download anything else to try KDE since both are on one DVD.
Ah that, yes I suppose it could be inconvenient, and it used to bug me too before, but now I usually install mostly from the online repositories and stopped worrying about that.
Before, when I didn't have flat rate Internet access, I liked Debian with its DVD's much more ;) (I have been Debian user for a long time, I use Ubuntu on my laptops, for the last couple of years).
Well I used Debian before but didn't like that much how this distro was developed so I changed it to openSUSE. When I installed 10.2 it sucked pretty much (more less fresh after making it open). Buggy, slow and too much Windows influence in bad way. Fortunately there has been significant progress in last few years. Actually I would say that both Ubuntu and openSUSE right now may be the best solutions for newcomers.
-
Finally Lazarus works on Ubunto 9.04!
Good forum, good hints and tips.
Look what I've found:
http://wiki.lazarus.freepascal.org/Getting_Lazarus#Getting_Lazarus_from_our_Ubuntu_repository
and then read the 'short version'.
I've planned for the PCLinuxOS solution, but I liked Ubuntu so much (fast), I'd decided give it last try. And simply making the downloading/installing script and then typing the two lines in the Terminal did it all. Automatically.
Thank you all, ;D
Sybren13
-
Hi Yall...
For the last 7 years or so I've been using FreeBSD on servers and Red Hat, later Fedora on my desktops.
Fedora have gotten a lot better the last few years, but still I don't believe it to be a 'beginners distro'.
Fedora is a very good distro, no doubt about that, but you have to know what you're doing, to make it all play nice together.
This year however, I have tried 'TexStar's PcLinuxOS 2009.1&2 and the MiniMe flavour 2009.3...
F*ck me! They are GOOD, easy to setup, use/work and play with. Everything works without hazzle and tinkering / fiddleing, leaving me time to play with you guys ;D
Easy Lazarus quickly:
1) Install pclos minime 2009.3 { liveCD, weighs in at 298 Mb }
2) In Synaptic, install: Lazarus, it will resolve libgtk-devel, pixbuf for you
3) Install a musicplayer, and turn on your coffee-maker.
4) Start lazarus....
note: It is not the latest and greatest lazarus, but for a 1.st try 0.9.24 will do...
Just my opinion, written on MiniMe 2009.3
Regards Benny
-
Well I used Debian before but didn't like that much how this distro was developed so I changed it to openSUSE. When I installed 10.2 it sucked pretty much (more less fresh after making it open). Buggy, slow and too much Windows influence in bad way. Fortunately there has been significant progress in last few years. Actually I would say that both Ubuntu and openSUSE right now may be the best solutions for newcomers.
I admit Debian is a strange beast indeed. :D While I (and most others) mostly don't appreciate its painfully slow release schedule, several complexities and dubious approach to licencing (e.g. iceweasel) for desktop use, it's still my choice for a mighty stable server (or some kinds of workstation) OS. Hackers, hobbyists and other private and experimental users have always worked around the release schedule by using its "testing" or even "unstable" distributions.
Ubuntu solved some of Debian's problems by freezing fresh software distributions twice a year, improving desktop consistency and otherwise polishing desktop stuff.
I have a slight aversion towards "open" versions of commercial distros like OpenSuSe or Fedora, probably because some critics and open/free software advocates claim their quality is not that high as that of fully open/free distros like Debian/Ubuntu, and their commercial counterparts for that matter. :)
Btw. since PClinuxOS is also recommended by people here, I was wondering what is happening with its ancestor, Mandriva? Some time ago it was also praised as quite nice and user friendly distro...
-
I admit Debian is a strange beast indeed. :D While I (and most others) mostly don't appreciate its painfully slow release schedule, several complexities and dubious approach to licencing (e.g. iceweasel) for desktop use, it's still my choice for a mighty stable server (or some kinds of workstation) OS. Hackers, hobbyists and other private and experimental users have always worked around the release schedule by using its "testing" or even "unstable" distributions.
Yeah I started with testing, ended up with Sid :D However right now I am testing CentOS on servers
I have a slight aversion towards "open" versions of commercial distros like OpenSuSe or Fedora, probably because some critics and open/free software advocates claim their quality is not that high as that of fully open/free distros like Debian/Ubuntu, and their commercial counterparts for that matter. :)
SuSE was commecrial. OpenSUSE is fully opened and developed by community. The only difference is that unlike in case of most other distributions it had financial and technological (including licences owned by Novell) support from big company. In case of openSUSE it is NovellBtw. since PClinuxOS is also recommended by people here, I was wondering what is happening with its ancestor, Mandriva? Some time ago it was also praised as quite nice and user friendly distro...
And pretty much buggy...
-
Yeah I started with testing, ended up with Sid :D However right now I am testing CentOS on servers
...
SuSE was commecrial. OpenSUSE is fully opened and developed by community. The only difference is that unlike in case of most other distributions it had financial and technological (including licences owned by Novell) support from big company. In case of openSUSE it is Novell
Well, Ubuntu is also interesting since it is a fully open/free, and also fully backed up and sponsored by a company (ok maybe not a "big company" ;) )
It seems we are a bit biased, you towards Red Hat based distributions, me towards Debian based ones O:-)
-
Well, Ubuntu is also interesting since it is a fully open/free, and also fully backed up and sponsored by a company (ok maybe not a "big company" ;) )
It seems we are a bit biased, you towards Red Hat based distributions, me towards Debian based ones O:-)
In case of openSUSE it's rather sentiment. SuSE 5 was my first Linux :) And remember that origins of SuSE/openSUSE are in... Slackware not RedHat :D Honestly I don't really care what distribution I a using as long as it is stable and everything works unless it is me who messed up with something
-
Still struggling to get a FC Rawhide to actually compile
Ubuntu 9.10 includes a packaged version that works perfectly - it's 0.9.26.2 though
The same version is also available via Centos 5.3
FC12 is out in a week and a bit, that may be more recent
I agree with the above comment - pick your distro based on how well you know it (RPM Fan)
-
You need to add the Lazarus repos to Ubuntu 9.10
http://wiki.lazarus.freepascal.org/Getting_Lazarus#Long_version:_step_by_step
-
You need to add the Lazarus repos to Ubuntu 9.10
http://wiki.lazarus.freepascal.org/Getting_Lazarus#Long_version:_step_by_step
Already in the repos - KPackage search finds it easy enough
-
;) ...i knew this was going to be a distro war :P
-
;) ...i knew this was going to be a distro war :P
Nah it's just cultural discussion ^^ Fact is that there is no such thing as recommended distribution since every distro has it's advantages and disadvantages. It simply depends on personal preferences. As the matter of fact I would say that the recommended is the one that you can find help for the easiest way. For example you know someone who uses Debian and he is willing to help you with it then even distribution like Debian or Slack may not be bad idea.
Another thing is what's your approach. If you want to learn how your syste works and have 100% control over what's being run there then Debian probably is the best or one of the best choices. If you prefer ease of use and you don't care much about control then anything Mandriva based or even openSUSE.
-
You need to add the Lazarus repos to Ubuntu 9.10
http://wiki.lazarus.freepascal.org/Getting_Lazarus#Long_version:_step_by_step
Already in the repos - KPackage search finds it easy enough
The repos have 0.9.28, see image attached.
-
In case of openSUSE it's rather sentiment. SuSE 5 was my first Linux :) And remember that origins of SuSE/openSUSE are in... Slackware not RedHat :D
You're right, I forgot that. Nowadays I tend to lump all RPM-based distros together to the "Red Hat based" group :D I actually never used a RPM-based distro (longer than 5-10 minutes that is).
And my first one was Slackware ;)
;) ...i knew this was going to be a distro war :P
You bet! It always is ;)
For example you know someone who uses Debian and he is willing to help you with it then even distribution like Debian or Slack may not be bad idea.
You said it great. I bet someone who uses Debian or even Slackware, maintained by someone who knows, would actually have much easier time than even a windoze user if clueless and without anyone's help!
-
I have been a Debian user for years and I love it to bits, but it takes a long time to learn.
As far as I'm concerned Debian and Ubuntu are the same thing.
Installing software that Debian or Ubuntu give you as part of the distro is easy because if you just apt-get install it. In one command the OS will figure out all of the dependencies and download and install everything that you need, but no more.
It means I can start off with a tiny minimum install from a 120meg ISO image and then grow it.
How cool is that?
However....
Suppose I want a package that is not supplied by Debian. Then things get interesting.
Either you need to find someone who has put together a server which has the stuff you need and add their repository to you /etc/apt/sources.list
a good example is debian-multimedia.org
of course you have to trust them though because whoever maintains that server can put anything on your machine if you use it
But what if there is no kind soul who has done that before you. Then I'm afraid you have to handle the dependancies yourself.
Basically you download the lazarus and fpc .deb packages that you want into a folder
then you do
cd folder
dpkg -i *.deb
Now you are going to get a bunch of errors because of unmet dependancies.
Now you go to http://packages.debian.org and find the missing packages
do
apt-get install list-of-packages
then you try dpkg -i *.deb again
you might find that you get dependencies where you already have the right package but it's not new enough
in that case you have to hunt around for a newer package (maybe from ubuntu or an experimental release of debian) and add that into the folder
eventually you either destroy your system or have a working lazarus
that's how I did it anyway
not for the faint of heart though.
I'm afraid that part of the problem is that developers put a .deb package together for their software and fill in the dependencies for what they've got. Suppose that they have somesw.09 and you have only somesw.07 because debian Lenny includes .07
It doesn't mean that the software necessarily actually needs .09, but because thats what the developer had that's what he puts.
because he does that he effectively forces you to upgrade half of your stable system to the same level as his bleeding edge developer box, which is a nightmare
Personally I wish that developers/package maintainers would actually try out their package on a freshly built stable release box, but they just don't.
I'm not sure how rpm based systems like fedora would behave any differently as I have invested so many years in Debian that I'm not going to bother to find out now.
I've also used NetBSD and the pkgsrc system has some remarkably similar characteristics to apt with its dependency checking etc.
-
In FC or CentOS you have yum instead of apt (works similar way, offers the same set of features), in openSUSE there is zypper.
-
I just upgraded from fpc 2.2.2 to 2.2.4 and from lazarus 0.9.26 to 0.9.28 using the two files
fpc-2.2.4-3.i386.deb.tar
lazarus_0.9.28.2_i386.deb.tar
from the download section of the lazarus home page
this is on my Debian Lenny desktop
to be honest it was completely painless and I didn't need anything else at all
Just untar the two folders
go into the fpc folder first and do "dpkg -i *.deb"
then go into the lazarus folder and do "dpkg -i *.deb"
and one minute later I have a working lazarus 0.9.28 install
nice
-
Hi, recently I have made a remastered Puppy 4.3.1 with Lazarus 0.9.28.2 and FPC 2.2.4, you can download:
Puppy_4_3_1_with_Lazarus_0_9_28_2_needs_480MB_RAM.iso
from:
http://www.megaupload.com/?d=EHKHH6Z8
The MD5 sum is fa94102ecf1bf5c29f629148667399fc and the file size is 330 MB. Is a live CD; you reboot with this and use Lazarus (no installation required; and the installation is easy, you have a wizard
in the desktop).
-
Hello,
I tested Lazarus this morning with Puppy Linux 4.31 and it was simple. No building anything, just link up the right .sfs files in the puppy Bootup Configure utility and then Lazarus was ready to go after reboot.
I downloaded Puppy 4.31, and then devx_431.sfs which is at the same puppy site, and then I got this interesting .sfs that contains a built and ready lazarus from the link at puppyspace.
From: http://petstore.puppyspace.org/s5d/utility/lazarus-0.9.28.2-complete.sfs
To: C:\download\lazarus-0.9.28.2-complete.sfs
Size: 114.4 MB (119,877,632 bytes)
Transferred: 114.4 MB (119,877,632 bytes)
Once rebooted, I found lazarus in the utility menu of the puppy start menu, and then I was able to just run it. The only glitch is that everytime it starts up it wants to save a file called %f, but this is no problem and you can just click Ok and then proceed to using the forms designer and editors like you normally would.
The lazarus is helping a lot with some things I want to port to linux and I would recommend this above approach to anyone who wants to get the lazarus up and running quickly.
The puppy linux 4.31 system runs fast and building and working is overall better in my opinion than when using windows with lazarus, but this must be because the lazarus is a linux program.
-
fedora linux is the best __Big Fan :) __
just use the repos
su
yum install lazarus
that will install fpc,fpc-src,lazarus 0.9.28 and all neede devel. packages
i am working in a small project for fedora with lazarus
http://bitbucket.org/a_atalla/hello-fedora/wiki/Home