Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-09

Lazarus and FPC versions for Ubuntu 10?

7 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Bo Berglund

I have just installed Ubuntu 10.04.1 desktop in a VMWare virtual machine. I also did a full update of everything after the install.

Now for Lazarus....
In the Synaptic Package Manager I see versions:
Lazarus: 0.9.28.2-8ubuntu1
FPC: 2.4.0-2

I don't know if these are current or if there is another way to get the right versions.
Please suggest the best way to proceed.

Bo Berglund

Reply by email

ABorka
to Bo Berglund

Hi,

I would do a build of FPC and Lazarus from SVN trunk. It works for me superbly and I don't have to worry about updates or keeping up-to-date with FPC/Lazarus.
Nor waiting years for the latest packages to be updated and included in Ubuntu.
The 2.5.1 trunk of FPC has a ton of new features and fixes/updates which I need and use without a problem.

Building FPC and Lazarus from SVN can be a little bit tricky until one gets it right, but once you have it you will not look back.

I can list my step by step install if you need (the first PITA item on the list is to install the VMWare tools into your Ubuntu so you will have copy/paste for the build process commands. This requires some kernel sources, etc.).

AB

Bo Berglund wrote 22 lines
I have just installed Ubuntu 10.04.1 desktop in a VMWare virtual machine. I also did a full update of everything after the install. Now for Lazarus.... In the Synaptic Package Manager I see versions: Lazarus: 0.9.28.2-8ubuntu1 FPC: 2.4.0-2 I don't know if these are current or if there is another way to get the right versions. Please suggest the best way to proceed. -- Bo Berglund -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Frank Church
to ABorka
ABorka wrote 19 lines
Hi, I would do a build of FPC and Lazarus from SVN trunk. It works for me superbly and I don't have to worry about updates or keeping up-to-date with FPC/Lazarus. Nor waiting years for the latest packages to be updated and included in Ubuntu. The 2.5.1 trunk of FPC has a ton of new features and fixes/updates which I need and use without a problem. Building FPC and Lazarus from SVN can be a little bit tricky until one gets it right, but once you have it you will not look back. I can list my step by step install if you need (the first PITA item on the list is to install the VMWare tools into your Ubuntu so you will have copy/paste for the build process commands. This requires some kernel sources, etc.).

Can you do that please?

I have just had a difficult time installing Lazarus and FPC from SVN. I succeeded but I am not sure what other flaws are lurking in the build. I dread to think what might happen next time I try it again, and I am sure I will have to.

We could exchange some tips.

Show quoted text 35 lines
AB On 9/26/2010 14:29, Bo Berglund wrote: > I have just installed Ubuntu 10.04.1 desktop in a VMWare virtual machine. > I also did a full update of everything after the install. > > Now for Lazarus.... > In the Synaptic Package Manager I see versions: > Lazarus: 0.9.28.2-8ubuntu1 > FPC: 2.4.0-2 > > I don't know if these are current or if there is another > way to get the right versions. > Please suggest the best way to proceed. > > -- > Bo Berglund > > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Frank Church ======================= http://devblog.brahmancreations.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100926/87f85b64/attachment-0001.html>

Reply by email

Bo Berglund
to ABorka: I would do a build of FPC and Lazarus from SVN trunk. It works for me superbly and I…
From: ABorka [mailto:] Sent: Sunday, September 26, 2010 11:55 PM I would do a build of FPC and Lazarus from SVN trunk.

I have never ever touched SVN, so I have no clue as to what to do to accomplish this....
Our outfit is using CVS since the beginning of this millennium (actually CVSNT).

Show quoted text 6 lines
It works for me superbly and I don't have to worry about updates or keeping up-to-date with FPC/Lazarus. Nor waiting years for the latest packages to be updated and included in Ubuntu. The 2.5.1 trunk of FPC has a ton of new features and fixes/updates which I need and use without a problem.

So what you say is that the one available on Synaptic Package Manager is no good?
That is FPC 2.4.0-2...
Lazarus itself seems OK at least by inspecting the download link on SF.

