Difference between revisions of "Talk:Installing Lazarus"

From Lazarus wiki
Jump to navigationJump to search
(removed obsolete Posted by Giuseppe Ridinò (pepecito AT email.it) on October 6, 2004 at 00:51:32 PDT */)
 
(21 intermediate revisions by 8 users not shown)
Line 1: Line 1:
Updated versions of Lazarus have turned the chapter
+
== Split this page? ==
5 Posted by Giuseppe Ridinò (pepecito AT email.it) on October 6, 2004 at 00:51:32 PDT
 
to be obsolete. Can it be removed?
 
  
 +
Shouldn't we split this page up, at least separate installing fpc from installing Lazarus? --[[User:Bart|Bart]] ([[User talk:Bart|talk]]) 12:14, 22 October 2017 (CEST)
  
===Posted by Claude Rieth on October 31, 2003 at 00:58:59 PST===
+
Yes, I agree, I find it quite strange that FPC does not have its own install page, if nothing else, there are people who want just FPC without Lazarus. --[[User:Dbannon|Dbannon]] ([[User talk:Dbannon|talk]]) 10:09, 1 July 2020 (CEST)
  
Installing on a Debian Woody:
+
Agreed. Done! [[User:Trev|Trev]] ([[User talk:Trev|talk]]) 15:37, 1 July 2020 (CEST)
  
As it is RPM packages I installed them using
+
Well done mate !  That page looks a lot better now, have to wait for the category system to catch up.  But the cleaner page does highlight what a lot of old, outdated and even inappropriate stuff is still there.  I have on some other pages created a "Legacy" section to keep useful but outdated content, that way, a new user knows when to stop reading and the page does not appear so neglected.  Maybe we need that here.  I propose that this page be stripped down to just a short overview and index to other operating specific pages. 
  
rpm -i --nodep
+
So, almost everything below the Quick Start Guide section should be either removed or moved to Legacy.
  
needed to create a directory first to get rpm running but then it went okay.
+
For example
  
To be able to use the compiler, I had to manually simlink
+
* Section under heading - From source on Linux, its very old, newer version exists elsewhere.
 +
* Sections about individual linux distros, maybe just a single line listing them noting most are not maintained.  Personally, I'd like to actually delete them but thats the trouble with Wikis, always more comfortable making new pages than deleting old ones.
 +
* There are a couple of OS/Distro entries I suspect need be dragged up to the Quick Start Guide, Raspberry Pi ???, Haiku, BSD ?
 +
* Advice about how to install on Windows98 amd ME (wow !)
 +
* Windows on a thumb drive - my guess is that no longer works.
  
libX11.so  -> libX11.so.6
+
And a new Windows Page ? Outside my comfort zone I am afraid.
libgtk.so  -> libgtk-1.2.so.0.9.1
 
libgdk.so -> libgdk-1.2.so.0.9.1
 
libXi.so  -> libXi.so.6.o
 
libXext.so -> libXext.so
 
libglib.so -> libglib-1.2.so.0.0.10
 
  
And then it worked. Actually coding my usual NEW ENVIRONMENT PROJECT, a RPN calculator, will post it when ready.
+
'''This is quite a drastic change, be nice to 'socialize' it to use an IBM term.'''  --[[User:Dbannon|Dbannon]] ([[User talk:Dbannon|talk]]) 02:15, 2 July 2020 (CEST)
  
BTW: To the maintainer of TPanel, TCustomPanel, with the VCL, if I set the Borderwidth to 2 (ex.), the caption of the panel is moved that far away from the border (at least in Delphi 6), so it becomes more readable, this can easily be done in the LCL by adding another inflateRect(...,-BorderWidth,-BorderWidth) just before the Textout(...) that does the caption, but as I do not know yet how to add this to the offical LCL source codes, I just put it here.
+
::I re-organised the page a little more and moved some OS up to the top as you indicated. The �Quick Guides were actually pretty detailed, so I renamed them to OS specific Guides. I know very little about Linux or its distributions so didn't do anything to the Linux content except move some of the obviously old material to the [[Installation hints for old versions]] page.
  
