Recent

Author Topic: The way I setup lazarus and FPC on linux  (Read 59103 times)

Kjooow

  • Jr. Member
  • **
  • Posts: 90
Re: The way I setup lazarus and FPC on linux
« Reply #15 on: December 04, 2009, 02:27:01 pm »
In my Ubuntu 9.04 is all very simply:

1) Download latest linux rpm snapshot from HERE:
Linux i386
 - Lazarus (needs fpc and fpc-src)
 - fpc
 - fpc sources

2) Move into directory where you downloaded these.
3) Type in terminal (e.g. yesterday builds):

sudo alien -i -c fpc-2.2.4-20091203.i386.rpm
sudo alien -i -c fpc-src-2.2.4-20091203.i386.rpm
sudo alien -i -c lazarus-0.9.29.22930-20091203.i386.rpm

4) The End. Lazarus and fpc are perfectly installed on Ubuntu 9.04 (with icon launcher in menu, under development) in these paths:

/usr/lib/lazarus/
/usr/bin/fpc
/usr/share/fpcsrc/

Mike J

  • Jr. Member
  • **
  • Posts: 54
  • Computer Programmer/www.NewsRx.com
    • ᏣᎳᎩ ᎦᏬᏂᎯᏍᏗ ᏗᏕᎶᏆᏍᏗ (Cherokee Language Lessons)
ᏙᎯ

mbohn

  • Full Member
  • ***
  • Posts: 120
Re: The way I setup lazarus and FPC on linux
« Reply #17 on: December 27, 2009, 11:59:58 pm »
Is this OP a joke of some sort?  I've yet to get Lazarus to work on Ubuntu 9.10 after trying for a few weeks.  I'm sure I'm the only one with this issue and that the OP instructions are totally clear and unambiguous to everyone else.  (Except for those folks who have already given up and moved on with their life).

Here's a bit of feedback on the OP


Quote
Installing FPC
Download the fpc binary and unpack it somewhere. I will use:
~/program/fpc-2.2.2
Download? How? Where? 
Unpack?  How? 

Quote
Install it and let it put the binaries somewhere in your path. I will use ~/bin. If you do not have ~/bin in your path you might want to add it:
Install it? How?
Put the binaries somewhere?  Where? How?

Quote
export PATH=$HOME/bin:$PATH
(You can put this in your ~/.bashrc)
~.bashrc WTF?

Quote
Check that fpc is found correctly by the shell by typing:
which fpc

It should show the path to where you just installed the fpc binaries
(~/bin).
Finally!  A step that makes sense!

Quote

The Lazarus IDE will also need the FPC source code so download that to and unpack it. I will use:
~/program/fpcsrc-2.2.2


Installing Lazarus...


The following procedure installs two versions of lazarus, one stable version (0.9.26) and one SVN version. Two different profiles are used to avoid any potential problems coused by differences in the versions.

Don't get me started.  Two versions?  One stable and one SVN?? Two profiles.  You've got to be joking!

Quote
SVN version
Move to the location where you want to install lazarus (~/program). Checkout the latest Lazarus from svn into the lazarus-svn directory:
svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus-svn

Later on you can update the lazarus svn directory with this comand:
svn update
Right!

Quote
To build lazarus just move to the directory and type:
make clean all
Any particular directory?

Quote
If you got any errors see "Errors when building lazarus" below.
Yep, I'm sure all the answers will be there!

Quote
Verify that Lazarus works by starting it:
./lazarus

If everything went well Lazarus should now start. Most likely it will complain about not beeing able to find the fpc sources. Just ignore this for now and exit Lazarus.
And if everything didn't go well (because it never has yet) ?

Quote
Stable version
Download the latest stable version (0.9.26) from the Lazarus website, and unpack it where you want to install it (~/program/lazarus-0.9.26).
Download how?  Any particular Lazarus website? By any chance is there a link?

Quote
To build lazarus just move to the directory and type:
make clean all
Any particular directory?

Quote
If you got any errors see "Errors when building lazarus" below.
Right!


