Lazarus - What files do I need to install on Gentoo?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
User avatar
davecs
Guru
Guru
Posts: 436
Joined: Sat Nov 08, 2003 3:34 pm
Location: Dagenham, GB

Lazarus - What files do I need to install on Gentoo?

Post by davecs »

I used to use a free personal edition of Borland Delphi when I was a Windows user. I fancy a go at Pascal on Linux and have read about Lazarus. (Never could get on with C or C++.) It is not available on Portage, to my knowledge. Does anyone know precisely what Lazarus files I need to download to set it up on Linux? It seems like a stupid question but I could not find the answer at their site and I have not yet received a password for their forum to ask there.
Gentoo, PCLOS-pre-81a and Windows 98SE.
Shuttle SN41G2V2
Athlon XP2500+ o/c to 3200+, 2x256Mb Geil Value RAM, FX5200.
Ntlworld cable internet via ethernet
and PC-Chips Desknote Laptop (with PCLOS-pre-81a )
User avatar
Slammer
Bodhisattva
Bodhisattva
Posts: 270
Joined: Fri Mar 28, 2003 1:52 am
Location: Greece

Post by Slammer »

Before use lazarus you must have the fpc (Free Pascal Compiler) installed. It is on portage but you have to ACCEPT_KEYWORDS=~x86.
Once the fpc is installed it is very easy to build lazarus.
Download the latest version and unpack it to a directory (for example ~/lazarus), cd on this directory and run make. Run it with ./lazarus
Lazarus is very simple to install and run, you don't have to be root.
Keep Slamming...
Nazgul2
n00b
n00b
Posts: 1
Joined: Fri Feb 13, 2004 10:08 am

Can't compile lazarus

Post by Nazgul2 »

I've just emerged fpc and tried to install lazarus. However, when i type make, I get the following error:

-Fl/usr/kde/3.1/lib -Fl/usr/games/lib -Fl/usr/lib/fltk-1.1 -di386 alllclunits.pp
intfgraphics.pas(34,29) Fatal: Can't find unit FPIMAGE
make[1]: Leaving directory `/usr/share/lazarus/lcl'
User avatar
iplayfast
l33t
l33t
Posts: 642
Joined: Mon Jul 08, 2002 5:48 pm
Location: Cambridge On,CA
Contact:

Post by iplayfast »

The lazarus download site, has links to sourceforge downloads where a version of fpc and lazarus (that are matched to each other) are located.

I've been leary of trying it myself. I'm emersed with C++ these days and haven't got time to play with it. But if you go ahead let me know how you made out.
http://www.lazarus.freepascal.org/
User avatar
iplayfast
l33t
l33t
Posts: 642
Joined: Mon Jul 08, 2002 5:48 pm
Location: Cambridge On,CA
Contact:

Well I tried it...

Post by iplayfast »

Well I tried it. And I was blown away. I first tried it on XP at work. It seemed very similar to delphi. Right down to Ctrl-Space showing possible tags. The windows install is very easy. (almost as easy as emerge :)

I then tried downloading it and installing it in Gentoo. I got tripped up a bit because I had previously installed fpc under gentoo, so it went to my /usr/bin directory. Installing it myself (with a newer version of fpc) put it into /usr/local/bin

I had to uninstall the previous version of fpc, and then things went fine.

Code: Select all

Pros:
Very fast compile, Very easy to create an executable, cross platform code. Easy language to learn. Point and click form development.

Code: Select all

Cons:
A number of rough edges. If it crashes it crashes fast (no chance to save). It crashes often when adding components to the form. The executables are large (although it might just be my settings).
I tried porting GLScene over to it, but had no luck. I'm not familiar enough with the system to know if it is me or Lazarus that's at fault.

In any case if you are at all interested in Pascal/Delphi/Fast development this project is probably worth looking at.
User avatar
iplayfast
l33t
l33t
Posts: 642
Joined: Mon Jul 08, 2002 5:48 pm
Location: Cambridge On,CA
Contact:

Post by iplayfast »

The ebuilds are in. I've also posted a mini howto on configuration at http://forums.gentoo.org/viewtopic-p-23 ... ml#2373297
Post Reply