Building FPC and Lazarus from SVN can be a little bit tricky until one gets it right, but once you have it you will not look back.

There you go...
Since I don't know anything about SVN that option is probably not for me.

I can list my step by step install if you need (the first PITA item on the list is to install the VMWare tools into your Ubuntu so you will have copy/paste for the build process commands. This requires some kernel sources, etc.).

The VMWare Easy Install took care of the tools installation for me so they are safely installed. :-)

The list would be welcome so I can get a bleeding edge updated system. :-)

Bo B.

Show quoted text 17 lines
AB On 9/26/2010 14:29, Bo Berglund wrote: > I have just installed Ubuntu 10.04.1 desktop in a VMWare virtual machine. > I also did a full update of everything after the install. > > Now for Lazarus.... > In the Synaptic Package Manager I see versions: > Lazarus: 0.9.28.2-8ubuntu1 > FPC: 2.4.0-2 > > I don't know if these are current or if there is another > way to get the right versions. > Please suggest the best way to proceed. > > -- > Bo Berglund

Reply by email

Mattias Gaertner
to Bo Berglund
Show quoted text 7 lines
>From: ABorka [mailto:] >Sent: Sunday, September 26, 2010 11:55 PM > >I would do a build of FPC and Lazarus from SVN trunk. I have never ever touched SVN, so I have no clue as to what to do to accomplish this....

Using the SVN version is pretty simple, once you have a development system (bin utils, development packages of gtk/qt, ...). The binary packages helps to setup a development system.

[...]

Mattias

Reply by email

ABorka
to Bo Berglund: I have never ever touched SVN, so I have no clue as to what to do to accomplish this....…

OK, here it is guys.
These steps are a little bit raw and some additional apt packages might be needed, but it works for me. Also I did not detail how to extract tar.gz files and such.

==========================================
Linux install (about 5.6GB disk space is needed to finish, recommended at least 10-12GB disk for future Linux/FPC/Lazarus updates): need VMWare tools for the network and copy/paste.
I use midnight commander (the "mc" apt package) to copy files, change owners, create symlinks, edit files, etc., I find it easier.

START:
sudo aptitude install build-essential linux-kernel-headers linux-kernel-devel

get the ubuntu updates system/admin../update manager (or "apt-get update" , then "apt-get upgrade" from a terminal window as root or sudo)

need VM reboot for VMWare tools copy paste to work in the terminal window.(did not detail how to install/compile VMWare tools)

fpc, lazarus START:

as user xx:
"sudo apt-get install gcc libgtk2.0-dev build-essential libgdk-pixbuf-dev" "sudo apt-get install mc apache2 mysql-server php5 phpmyadmin libapache2-mod-auth-mysql php5-mysql" ....etc. if needed "sudo apt-get install subversion"
(some people might not need apache or mysql or php5, Im developing web apps, so I did)

cd /home/xx

as user xx:
http://www.freepascal.org/download.var (this is a web page) binary downloads for latest stable(!) FPC release (needed to compile the latest SVN trunk the first time)
ex: wget
ftp://ftp.freepascal.org/pub/fpc/dist/2.4.0/i386-linux/fpc-2.4.0.i386-linux.tar extract: binary.i386-linux.tar from it into /home/xx/ for example then extract from it the "base" and "utils" tars into /home/xx/fpc-2.4.0-bootstrap/
then extract these tar.gz files in there.
(owner and group needs to be xx:xx) //not nobody:nogroup (for windows: ftp://ftp.freepascal.org/pub/fpc/dist/2.4.0/...win64.exe or win32 and install it "custom" with utils, make, etc.)

as root (after sudo su -):
copied the bin and lib folders into /usr/local (the bin files will be overwritten after new recompile, and the rest are
in their own dir in /usr/local/lib/fpc/2.4.0)

symlink in /bin to the ppc386 in /usr/local/lib/fpc/2.4.0/ so the "make" can find it (will be overwritten during "make install")

