Lazarus

Installation => Linux => Topic started by: 99Percent on June 10, 2011, 06:23:31 am

Title: Best linux to develop Lazarus?
Post by: 99Percent on June 10, 2011, 06:23:31 am
I am discovering Ubuntu is not really very developer friendly and it seems more focused toward the desktop user.

What do you consider is my best bet to develop in Linux? There are so many distros out there.
Title: Re: Best linux to develop Lazarus?
Post by: felipemdc on June 10, 2011, 06:39:35 am
I don't think that there is one best, it's more a matter of personal taste. I like Mandriva Linux the most.
Title: Re: Best linux to develop Lazarus?
Post by: CaptBill on June 10, 2011, 07:52:09 am
I'm curious too. What about the Gentoo approach? Is it the only distro that isn't a flavor?

I havent a clue myself (just having installed Debian, like hours ago) .

Is Gentoo worth the extra effort in Lazarus picture?

Thanks

 
Title: Re: Best linux to develop Lazarus?
Post by: cdbc on June 10, 2011, 11:57:00 am
Hi

I use PcLinuxOs. It rocks!

http://www.pclinuxos.com

Check it out....

Regards Benny
Title: Re: Best linux to develop Lazarus?
Post by: de_jean_7777 on June 10, 2011, 12:20:17 pm
So far I've had no problems with Fedora, and I use it for development for at least the past two years.
Title: Re: Best linux to develop Lazarus?
Post by: herux on June 10, 2011, 12:42:13 pm
Quote
I am discovering Ubuntu is not really very developer friendly and it seems more focused toward the desktop user.

what does not exist for developers in ubuntu?
Title: Re: Best linux to develop Lazarus?
Post by: JuhaManninen on June 10, 2011, 01:02:18 pm
I'm curious too. What about the Gentoo approach? Is it the only distro that isn't a flavor?
...
Is Gentoo worth the extra effort in Lazarus picture?

Not really. The only real benefit of Gentoo is the big amount of packages (but Debian has almost as many). The Gentoo ebuild system allows defining and configuring the sources in a flexible way.
A female geek (yes!) in our engineering school claimed that Gentoo is the only distro flexible enough for her. She has many distros around but they restrict her too much.
I haven't noticed that myself but maybe I am just not geeky enough. Years ago I tried to install Gentoo but failed which kind of proves it.

Lately I have used Sabayon which is basically a precompiled Gentoo but has very different properties. It is easy to install and use, works "out of the box".
You still can use Gentoo ebuilds when you need them. Highly recommended!
The only minus comes from a poor support of some hardware configurations.

I don't see any big problem with Ubuntu / Kubuntu either, although I think it is over-hyped. Good documentation is the best part of Ubuntu. It is important of course.

Juha
Title: Re: Best linux to develop Lazarus?
Post by: joseywales72 on June 10, 2011, 02:10:57 pm
I personally use and recommend Archlinux. http://archlinux.org (http://archlinux.org)

It has all the benefits of Gentoo (fast, lean and mean :-) but not its handicaps (very long compilation times, the need to micromanage everything)
Like Gentoo, Arch has a rolling release model, it has a very nice wiki and  very friendly and resourceful forums.  Its official repos have more than 8000 packages, and its user contributed package database AUR (most of them are very well maintained) has nearly 20000 packages.

It is really faster than Ubuntu, configurable totally by only a few scripts and very developer friendly.

Just my thoughts.

Anil
Title: Re: Best linux to develop Lazarus?
Post by: Peter_Vadasz on June 10, 2011, 02:47:48 pm
I think Zenwalk ( http://www.zenwalk.org ) is a good choice :). But I'm not a developer.
Title: Re: Best linux to develop Lazarus?
Post by: nicke85 on June 10, 2011, 06:48:00 pm
ArchLinux forever after and after 8-)
www.archlinux.org
-- ultimate programers linux for lazarus developers --
Title: Re: Best linux to develop Lazarus?
Post by: Andru on June 10, 2011, 08:39:49 pm
ArchLinux because of "rolling release", PKGBUILDS and KISS.
Title: Re: Best linux to develop Lazarus?
Post by: 99Percent on June 10, 2011, 09:37:47 pm
Quote
I am discovering Ubuntu is not really very developer friendly and it seems more focused toward the desktop user.