And were now almost half way through!

Quote
blah blah ...

Is it really supposed to be 50 times harder than installing Lazarus under OSX or Windows?  Why?  I feel like I need to run out and get a Ph.D. in Computer Science from Stanford so I can get this damn thing installed.


Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2582
Re: The way I setup lazarus and FPC on linux
« Reply #18 on: December 28, 2009, 12:09:45 am »
Quote
Installing FPC
Download the fpc binary and unpack it somewhere. I will use:
~/program/fpc-2.2.2
Download? How? Where? 
Unpack?  How? 

Serious, if you don't get this far, please stop. Googling on "download fpc binary" gives http://www.freepascal.org/download.var

//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Mike J

  • Jr. Member
  • **
  • Posts: 54
  • Computer Programmer/www.NewsRx.com
    • ᏣᎳᎩ ᎦᏬᏂᎯᏍᏗ ᏗᏕᎶᏆᏍᏗ (Cherokee Language Lessons)
Re: The way I setup lazarus and FPC on linux
« Reply #19 on: December 28, 2009, 12:13:46 am »
  I've yet to get Lazarus to work on Ubuntu 9.10 after trying for a few weeks. 

Did you try the "getlaz" instructions from http://wiki.lazarus.freepascal.org/Getting_Lazarus#Short_version:_get_Lazarus at all?

I am running Lazarus on Ubuntu 9.10 X64 w/o a hitch using the short version way.

Here they are inline (minus formatting) for reference:

Quote
Short version: get Lazarus

In the sections that follow, there's a complete list of the commands you need to type at the console to download and install Lazarus on an Ubuntu system. If you're impatient, this section will just give you what you need to get it installed without going through every part of the process line by line.

Select and copy the following script, and save it as a file in your home directory named getlaz:

Code: [Select]
#!/bin/sh
 gpg --keyserver hkp://pgp.mit.edu:11371 --recv-keys 6A11800F
 gpg --export 6A11800F | apt-key add -
 echo "deb http://www.hu.freepascal.org/lazarus/ lazarus-stable universe" \
     >/etc/apt/sources.list.d/lazarus.list
 apt-get update
 apt-get install lazarus

At the shell prompt, type this to prepare the script for execution, and to execute it (you can copy these lines and paste them into your shell using Shift+Insert):

Code: [Select]
chmod +x getlaz
 sudo ./getlaz

The process will download around 100Mb of data from the Lazarus repository and the standard ones. It will take at least five minutes, even with a fast connection. Any time it stops to ask for confirmation of any step, answer "Y" for yes.

When it finishes and returns to the shell prompt, you're set. Look in the "Development" section of your Ubuntu menu; Lazarus will be there and functional.
ᏙᎯ

fredycc

  • Sr. Member
  • ****
  • Posts: 264
Re: The way I setup lazarus and FPC on linux
« Reply #20 on: February 15, 2010, 11:46:17 pm »
I use this post: http://forum.lazarus.freepascal.org/index.php?topic=6199.15, just One click


I have test it with OpenSuse 11.2 Virtual Machine and runs great, no problems.
Aprox 2 hour for Install OpenSuse, Update OS and install Lazaruz. :)

mike parr

  • New Member
  • *
  • Posts: 14
Re: The way I setup lazarus and FPC on linux
« Reply #21 on: May 05, 2010, 03:53:20 pm »
http://wiki.freepascal.org/Getting_Lazarus#Short_version:_get_Lazarus

Yes, the 'short version' does work (even though passting a few lines into  a script file is more than I want to do. )

Ufortunately, it gets the latest devel. version. svn?

I have a major bug in 9.26, and need to move to  a later version (on ubuntu).  Unfortunately, 9.26 is always the one I get.

Mike
 

mike parr

  • New Member
  • *
  • Posts: 14
Re: The way I setup lazarus and FPC on linux
« Reply #22 on: May 05, 2010, 03:58:28 pm »
Is this OP a joke of some sort?  I've yet to get Lazarus to work on Ubuntu 9.10 after trying for a few weeks.  I'm sure I'm the only one with this issue and that the OP instructions are totally clear and unambiguous to everyone else.  (Except for those folks who have already given up and moved on with their life).
 