Regards,
+
::As for Windows, I compile my Windows executables on macOS and haven't seriously used Windows since Win2000. Someone else will need to update that content or, better still, create a dedicated page. I left the Win98 and WinME content because there was someone in the Forums just recently still using those 16 bit systems. [[User:Trev|Trev]] ([[User talk:Trev|talk]]) 08:31, 2 July 2020 (CEST)
 
 
Claude
 
 
 
===Posted by Installing on Debian on July 8, 2004 at 10:28:35 PDT===
 
 
 
This is my version how I successfully installed Lazarus on Debian.
 
 
 
Installing FPC:
 
 
 
Download fpc-1.9.x.i386.tar (in my case x was 4) and unpack the archive. Go into the folder in which you had unpacked FPC and type (as root if needed) "./sh install.sh". Follow the instructions of the script (I simply install all packages). You have now successfully installed FPC.
 
 
 
Installing gtk+:
 
type as root:
 
"apt-get install libgtk1.2-dev" this will install gtk+.
 
then install gdk-pixbuf with the command:
 
"apt-get install libgdk-pixbuf-dev"
 
 
 
Installing Lazarus:
 
 
 
First download lazarus-040529.tgz (or a file with a newer version number) and unpack the archive. Go to the folder with the unpacked files and enter "make clean all" (you do not need to be root). Compiling will need a good minute on a 1GHZ PC. If all works well you can start lazarus with ./lazarus.
 
 
 
If you get errors at the end of the compiling, possibly you have not all needed packages installed. Try to find out how to install the missing packages and try to compile again. At my first try libgtk1.2-dev was missing, at the second try it was libgdk-pixbuf-dev, the third try successfully build Lazarus.
 
 
 
Wine:
 
 
 
If this was too difficult to you, you could try out the Windows version of Lazarus with wine. It works (without a Windows installation), I've wrote and started a "Hello World" program within three minutes after downloading the Windows version.
 
 
 
Happy programming :-)
 
 
 
Malte
 
 
 
===Posted by Olivier Garet on August 17, 2004 at 01:43:21 PDT===
 
 
 
Installing on debian
 
 
 
In fact, it seems that the current CVS is ready for building a debian package.
 
 
 
=> dowload lazarus.zip , unzip it, cd to the directory lazarus.
 
 
 
Verify that the fpc-* packages are installed.
 
 
 
Now
 
 
 
chmod +x debian/rules
 
touch fpcdebug.txt
 
dpkg-buildpackage
 
 
 
You should now get a package lazarus_0.9.1beta-0_i386.deb
 
 
 
Verify that the package tct is NOT installed (it has a /usr/bin/lazarus file !)
 
 
 
Now, dpkg -i ../lazarus_0.9.1beta-0_i386.deb should install the package.
 
 
 
Hope this helps.
 
 
 
===Posted by ridz on October 2, 2004 at 00:45:38 PDT===
 
 
 
Installing on Slackware 10.0
 
 
 
1) Download the rpm version of the required binaries, eg:
 
 
 
fpc-1.9.5-040808.i386.rpm
 
fpcsrc-1.9.5-040808.i386.rpm
 
lazarus-0.9.2.2-fpc_1.9.5_041001.i386.rpm
 
 
 
2) Convert the 'rpm' files to Slackware 'tgz' format using
 
 
 
the rpm2tgz utility (usually installed as standard):
 
rpm2tgz fpc-1.9.5-040808.i386.rpm
 
rpm2tgz fpcsrc-1.9.5-040808.i386.rpm
 
rpm2tgz lazarus-0.9.2.2-fpc_1.9.5_041001.i386.rpm
 
 
 
3) Rename the resulting 'tgz' files as follows in order
 
 
 
to satisfy Slackware package manager naming convention:
 
fpc-1.9.5.040808-i386.tgz
 