run "/usr/local/lib/fpc/2.4.0/samplecfg /usr/local/lib/fpc/2.4.0 /etc" (creates a sample fpc.cfg in /etc)

cd /home/xx/
type "fpc" to see if it is working and starts FPC 2.4.0

as user xx (important!):
"svn checkout http://svn.freepascal.org/svn/fpc/trunk fpc_svn" (full fpc latest development source code into dir fpc_svn under user xx's home dir) (to refresh later at any time: from /home/xx as user xx: "svn update fpc_svn")

as user xx:
cd /home/xx/fpc_svn
"make clean all"
if it complains about fpcmake -> ../fpc-2.4.0-bootstrap/bin/fpcmake and then "make clean all again"
"sudo make install" (everything goes to /usr/local/bin/ , /usr/local/lib/fpc/... and /usr/local/share/doc/fpc/.. etc.)

change the symlink in /bin/ppc386 or /bin/fpc to point to /usr/local/lib/fpc/2.5.1/ppc386
(where 2.5.1 is the latest SVN version checked out) as root or sudo -> in /usr/local/lib/fpc/2.5.1/ run "./samplecfg /usr/local/lib/fpc/2.5.1/ /etc"
(FPC done, now Lazarus)

cd /home/xx
as user xx:
"sudo apt-get install libx11-dev" (..LX11 missing error during make if not installed)
"sudo apt-get install libgtk2.0-dev" (...gdk_pixbuf error during make if not installed)

"svn checkout http://svn.freepascal.org/svn/lazarus/trunk/ lazarus_svn" (full lazarus latest development source code)
(for refreshing the sources in the future: from /home/xx as user xx: "svn update lazarus_svn")

cd /home/xx/lazarus_svn
as user xx: "make clean all"

"sudo make install" (everything goes to /usr/local/share/lazarus/) "make clean" (if wanna free up some space, not really needed, next round of make compiling will do it again)

Getting Synapse:
in /home/xx
as user xx
svn checkout https://synalist.svn.sourceforge.net/svnroot/synalist/trunk synapse_svn

Getting ZEOS:
in /home/xx
as user xx
wget
http://downloads.sourceforge.net/project/zeoslib/Zeos%20Database%20Objects/zeosdbo-6.6.6-stable/ZEOSDBO-6.6.6-stable.zip unzip ZEOS*.zip into a zeos directory there (docs, src, Examples, packages)

"cd ~" //to get to your home dir
"startlazarus" //to start lazarus , NOT with sudo or as user root !!!. Will complain about FPC sources, this is ok.
set up the fpc source dir in the environment options //ex: /home/xx/fpc_svn/ exit from Lazarus

"startlazarus" again
(complaining about FPC sources is gone)

ZEOS install in Lazarus:
package -> open .lpk file -> zeos/packages/lazarus/zcomponent.lpk -> install (rebuilds Lazarus)

package -> install/uninstall packages
add the needed packages (weblaz, lazwebextra, etc.) if there are any and do the rebuild from inside Lazarus
(if there is a problem with rebuilding saying that it can't find...blahblah then the timestamp is not ok for some files due to the first svn checkout time delays because of your internet/machine speed and because those files are in different directories maybe, so they were checked out with few seconds difference. Delete the .pas .lrs of that file and then
Rebuild everything again after an svn update)

DONE.

AB

Reply by email

Reimar Grabowski
to ABorka

On Sun, 26 Sep 2010 15:29:40 -0700
ABorka wrote:

I think it is easier to install FPC via apt if you just need one version:

-install fpc via apt
-get lazarus and fpc sources via svn
-use ~/your_lazarus_dir/tools/install/create_fpc_deb.sh to build fpc deb package -install newly build package via dpkg
-build lazarus

update:
-update fpc via svn
-use ~/your_lazarus_dir/tools/install/create_fpc_deb.sh to build fpc deb package -install newly build package via dpkg
-build lazarus (from within lazarus)

R.

A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail?

Reply by email