Hi.
The scrips avaliable in
"http://wiki.lazarus.freepascal.org/Lazarus_Manager" are not compatible with FPC-2.5.1 on Linux.
What is the best step to install the FPC-2.5.1 and Lazarus-0.9.31 on Ubuntu (11.04)?
Thanks for any response.

Mailing lists / lazarus / 2011-05
53 messages · 7 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hi.
The scrips avaliable in
"http://wiki.lazarus.freepascal.org/Lazarus_Manager" are not compatible with FPC-2.5.1 on Linux.
What is the best step to install the FPC-2.5.1 and Lazarus-0.9.31 on Ubuntu (11.04)?
Thanks for any response.
I wonder how you found this page. The Wiki says that no page links to this page.
What is the best step to install the FPC-2.5.1 and Lazarus-0.9.31 on Ubuntu (11.04)?
The recommended way is to use the svn versions.
See here:
http://wiki.lazarus.freepascal.org/Getting_Lazarus
Mattias
Mattias Gaertner wroteI wonder how you found this page. The Wiki says that no page links to this page.
Well, at least it appears under the "Lazarus category"
http://wiki.lazarus.freepascal.org/Category:Lazarus
But yes, I have never seen that page either. The joys of a wiki - it's only as good as its internal links. :-)
Regards,
- Graeme -
On Mon, 23 May 2011 15:47:59 -0300 I wonder how you found this page. The Wiki says that…
2011/5/23 Mattias Gaertner :
I wonder how you found this page. The Wiki says that no page links to this page.
Oh :o , but it's there, see: http://imagebin.org/154790.
The recommended way is to use the svn versions. See here: http://wiki.lazarus.freepascal.org/Getting_Lazarus
I've tried following this tutorial, but unsuccessfully. :(
Thx.
Mattias
?
?
silvioprog hat am 24. Mai 2011 um 13:07 geschrieben:
Yes, the page is still there, but it is outdated, not maintained, abandoned. That's why nothing links to it. Is there still anything useful in it? Maybe it's time to remove it.
?
?
Why? What fails?
Maybe the page can be improved.
Mattias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110524/71df422f/attachment.html>
2011/5/24 Mattias Gaertner :
Yes, the page is still there, but it is outdated, not maintained, abandoned. That's why nothing links to it. Is there still anything useful in it? Maybe it's time to remove it.
The page is not outdated, and they works perfectly with stable fpc/lazarus revisions.
silvioprog has problem with 2.5.1 trunk, not 2.4.2 that is installed with these scripts.
Just two days ago I used the linux scripts on Ubuntu 11.04 x86 and it worked like a charm.
Same thing on Windows 7 Home Premium (but I had to add FPC path before first reboot).
Regards,
Kjow
My suggestion for the release version is:
http://sourceforge.net/projects/lazarus/files/
It detects your OS and suggests a direct download: lazarus-0.9.30-i386.deb.tar under Linux
lazarus-0.9.30-fpc-2.4.2-win32.exe under WinXP
2011/5/24 Kjow
2011/5/24 Alexsander Rosa :
With these scripts I have everyday latest svn revisions, automatically (just start PCs or running manually script) compiled for my pc.
Kjow
? ? silvioprog hat am 24. Mai 2011 um 13:07 geschrieben: Yes, the page is still there,…
2011/5/24 Mattias Gaertner :
[...]
Why? What fails? Maybe the page can be improved.
This information is to install the Lazarus via repository, and I need via to install via SVN.
Mattias
2011/5/24 Mattias Gaertner : The page is not outdated, and they works perfectly with…
2011/5/24 Kjow :
[...]
Just two days ago I used the linux scripts on Ubuntu 11.04 x86 and it worked like a charm.
How do you configure the script to install FPC-2.5.1?
Regards, Kjow
My suggestion for the release version is: http://sourceforge.net/projects/lazarus/files/…
2011/5/24 Alexsander Rosa :
I need:
FPC-2.5.1
Laz-0.9.31
I don't need OpenGL, and neither of cross-compile, so, what lines I remove from the script?
My script (fail in "sudo alien -i -c
/home/$NAME/fpc_tools/fpc_setup/fpc-$FPCVER-1.i686.rpm"):
Thx.
ps. Sorry for my translation.
2011/5/24 Kjow : [...] How do you configure the script to install FPC-2.5.1? Silvio Cl?cio
2011/5/24 silvioprog :
How do you configure the script to install FPC-2.5.1? > Regards, > Kjow
I tried with 2.5.1 + 0.9.31 long time ago, so I don't really know if there are problems actually, but if you open the script with an editor you can find all you need. E.g.:
From row #16:
/-----------------------/
#swap --> swap # of the two rows below to choose between FPC 2.4.2 and 2.5.1 and go to line 53 <--
FPCVER="2.4.2"
#FPCVER="2.5.1"
/-----------------------/
should became:
/-----------------------/
#swap --> swap # of the two rows below to choose between FPC 2.4.2 and 2.5.1 and go to line 53 <--
#FPCVER="2.4.2"
FPCVER="2.5.1"
/-----------------------/
Then goto row #53 and then:
From:
/-----------------------/
#swap --> swap REM of the two rows below to choose between FPC 2.4.2 and 2.5.1 and go to line 71 <--
svn co http://svn.freepascal.org/svn/fpc/tags/release_2_4_2 fpc #svn co http://svn.freepascal.org/svn/fpc/trunk fpc /-----------------------/
To:
/-----------------------/
#swap --> swap REM of the two rows below to choose between FPC 2.4.2 and 2.5.1 and go to line 71 <--
#svn co http://svn.freepascal.org/svn/fpc/tags/release_2_4_2 fpc svn co http://svn.freepascal.org/svn/fpc/trunk fpc /-----------------------/
Then goto row 71, etc...
Regards,
Kjow
I don't need OpenGL, and neither of cross-compile, so, what lines I remove from the…
2011/5/24 silvioprog :
Cross compiling is deeply integrated to the script, it needs too modifies. To do not download GLScene just comment it.
2011/5/24 Kjow :
Cross compiling is deeply integrated to the script, it needs too modifies. To do not download GLScene just comment it.
I'll make the modification in the script and post here...
2011/5/24 Mattias Gaertner : The page is not outdated, and they works perfectly with…
I'm glad to hear that :)
Mattias
2011/5/24 Mattias Gaertner : [...] This information is to install the Lazarus via…
Huh?
The page is about installing via svn.
http://wiki.lazarus.freepascal.org/Getting_Lazarus
Maybe you confused it with the page about installing from repository: http://wiki.lazarus.freepascal.org/Installing_Lazarus
Mattias
2011/5/24 silvioprog : Cross compiling is deeply integrated to the script, it needs too…
2011/5/24 Kjow :
Cross compiling is deeply integrated to the script, it needs too modifies. To do not download GLScene just comment it.
So, without sucess again. See my script here: http://pastebin.com/gD5pKF2g
I removed binutils.
Link in line 56 not exists. :(
On Tue, 24 May 2011 15:09:43 -0300 Huh? The page is about installing via svn.…
2011/5/24 Mattias Gaertner :
In session "...A file with all sources, or two (FPC and Lazarus) { http://wiki.lazarus.freepascal.org/Installing_Lazarus#Installing_Free_Pascal_under_Linux.2FBSD_manually }" the link "ftp://ftp.freepascal.org/fpc/dist/Linux/separate/sources.tar" not works.
Install lazarus and fpc via svn in ubuntu is very complex. :S
1. apt-get install subversion
2. svn co http://svn.freepascal.org/svn/fpc/trunk fpc Follow instructions from:
http://wiki.lazarus.freepascal.org/Getting_Lazarus#Building_and_installing_Free_Pascal_in_UNIXe
3. svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus Compile with "make clean all"
Source: http://wiki.lazarus.freepascal.org/Getting_Lazarus
2011/5/24 silvioprog
2011/5/24 Kjow : So, without sucess again. See my script here:…
2011/5/24 silvioprog :
If you don't see at lines 16,17,18 like this:
#swap --> swap # of the two rows below to choose between FPC 2.4.2 and 2.5.1 and go to line 53 <--
FPCVER="2.4.2"
#FPCVER="2.5.1"
You have an old/bad version.
Try to redownload it...
But I repeat, I don't know if the script is fully working with fpc 2.5.1 and laz 0.9.31.
For your knowledge, you can try to install all with original script (so fpc 2.4.2+laz 0.9.31 and binutils). If it works, delete all installed things and try to install all step by step with "2.5.1" settings (you can do a simple copy and paste on terminal)
2011/5/24 Mattias Gaertner : In session "...A file with all sources, or two (FPC and…
Hmm, this page is a big mess.
Ok, you are right, the "Getting Lazarus" page contains the hints for installing binaries as well.
The "Installing Lazarus" should be renamed/splitted. It's confusing, but maybe parts can be used.
Install lazarus and fpc via svn in ubuntu is very complex. :S
Actually it's easy:
First install the standard ubuntu package of Lazarus. This will install all dependencies.
Then follow the instructions on the Getting Lazarus page: download the fpc, compile it and install it. Download lazarus svn, compile it, but do not install it. Start the new lazarus.
Mattias
2011/5/24 Mattias Gaertner : The page is not outdated, and they works perfectly with…
Kjow wrotefpc/lazarus revisions. silvioprog has problem with 2.5.1 trunk, not 2.4.2 that is installed with these scripts.
2.4.2 is old. ( :-) )
2011/5/25 Marco van de Voort :
2.4.2 is old. ( :-) )
I can't catch the irony :)
Current stable svn is 2.4.2
This morning update:
Lazarus 0.9.30 r30895M FPC 2.4.2 i386-win32-win32/win64
The _FPC_ stable branch is currently the 2.4.x series.
The version of the stable branch is 2.4.5, the last release of the stable branch is 2.4.4
This morning update: Lazarus 0.9.30 r30895M FPC 2.4.2 i386-win32-win32/win64
That's still packing the old compiler, yes :-)
2.4.2 and 2.4.4 are mostly compatible btw, there are only very few compiler fixes to 2.4.4. Most is libraries.
But I'm just teasing, I'm sure in due time lazarus/stable will migrate to 2.4.4
2011/5/26 Marco van de Voort :
so if i download the first time from:
svn co http://svn.freepascal.org/svn/fpc/tags/release_2_4_2 fpc
and then I update with a simple: svn up is not enough?
Which way to follow to stay everytime updated?
Thanks :)
Kjow wroteWhich way to follow to stay everytime updated?
Use the following repository URL instead.
http://svn.freepascal.org/svn/fpc/branches/fixes_2_4
A 'svn up' will keep you updated for all FPC 2.4.x releases and latest fixes.
Regards,
- Graeme -
2011/5/23 Mattias Gaertner : Oh :o , but it's there, see: http://imagebin.org/154790.…
I think about trying the following steps:
1. Installing Free Pascal from repository;
2. Download the sources from the Free Pascal 2.5.1 (via SVN);
3. Compile and install FPC-2.5.1;
4. Uninstall old Free Pascal;
5. Download and install the Lazarus from SVN;Am I right? :/
Thx.
If you use "make install INSTALL_PREFIX=/usr" you have to fix the symlink:
ln -sf /usr/lib/fpc/2.5.1/ppc386 /usr/bin/ppc386
4. Uninstall old Free Pascal; 5. Download and install the Lazarus from SVN; Am I right? :/
Yes.
You may have to install the development packages of gtk2 before building the gtk2 version of the IDE.
Mattias
I think about trying the following steps: 1. Installing Free Pascal from repository; 2.…
Hi,
So friends, this is my alpha script:
So, the line 70 (#sudo make install PREFIX=/usr
PP=/usr/lib/fpc/2.5.1/ppc386) isn't necessary, correct?
Thx.
Yes.
You should add a
set -e
to stop on errors.
And you can combine apt-get to
apt-get install -y fpc subversion
Mattias
2011/5/31 Mattias Gaertner :
Yes. You should add a set -e to stop on errors.
Where? In Make?
See if it's correct:
And you can combine apt-get to apt-get install -y fpc subversion
Yes:
(...)
sudo apt-get install -y subversion fpc fp-utils fpc-source fp-units-misc (...)
sudo apt-get remove -y fpc fp-utils fpc-source fp-units-misc fp-* (...)
Mattias
No, at the beginning of your script.
#!/bin/sh
# Script by silvioprog - http://silvioprog.com.br
set -e
Mattias
2011/5/31 Mattias Gaertner :
Perfect!
I'll test the script again in other VMs (Ubuntu 10.04, 10.10, 11.04...). When I finish I will share the script in SVN of Lazarus-BR: http://code.google.com/p/lazarus-br/.
Thx again.
Mattias
Hi friends,
Problem solved! Link to solution:
http://lists.lazarus.freepascal.org/pipermail/lazarus/2011-June/063612.html
<http://lists.lazarus.freepascal.org/pipermail/lazarus/2011-June/063612.html>Thx guys! :)
2011/6/2 silvioprog
Hi friends,
Now I need of a script to update my SVN, so, I made this:
This script is correct?
Thx.
2011/6/2 silvioprog :
Sorry... this is correct (with ./ in lazbuild):
This script is correct? Thx.
You compile a new fpc, but don't install it. Intended?
Mattias
2011/6/2 Mattias Gaertner :
You compile a new fpc, but don't install it. Intended?
Yes. I changed my install script to:
This script is correct now? :/
And I chaged my update script too, see:
It's OK? ...:/
Thanks Mattias.
Mattias
2011/6/2 silvioprog :
[...]
And I chaged my update script too, see: http://pastebin.com/JMLqFVD6
Sorry, the correct link is:
2011/6/2 Mattias Gaertner : Yes. I changed my install script to:…
The PP=... is not needed.
Mattias
And the second t in "Updatting" is not needed as well.
Mattias
2011/6/2 Mattias Gaertner :
[...]
OK, that's my final script:
It's OK?
Thx. :)
No. Only in 99% it is enough to do a lazbuild --build-ide=. After updating Lazarus svn you should do a 'make clean all'. This is the only guaranteed way that handles all changes - like fixes to lazbuild and renaming of packages.
make clean all
./lazbuild --build-ide=
Mattias
P.S. your script does not support multiple installations.
2011/6/2 Mattias Gaertner :
[...]
OK. This is my ultimate script (to update):
Now is OK! :)
Thanks again. ;)
Note:
The build-all and recursive is not needed, because you did a "make clean" before.
They may be needed for third party packages, that are not configured properly (for example if some units were not added to the lpk).
Now is OK! :)
Yes, if it does what you expect.
Mattias
Mattias Gaertner wrote> Now is OK! :) Yes, if it does what you expect.
I would make the
sudo make install PREFIX=/usr
line
something like
sudo make install PREFIX=/usr PP=~/fpc/compiler/ppc386
This because otherwise you install with the version of the globally installed compiler instead of the just built one, potentially overwriting a stable (2.4.4) with an unstable (2.4.5)
Has something changed? A make install should just install files. Since when does it need a compiler for that?
Mattias
Has something changed? A make install should just install files. Since when does it need a compiler for that?
To know where to install the units. I have already crushed my 2.4.4 units (default compiler) with 2.5.1 svn units because I forgot to specify the compiler.
Ludo
This never happened to me. But I used the INSTALL_PREFIX instead of PREFIX. Maybe this makes a difference?
Mattias
This never happened to me. But I used the INSTALL_PREFIX instead of PREFIX. Maybe this makes a difference?
I didn't specify any PREFIX. The default /usr/local is fine for me. I only use one 2.5.1.
Ludo
On Fri, 3 Jun 2011 17:58:03 +0200 Has something changed? A make install should just…
Since the parameter -i emerged. A long, long time ago :-)
: Since
when does it need a compiler for that?
The compiler is used to retrieve cpu, operating system and version.
2011/6/2 Mattias Gaertner : [...] OK. This is my ultimate script (to update):…
Hi.
Finally, all the scripts are ready, tested and approved!
Install:
http://silvioprog.com.br/download/install_fpc_lazarus_svn_version.tar.gz
Update:
http://silvioprog.com.br/download/update_fpc_lazarus_svn_version.tar.gz
Remove:
http://silvioprog.com.br/download/remove_fpc_lazarus_svn_version.tar.gz
Customize (for 800x600):
http://silvioprog.com.br/download/custom_lazarus_svn_version_800x600.tar.gz
Customize (for 1024x768):
http://silvioprog.com.br/download/custom_lazarus_svn_version_1024x768.tar.gz
Good luck! :)
Thx to all.