Yes, agree with all this.  Lazarus is really nice, but the whole project needs a user-friendly wrapping.

Mike

mike parr

  • New Member
  • *
  • Posts: 14
Re: The way I setup lazarus and FPC on linux
« Reply #23 on: May 05, 2010, 04:01:13 pm »
In my Ubuntu 9.04 is all very simply:

1) Download latest linux rpm snapshot....
 

Ah!  - this looks like an improvement on the other suggestins  - but alien gives me an error - 'unknown tag'  when I enter the first command (with file names amended for the latest version.)

Mike

jhmos

  • New Member
  • *
  • Posts: 24
Re: The way I setup lazarus and FPC on linux
« Reply #24 on: May 07, 2010, 12:32:03 pm »
I don't know why you are making it so complicated.
If you want the latest stable install, there are already ubuntu packages that work fine in Ubuntu 9.04. You can use Synaptic to do it all for you after you go into Synaptic->Settings->Repositories->Third Party Software' and add 'deb http://www.hu.freepascal.org/lazarus/ lazarus-stable universe' as a repository. If your using Ubuntu 10.04, it already has the latest Lazarus (0.9.28.2) without having to add a Third Party repository.

Zoran

  • Hero Member
  • *****
  • Posts: 1829
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: The way I setup lazarus and FPC on linux
« Reply #25 on: May 07, 2010, 01:17:23 pm »
http://wiki.freepascal.org/Getting_Lazarus#Short_version:_get_Lazarus
Ufortunately, it gets the latest devel. version. svn?

No, it gets the latest stable version. It is 0.9.28.2, since last autumn.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: The way I setup lazarus and FPC on linux
« Reply #26 on: July 05, 2010, 09:52:36 pm »
http://wiki.freepascal.org/Getting_Lazarus#Short_version:_get_Lazarus

Yes, the 'short version' does work (even though passting a few lines into  a script file is more than I want to do. )

Then you need to talk to Ubuntu or its packagers team.

They maintain their own packages, policies and the like. Basic .debs are released when FPC or Lazarus are released, only adaptation for specific Ubuntu/Debian demands is needed.



Rangsynth

  • Newbie
  • Posts: 2
Re: The way I setup lazarus and FPC on linux
« Reply #27 on: August 06, 2010, 08:00:42 pm »
I just posted this in another topic but then saw that this was here as well, so I am reposting since it might be of help to anyone who wants to run the lazarus in puppy and with minimal time wasted. I was able to get it working in a few minutes on a standard PC. I have puppy linux booted from disk but this will also work with a CD frugal install which puppy does automatically.

---------------------------------

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.

vfclists

  • Hero Member
  • *****
  • Posts: 1013
    • HowTos Considered Harmful?
Re: The way I setup lazarus and FPC on linux
« Reply #28 on: October 03, 2010, 12:49:49 pm »
FWIW here is my 2 cents too.

http://devblog.brahmancreations.com/content/build-scripts-for-installing-freepascal-and-lazarus-from-source

It is setup on Ubuntu 8.04 LTS and should work on even older distrubtions if any dependent libraries are updated.

During the last year I discovered FPC and Lazarus and I am very impressed. However I have spent quite some time learning how to install them and setting them up in a way that is easily maintainable.
---- snip
« Last Edit: October 03, 2010, 12:53:07 pm by vfclists »
Lazarus 3.0/FPC 3.2.2

fbadriawan

  • New Member
  • *
  • Posts: 15
Re: The way I setup lazarus and FPC on linux
« Reply #29 on: February 10, 2011, 03:50:54 am »
I have my own script to build FPC, FPC Sources, FPC Cros Win32 and Lazarus IDE

here the link: http://www.ziddu.com/downloadlink/13743573/build_fpc_laz_ubuntu.zip

 

TinyPortal © 2005-2018