what does not exist for developers in ubuntu?
Its been several months since Lazarus 0.9.30 stable has been release and nobody has updated the Ubuntu repository for it. Its a big hassle to manually install it. You need to install a lot of development packages. Sudo is a pain, clearly not meant to be used so regularly because like I said Ubuntu is geared to the desktop user.

I tried Puppy Linux yesterday, and it is not well supported by Virtualbox.

I am going to give ArchLinux a try.
Title: Re: Best linux to develop Lazarus?
Post by: Blaazen on June 10, 2011, 09:54:01 pm
I am two month on Chakra-Project. It is Arch+KDE4 distribution. Its installer, Tribe, is written in Lazarus.
http://chakra-project.org/index.html (http://chakra-project.org/index.html)
Title: Re: Best linux to develop Lazarus?
Post by: fabienwang on June 10, 2011, 10:38:37 pm
false Blaazen:
http://gitorious.org/chakra/tribe/trees/master/src

It's written in C++ (Qt)
Title: Re: Best linux to develop Lazarus?
Post by: Blaazen on June 10, 2011, 10:58:36 pm
Fabien, you are right.
See here: http://chakra-project.org/bbs/viewtopic.php?id=3028 (http://chakra-project.org/bbs/viewtopic.php?id=3028)
My mistake, it is not Tribe, it is another installer (probably related to their Live-CD).
Title: Re: Best linux to develop Lazarus?
Post by: CaptBill on June 11, 2011, 12:47:59 am
Very informative thread, seriously. Thanks all.

So it looks like...

Sabayon(Gentoo) for easy install,(pre-compiled Gentoo=faster builds)
ArchLinux for intermediate advanced,(much like Sabayon ,another 'flavor' of Gentoo)
Gentoo gives ultimate advanced control.

with notable mentions....

Chakra,(KDE4 support)
Puppy (for best virtualbox support)

Does that sound about right?



Title: Re: Best linux to develop Lazarus?
Post by: 99Percent on June 11, 2011, 02:12:30 am
Tried ArchLinux... what a joke, severely disappointed.

Installing in Virtualbox fails with a downright idiotic bug ("ask_number $3 must be a number!" when assigning virtual memory space)

I tried registering in the forum and it asks a ridiculous script question:

What is the output of "date -u +%W$(uname)|sha256sum|sed 's/\W//g'"?

Seriously, is that is how they get new users to their OS?

Title: Re: Best linux to develop Lazarus?
Post by: 99Percent on June 11, 2011, 02:16:25 am
Needless to say, if I am going to try out a linux distro, it must work on Virtualbox right off the bat. Puppy Linux and ArchLinux failed miserably.
Title: Re: Best linux to develop Lazarus?
Post by: tonyw on June 11, 2011, 08:07:31 pm
Quote
I am discovering Ubuntu is not really very developer friendly and it seems more focused toward the desktop user.

what does not exist for developers in ubuntu?
Its been several months since Lazarus 0.9.30 stable has been release and nobody has updated the Ubuntu repository for it. Its a big hassle to manually install it. You need to install a lot of development packages. Sudo is a pain, clearly not meant to be used so regularly because like I said Ubuntu is geared to the desktop user.

I tried Puppy Linux yesterday, and it is not well supported by Virtualbox.

I am going to give ArchLinux a try.

I am really very surprised to read that anyone thinks that Ubuntu is not an excellent environment for Lazarus development. However, from the above discussion, it does look like the problem is the installation deb files rather than Ubuntu itself. I always install from source for Lazarus and deb files for FPC and that is the way I would recommend using it.

The following is how I install under Ubuntu:

1. Download the fpc (2.4.2 at present) deb files to some temporary location (e.g. /tmp).

2. From the command line cd to that location (e.g. cd /tmp) and enter:

sudo dpkg -i fp*.deb

and then

sudo apt-get -f install

The first command should install Free Pascal and the second will fix any missing dependencies. You may want to do "sudo apt-get update" first if its been a while since your system was updated.

3. Download the lazarus source and decompress the archive into some location (e.g create a directory called lazarus in your home directory).

4. cd to that directory and enter

make

followed by

sudo make install