fpcsrc-1.9.5.040808-i386.tgz
 
lazarus-0.9.2.2fpc195.041001-i386.tgz
 
 
 
4) Install all 3 using the 'installpkg' utility.
 
 
 
Enjoy! :)
 
 
 
NOTE: To uninstall 'lazarus' use the removepkg utility
 
(dunno why anyone would want to un-install it!)
 
 
 
 
 
 
 
===Posted by amiso (Alain.Michaud AT nrc-cnrc.gc.ca) on December 1, 2004 at 19:10:39 PST===
 
    Install Lazarus 0.9.4 on Mandrake 10.1
 
 
 
      Do the following steps to install your Lazarus Integrated Development
 
 
 
    Tool, with the Free Pascal Compler.
 
 
 
      I am a novice linux user. I find it so difficult to install or upgrade
 
 
 
    software on linux. This time I finally succeeded upgrading lazarus to
 
    the 0.9.4 version (3 jan 2005 version) and I hope that this sumary could
 
    be usefull for other novice users.
 
 
 
    IMPORTANT NOTICE: If you are more than 6 month experienced with linux or
 
    lazarus or if you do not use linux Mandrake version 10.1 then STOP
 
    READING NOW.
 
 
 
    SECOND IMPORTANT NOTICE: Keep in mind that this was written by someone
 
    who knows next to nothing! If anything is wrong then I deeply apologize.
 
    The purpose of this note is to help the user that has tried everything
 
    else and is stalled. I have used the procedure on 3 computers and it
 
    works.
 
 
 
    System: linux "Mandrake 10.1 Official" on a Pentium III (or II) type
 
    computer.
 
 
 
    Lazarus: Version 0.9.4 (built: 3 january 2005).
 
 
 
    FPC: Version 1.9.6 (built: 2 january 2005).
 
 
 
    File names:
 
 
 
    File_1 = "fpc-1.0.10i386.tar" from:
 
    http://www.freepascal.org/down-linux-1386.html
 
 
 
    File_2 = "fpc-1.9.6-050102.i386-linux.tar" from:
 
    http://www.lazarus.freepascal.org
 
    then follow the links: "binaries" / "linux" / "Current Lazarus Binary
 
    RPM"
 
 
 
    File_3 = "lazarus-050103.tgz" (from the lazarus site)
 
 
 
    System modules: Lazarus uses the GTK+ library (version 1 only, not
 
    version2). Go the "Mandrake Control Center" and install the modules:
 
 
 
      libgdk-pixbuf-xlib2-0.22.0-5mdk
 
      libgdk-pixbuf2-devel-0.220.-5mdk
 
 
 
 
 
    There are 3 steps:
 
 
 
    Step A - Install the stable compiler (V1.0.10)
 
    Step B - Install the current compiler (V1.9.6)
 
    Step C - Install the Integrated Development Environment (Lazarus)
 
 
 
    Step A - Install the stable compiler (FPC Version 1.0.10)
 
 
 
      In order to compile the compiler, you need a compiler! We use the
 
 
 
    "stable compiler", (Free Pascal Compiler version 1.0.10) for that. It
 
    used to be included on the "Mandrake Install disk" but I did not find it
 
    in the Mandrake 10.1 distribution! However, it is available on the web
 
    (see the address above):
 
 
 
    A.1- In user mode ("myself") type:
 
    mkdir /home/myself/freepascal/V1.0.10
 
    A.2- copy File_1 to /home/myself/freepascal/V1.0.10
 
    A.3- type: tar -xvf File_1 (of course you type the actual file name
 
    given above)
 
    A.4- type: cd fpc
 
    A.5- go to the superuser mode (type: "su" then your password)
 
    A.6- type: sh install.sh
 
    A.7- you want to install it in the [/usr/local folder] then just press:
 
    return
 
    A.8- anwser "Y" to all the 11 questions, and answer "return" to the last
 
    question.
 
 
 
    At this point you shoud have the first "stable" compiler installed! It
 
    will be used to compile the "current" compiler: The command: "fpc" shows
 
    a help message that shows the "1.0.10" version number. Also, check that
 
    now you have the folder:
 
 
 
    /usr/local/lib/fpc/1.0.10/
 
 
 
    Step B - Install the current compiler (FPC Version 1.9.6)
 
 
 
 
      This is very similar to the previous section:  
 
 
 
    B.1- In user mode ("myself") type: mkdir /home/myself/freepascal/V1.9.6
 
    B.2- move File_2 to: /home/myself/freepascal/V1.9.6
 
    B.3- type: tar -xvf File_2 (actual name given above)
 
    B.4- type: cd fpc
 
    B.5- go to the superuser mode ("su")
 
    B.6- type: sh install.shl (takes about 10 minutes)
 
    B.7- anwser "Y" to all the 12 questions, and answer "return" to the last
 
    question.
 
 
 
    At this point check that you have a directory:
 
 
 
    /usr/local/lib/fpc/1.9.6/units/i386-linux/
 
 
 
    filled with the libraries. There are all sort of folders in there. Now
 
    check that the file fpc.cfg has the lines:
 
 
 