That should build lazarus and install it under /usr/local
Title: Re: Best linux to develop Lazarus?
Post by: eny on June 11, 2011, 08:44:03 pm
I am really very surprised to read that anyone thinks that Ubuntu is not an excellent environment for Lazarus development. However, from the above discussion, it does look like the problem is the installation deb files rather than Ubuntu itself. I always install from source for Lazarus and deb files for FPC and that is the way I would recommend using it.

This was my final straw to get it working a while ago and to my big surprise it did  :D
Installing FPC (now 2.4.4) works with the deb packages.
Installing Lazarus from the deb packages (if you can find them) fails in all sorts of horrible ways.
However downloading the lazarus source package and compiling it manually works perfectly.
Title: Re: Best linux to develop Lazarus?
Post by: bobo on June 11, 2011, 10:41:44 pm
I am also using Ubuntu for Lazarus developments (using Ubuntu 10.10 updated from the 10.04LTS version). Not gonna upgrade to 11.04 as it seems too raw at the moment, plus everything works right now, so why should I.

Compiling both FPC and Lazarus from the SVN sources. It is not a trivial task to do it at first, but once done you are good forever.
New versions/updates to the latest are as easy as running "svn update dirname" and rebuild, for both FPC and Lazarus.

I also had problems with the pre-packaged FPC/Lazarus that is why I made it work this way.
Title: Re: Best linux to develop Lazarus?
Post by: 99Percent on June 12, 2011, 12:39:24 am
Tried ArchLinux... what a joke, severely disappointed.

Installing in Virtualbox fails with a downright idiotic bug ("ask_number $3 must be a number!" when assigning virtual memory space)

I tried registering in the forum and it asks a ridiculous script question:

What is the output of "date -u +%W$(uname)|sha256sum|sed 's/\W//g'"?

Seriously, is that is how they get new users to their OS?


Ok, more sober now LOL. I discovered my install mistake for ArchLinux (was assigning all the virtual disk to the boot, leaving zero for the rest) and was able to install it. I take back my initial impresion, I think its a great distro now. Also I solved the forum question. Just copy and paste into a linux command prompt and then copy and paste the resulting md5 string.
Title: Re: Best linux to develop Lazarus?
Post by: 99Percent on June 12, 2011, 12:44:01 am
I am also using Ubuntu for Lazarus developments (using Ubuntu 10.10 updated from the 10.04LTS version). Not gonna upgrade to 11.04 as it seems too raw at the moment, plus everything works right now, so why should I.

Compiling both FPC and Lazarus from the SVN sources. It is not a trivial task to do it at first, but once done you are good forever.
New versions/updates to the latest are as easy as running "svn update dirname" and rebuild, for both FPC and Lazarus.

I also had problems with the pre-packaged FPC/Lazarus that is why I made it work this way.
Yeah, except it gets extra complicated if you use third party components. Don't you need to export the SVN version to another directory before compiling it? I agree that SVN lazarus is the way to go for serious development.
Title: Re: Best linux to develop Lazarus?
Post by: fabienwang on June 12, 2011, 12:51:45 am
Don't you need to export the SVN version to another directory before compiling it? I agree that SVN lazarus is the way to go for serious development.

Of course you don't need to export the SVN, you can compile directly on it :)
Title: Re: Best linux to develop Lazarus?
Post by: bobo on June 12, 2011, 02:48:42 am
You don't need to export anything. The "make clean" and "make install" takes care of the cleanup and proper installation to the proper directories.

As for third party components, they are also getting recompiled when you first start up Lazarus after a new build and Lazarus complains about the missing packages. You just need to click Tools->Rebuild Lazarus and it will get the third party components to the component bar when finished.
Title: Re: Best linux to develop Lazarus?
Post by: marcov on June 16, 2011, 11:06:15 am
I'm curious too. What about the Gentoo approach? Is it the only distro that isn't a flavor?
...
Is Gentoo worth the extra effort in Lazarus picture?

Not really. The only real benefit of Gentoo is the big amount of packages (but Debian has almost as many). The Gentoo ebuild system allows defining and configuring the sources in a flexible way.
A female geek (yes!) in our engineering school claimed that Gentoo is the only distro flexible enough for her. She has many distros around but they restrict her too much.
I haven't noticed that myself but maybe I am just not geeky enough. Years ago I tried to install Gentoo but failed which kind of proves it.

If you like gentoo "build packages" principle, better directly try  the real thing directly, FreeBSD.
 
TinyPortal © 2005-2018