-Fu/usr/local/lib/fpc/1.9.6/units/$fpctarget
 
-Fu/usr/local/lib/fpc/1.9.6/units/$fpctarget/*
 
-Fu/usr/local/lib/fpc/1.9.6/units/$fpctarget/rlt
 
 
 
    Note that you see the word: $fpctarget NOT $target.
 
    Note that you see: 1.9.6 NOT 1.0.10.
 
 
 
    If the lines do not match then edit and change the file. Use any editor
 
    you like of course. In VI (type: "vim") you type:
 
 
 
    B.7.a - "I" to go to the "insert" mode
 
    B.7.b - type in your lines as shown above
 
    B.7.c - press "ESCAPE" to go back to the command mode
 
    B.7.d - type ":wq" to save and exit. (":q!" exit without save!)
 
 
 
    The last "trick" is to check (and change, if necessary) that the
 
    symbolic link "ppc386" points to the good compiler. Type:
 
 
 
    B.8.a- cd /usr/local/bin
 
    B.8.b- ls -al
 
 
 
    The displayed line should show:
 
 
 
    ppc386 --> /usr/local/lib/fpc/1.9.6/ppc386
 
 
 
    If if does, then skip to step B9, otherwise type :
 
 
 
    B.8.c- rm ppc386 (then "y")
 
    B.8.d- type: ln -s /usr/local/lib/fpc/1.9.6/ppc386
 
 
 
    B.9 - Go back to the user mode (type: "exit").
 
    B.10- type: fpc
 
 
 
    Wonderfull! Now you see from the help message that you have the version
 
    1.9.6 compiler. The last step is to load the IDE.
 
 
 
    Step C - Install the Integrated Development Environment (Lazarus)
 
 
 
      The Lazarus can installed in your own user account ("myself"). That can
 
 
 
    be done in the user mode:
 
 
 
    C.1- type: cd ~
 
    C.2- Copy File_3 to: /home/myself/
 
    C.3- cd ~
 
    C.4- tar -xvzf File_3 this will create the lazarus folder
 
    C.5- cd lazarus
 
    C.6- make clean all (takes about 10 minutes)
 
    C.7- type: ./lazarus
 
 
 
    This should bring up the IDE. The first time you run lazarus, you get an
 
    error message about a bad "Free pascal Source Directory". Click:
 
    "ignore", then go to the menu: "Enviromnment/Environment Options" and
 
    set the "FPC source directory" to /usr/local/share/src/fpc-1.9.6/.
 
 
 
    C.8- In order to check that the application is working properly, create
 
    the simplest application. Just drag and drop a button on the form and
 
    press F9.
 
 
 
    C.9- Finally, create a shortcut icon on your desktop that executes
 
    lazarus in the /home/myself/lazarus/ directory. Enjoy.
 
 
 
      Finally, I would like to make a few comments:
 
     
 
 
 
    - I do not know how to install the .rpm files. For that reason I always
 
    use the .tar files. Most people commented to me that the RPM file is a
 
    prefered method.
 
 
 
    - There is a stable version 1.0.11 but there was no .tar file available
 
    for this one. The version 1.10 is available and works well, so I used
 
    it.
 
 
 
    - If you get an error message about some files "missing" this is because
 
    you have not installed some modules. Instaling modules is an art (and a
 
    hobby)! Try to install the followings modules. I do not know if they are
 
    nessary but they were already installed on my system:
 
 
 
      kernel-source-2.6-2.6.8.1-12mdk 
 
      libgdk-pixbuf2.0-0-devel-2.4.9-9mdk 
 
 
 
    - Beware of the files "ppc386" "ppc396.cfg" "fpc.cfg" "fpc" when your
 
    instalation fails. After a while, you see them everywhere. Some of them
 
    are hidden sometimes! Remove all those files before you start the
 
    instalation again. Only /etc/fpc.cfg and /user/lib/ppc386 are necessary.
 
 
 
    - FPC can be installed in the cross-compiler (multi-platform) mode. The
 
    file to use for that has the name structure "fpcsrc-...-.tar". I could
 
    install it, but more difficult to install. In this this procedure
 
    however, the "linux-only" file ("fpc-...-linux.tar") is very easy to
 
    install.
 
 
 
 
      I hope that this was not too pedantic and could be usefull to someone.
 
 
 
    I wish you a good luck.
 
 
 
    Sincerely
 
 
 
    Alain Michaud
 
 
 
    rubidium
 
 
 
    31 january 2005
 

Latest revision as of 08:31, 2 July 2020

Split this page?

Shouldn't we split this page up, at least separate installing fpc from installing Lazarus? --Bart (talk) 12:14, 22 October 2017 (CEST)

Yes, I agree, I find it quite strange that FPC does not have its own install page, if nothing else, there are people who want just FPC without Lazarus. --Dbannon (talk) 10:09, 1 July 2020 (CEST)

Agreed. Done! Trev (talk) 15:37, 1 July 2020 (CEST)

Well done mate ! That page looks a lot better now, have to wait for the category system to catch up. But the cleaner page does highlight what a lot of old, outdated and even inappropriate stuff is still there. I have on some other pages created a "Legacy" section to keep useful but outdated content, that way, a new user knows when to stop reading and the page does not appear so neglected. Maybe we need that here. I propose that this page be stripped down to just a short overview and index to other operating specific pages.

So, almost everything below the Quick Start Guide section should be either removed or moved to Legacy.

For example

  • Section under heading - From source on Linux, its very old, newer version exists elsewhere.
  • Sections about individual linux distros, maybe just a single line listing them noting most are not maintained. Personally, I'd like to actually delete them but thats the trouble with Wikis, always more comfortable making new pages than deleting old ones.
  • There are a couple of OS/Distro entries I suspect need be dragged up to the Quick Start Guide, Raspberry Pi ???, Haiku, BSD ?
  • Advice about how to install on Windows98 amd ME (wow !)
  • Windows on a thumb drive - my guess is that no longer works.

And a new Windows Page ? Outside my comfort zone I am afraid.

This is quite a drastic change, be nice to 'socialize' it to use an IBM term. --Dbannon (talk) 02:15, 2 July 2020 (CEST)

I re-organised the page a little more and moved some OS up to the top as you indicated. The �Quick Guides were actually pretty detailed, so I renamed them to OS specific Guides. I know very little about Linux or its distributions so didn't do anything to the Linux content except move some of the obviously old material to the Installation hints for old versions page.
As for Windows, I compile my Windows executables on macOS and haven't seriously used Windows since Win2000. Someone else will need to update that content or, better still, create a dedicated page. I left the Win98 and WinME content because there was someone in the Forums just recently still using those 16 bit systems. Trev (talk) 08:31, 2 July 2020 (CEST)