Sign in Join

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

Mailing lists / fpc-pascal / 2015-12

Can fpc 3.0 release be installed using apt-get on Linux Mint?

24 messages · 7 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 created a VMWare virtual machine on my Win7 PC and installed Linux Mint 17.2 Cinnamon in order to do some pascal development.
I really do not want to build either fpc or lazarus myself, I just want to use the released versions.

So is there a release 3.0 version available for Linux Mint 17 via apt-get?
And if so what would be the correct command to get it?

Bo Berglund Developer in Sweden
Bo Berglund
to Bo Berglund
Bo Berglund wrote
So is there a release 3.0 version available for Linux Mint 17 via apt-get? And if so what would be the correct command to get it?

I tried this:
sudo apt-get install fpc lazarus
It gathered info for a while, then asked if I wanted to continue. When I looked at all the stuff it had printed on screen I found it was about to install fpc compiler 2.6.2 and lazarus 1.0.10!!!! So I aborted.

Is it so bad that new releases are no longer posted with current Linux distributions?

Bo Berglund Developer in Sweden
Sven Barth
to Bo Berglund
"Bo Berglund" wrote 17 lines
On Mon, 07 Dec 2015 20:10:22 +0100, Bo Berglund wrote: >So is there a release 3.0 version available for Linux Mint 17 via >apt-get? >And if so what would be the correct command to get it? I tried this: sudo apt-get install fpc lazarus It gathered info for a while, then asked if I wanted to continue. When I looked at all the stuff it had printed on screen I found it was about to install fpc compiler 2.6.2 and lazarus 1.0.10!!!! So I aborted. Is it so bad that new releases are no longer posted with current Linux distributions?

The distro packages are not provided by us, but by the distributions themselves and if there's no maintainer for the packages won't be updated to newer releases...

Regards,
Sven

Michael Van Canneyt
to Bo Berglund: I have just created a VMWare virtual machine on my Win7 PC and installed Linux Mint 17.2…
Bo Berglund wrote 10 lines
I have just created a VMWare virtual machine on my Win7 PC and installed Linux Mint 17.2 Cinnamon in order to do some pascal development. I really do not want to build either fpc or lazarus myself, I just want to use the released versions. So is there a release 3.0 version available for Linux Mint 17 via apt-get? And if so what would be the correct command to get it?

No, none officially exists. There is a very old one, but it is not maintained.

I believe fpc 3.0 is in debian experimental, but it would be a very bad idea to use that in linux mint.

There is a command-line installer on the ftp site for fpc, after that you should build lazarus itself.

As it happens, I am currently writing an article on how to install lazarus on Linux mint 17.3 from zero. It does describe compiling lazarus.

I can send it to you when it is finished.

Michael.

Bo Berglund
to Michael Van Canneyt
Michael Van Canneyt wrote 6 lines
There is a command-line installer on the ftp site for fpc, after that you should build lazarus itself. As it happens, I am currently writing an article on how to install lazarus on Linux mint 17.3 from zero. It does describe compiling lazarus. I can send it to you when it is finished.

Thanks, please do!
I bit the bullet and did the following, hopefully it is not way off like my experiments on a Raspberry Pi2 were:

1) Went to http://www.freepascal.org/down/i386/linux-hungary.var

2) Downloaded the "everything" file
ftp://ftp.hu.freepascal.org/pub/fpc/dist/3.0.0/i386-linux/fpc-3.0.0.i386-linux.tar

3) Extracted its contents to the Download dir

4) Then I entered the directory and issued the command: sudo sh install.sh

5) During installation I was asked to select target and entered /usr/local as I was told in another case some time ago.

6) Then I just replied Y to most of the questions and it installed apparently just fine.
At least it responds to my fpc -h command...

Now I have to deal with Lazarus, but that is another list/forum...

Bo Berglund Developer in Sweden
Mattias Gaertner
to Bo Berglund
Show quoted text 19 lines
On Mon, 7 Dec 2015 20:27:12 +0100 (CET), Michael Van Canneyt wrote: [...] 1) Went to http://www.freepascal.org/down/i386/linux-hungary.var 2) Downloaded the "everything" file ftp://ftp.hu.freepascal.org/pub/fpc/dist/3.0.0/i386-linux/fpc-3.0.0.i386-linux.tar 3) Extracted its contents to the Download dir 4) Then I entered the directory and issued the command: sudo sh install.sh 5) During installation I was asked to select target and entered /usr/local as I was told in another case some time ago. 6) Then I just replied Y to most of the questions and it installed apparently just fine. At least it responds to my fpc -h command...

That is the right way.

As an alternative you can install the FPC 2.6.4 deb (e.g. from the Lazarus site), then download the FPC 3.0.0 sources and 'make install' them.

Now I have to deal with Lazarus, but that is another list/forum...

Lazarus needs libgtk2.0-dev, which should automatically install libgtk2.0-common.

Lazarus 1.6RC1 will be available soon and it provides deb packages for FPC 3.0.0 and Lazarus.

Mattias

Graeme Geldenhuys
to Michael Van Canneyt: No, none officially exists. There is a very old one, but it is not maintained. I believe…
Michael Van Canneyt wrote
There is a command-line installer on the ftp site for fpc, after that you should build lazarus itself.

I've used this method for years under Linux, FreeBSD and Windows. It always works, and is really simple and quick. I highly recommend this installation option to everybody.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp
Graeme Geldenhuys
to Bo Berglund: On Mon, 7 Dec 2015 20:27:12 +0100 (CET), Michael Van Canneyt Thanks, please do! I bit the…
Bo Berglund wrote
5) During installation I was asked to select target and entered /usr/local as I was told in another case some time ago.

The nice think of the command line installer, is that you can install to your $HOME directory as well. You do not require root permissions.

Now I have to deal with Lazarus, but that is another list/forum...

Use Git or SubVersion to checkout whatever version you want. On the Github mirror, via the website, you can download a ZIP archive of a branch too.

The simply do:

make ide
or
make bigide

depending on how much you want included by default into Lazarus. Once you have a Lazarus executable, then you can build a new lazarus from inside Lazarus (eg: when installing new components etc).

Been doing this process for 5 years and it never failed me.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp
Michael Van Canneyt
to Bo Berglund: On Mon, 7 Dec 2015 20:27:12 +0100 (CET), Michael Van Canneyt Thanks, please do! I bit the…
Bo Berglund wrote 30 lines
On Mon, 7 Dec 2015 20:27:12 +0100 (CET), Michael Van Canneyt wrote: > There is a command-line installer on the ftp site for fpc, after that you should build lazarus itself. > > As it happens, I am currently writing an article on how to install lazarus on Linux mint 17.3 from zero. > It does describe compiling lazarus. > > I can send it to you when it is finished. Thanks, please do! I bit the bullet and did the following, hopefully it is not way off like my experiments on a Raspberry Pi2 were: 1) Went to http://www.freepascal.org/down/i386/linux-hungary.var 2) Downloaded the "everything" file ftp://ftp.hu.freepascal.org/pub/fpc/dist/3.0.0/i386-linux/fpc-3.0.0.i386-linux.tar 3) Extracted its contents to the Download dir 4) Then I entered the directory and issued the command: sudo sh install.sh 5) During installation I was asked to select target and entered /usr/local as I was told in another case some time ago. 6) Then I just replied Y to most of the questions and it installed apparently just fine. At least it responds to my fpc -h command...

This is the way to go. You don't need my article :-)

Now I have to deal with Lazarus, but that is another list/forum...

That should be pretty straightforward as well.

Michael.

Bo Berglund
to Mattias Gaertner: On Mon, 07 Dec 2015 21:52:35 +0100 That is the right way. As an alternative you can…
Mattias Gaertner wrote
> Now I have to deal with Lazarus, but that is another list/forum... Lazarus needs libgtk2.0-dev, which should automatically install libgtk2.0-common.

I looked into my Raspberry Pi2 install notes and found these dependencies for Lazarus:

Get additional packages:
------------------------
apt-get update
apt-get install -y libx11-dev libgdk-pixbuf2.0-dev libcairo2-dev gir1.2-coglpango-1.0 libpangox-1.0-dev xorg-dev libgtk2.0-dev libpango1.0-dev

Are most of these superfluous? Is it enough with libgtk2.0-dev?

Then concerning Lazarus itself:

Get the Lazarus sources:
------------------------
svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus

I found that I really would like to run on some form of fairly stable source, so what would be the correct tag to use in place of trunk?

Lazarus 1.6RC1 will be available soon and it provides deb packages for FPC 3.0.0 and Lazarus.

Will there be a tar package like for fpc or should I go for an svn checkout?
Is there an RC tag for Lazarus?

Bo Berglund Developer in Sweden
Mattias Gaertner
to Bo Berglund
Show quoted text 19 lines
On Mon, 7 Dec 2015 22:16:26 +0100, Mattias Gaertner wrote: >> Now I have to deal with Lazarus, but that is another list/forum... > >Lazarus needs libgtk2.0-dev, which should automatically install >libgtk2.0-common. I looked into my Raspberry Pi2 install notes and found these dependencies for Lazarus: Get additional packages: ------------------------ apt-get update apt-get install -y libx11-dev libgdk-pixbuf2.0-dev libcairo2-dev gir1.2-coglpango-1.0 libpangox-1.0-dev xorg-dev libgtk2.0-dev libpango1.0-dev Are most of these superfluous? Is it enough with libgtk2.0-dev?

I have not tried on Linux-Mint.
Can you test?
If building Lazarus fails with a linker error you will see what lib is missing.

Will there be a tar package like for fpc

No.
Building Lazarus is easy (make all). The tricky part is helping the user to install the required libraries.
If someone provides a script that checks the common distros and maintains the script I would build such a tar.

or should I go for an svn checkout?

I recommend that. This makes upgrading easy.

Is there an RC tag for Lazarus?

Many. For example:
http://svn.freepascal.org/svn/lazarus/tags/lazarus_1_6_RC1

Mattias

Bo Berglund
to Mattias Gaertner: On Mon, 07 Dec 2015 23:15:50 +0100 I have not tried on Linux-Mint. Can you test? If…
Mattias Gaertner wrote 9 lines
> apt-get update > apt-get install -y libx11-dev libgdk-pixbuf2.0-dev libcairo2-dev > gir1.2-coglpango-1.0 libpangox-1.0-dev xorg-dev libgtk2.0-dev > libpango1.0-dev > > Are most of these superfluous? Is it enough with libgtk2.0-dev? I have not tried on Linux-Mint. Can you test?

I did as follows:
sudo apt-get install libgtk2.0-dev

It pulled no less than 73 different packages....

Show quoted text 6 lines
> Is there an RC tag for Lazarus? Many. For example: http://svn.freepascal.org/svn/lazarus/tags/lazarus_1_6_RC1

Thanks,
I will go with that tag.

Bo Berglund Developer in Sweden
Bo Berglund
to Bo Berglund
Bo Berglund wrote 26 lines
On Mon, 7 Dec 2015 23:35:05 +0100, Mattias Gaertner wrote: >> apt-get update >> apt-get install -y libx11-dev libgdk-pixbuf2.0-dev libcairo2-dev >> gir1.2-coglpango-1.0 libpangox-1.0-dev xorg-dev libgtk2.0-dev >> libpango1.0-dev >> >> Are most of these superfluous? Is it enough with libgtk2.0-dev? > >I have not tried on Linux-Mint. >Can you test? I did as follows: sudo apt-get install libgtk2.0-dev It pulled no less than 73 different packages.... > >> Is there an RC tag for Lazarus? > >Many. For example: >http://svn.freepascal.org/svn/lazarus/tags/lazarus_1_6_RC1 > Thanks, I will go with that tag.

I checked out the tag above and compiled.
Unfortunately make bigide took 18s to end in an error:

Target OS: Linux for i386
Compiling lazres.pp
Linking ./lazres
Warning: "crti.o" not found, this will probably cause a linking failure
Warning: "crtn.o" not found, this will probably cause a linking failure
/usr/bin/ld: warning: ./link.res contains output sections; did you forget -T?
/usr/bin/ld: skipping incompatible
/usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o when searching for /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o
/usr/bin/ld: cannot find /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o /usr/bin/ld: cannot find -ldl
/usr/bin/ld: cannot find -lc
Error: Error while linking
Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted

So what is causing this? A missing library perhaps?

Bo Berglund Developer in Sweden
Mattias Gaertner
to Jonas Maebe: If you limit yourself to just using FPC from Debian experimental, I don't think there's…
Show quoted text 6 lines
Michael Van Canneyt wrote: > I believe fpc 3.0 is in debian experimental, but it would be a very bad > idea to use that in linux mint. If you limit yourself to just using FPC from Debian experimental, I don't think there's much that can go wrong.

That's probably true, but you are mixing a Debian repository with Ubuntu/Linux Mint/etc repository, which gives warnings and anyone you are asking for help will tell you that it is a bad idea.

Mattias

Mattias Gaertner
to Bo Berglund: On Mon, 07 Dec 2015 23:47:36 +0100, Bo Berglund I checked out the tag above and compiled.…
Show quoted text 14 lines
[...] Target OS: Linux for i386 Compiling lazres.pp Linking ./lazres Warning: "crti.o" not found, this will probably cause a linking failure Warning: "crtn.o" not found, this will probably cause a linking failure /usr/bin/ld: warning: ./link.res contains output sections; did you forget -T? /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o when searching for /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o /usr/bin/ld: cannot find /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o

Are you sure you installed the right compiler?
i386 x86_64, 32 vs 64bit.

Mattias

Mattias Gaertner
to Mattias Gaertner: On Mon, 07 Dec 2015 23:56:56 +0100 Are you sure you installed the right compiler? i386 …
Show quoted text 20 lines
On Mon, 07 Dec 2015 23:56:56 +0100 Bo Berglund wrote: >[...] > Target OS: Linux for i386 > Compiling lazres.pp > Linking ./lazres > Warning: "crti.o" not found, this will probably cause a linking > failure > Warning: "crtn.o" not found, this will probably cause a linking > failure > /usr/bin/ld: warning: ./link.res contains output sections; did you > forget -T? > /usr/bin/ld: skipping incompatible > /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o when searching for > /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o > /usr/bin/ld: cannot find /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o Are you sure you installed the right compiler? i386 x86_64, 32 vs 64bit.

I tried Linux Mint 17.3 64bit. After installing fpc x86_64 tar and libgtk2.0-dev, Lazarus builds fine.

Mattias

Bo Berglund
to Mattias Gaertner: On Mon, 07 Dec 2015 23:56:56 +0100 Are you sure you installed the right compiler? i386 …
Mattias Gaertner wrote
Are you sure you installed the right compiler? i386 x86_64, 32 vs 64bit.

Well I looked at the download page:
http://www.freepascal.org/download.var
and since my laptop has an Intel CPU I chose the one that said Intel/i386...

But now I see that further down there is a section AMD64/x86_64, which I did not use since it said AMD. But apparently that is the one for 64 bit. Sigh!
So how do I get rid of the erroneous fpc? I have no idea at all what the install.sh script did so I can revert it....
Is there an uninstall way? Here is where apt-get would have been good since it has an uninstall function.

But, should not the 32 bit compiler work also in my Linux Mint 17 machine? Even though it has an Intel 64 bit CPU...

Bo Berglund Developer in Sweden
Jonas Maebe
to Bo Berglund
Bo Berglund wrote
But now I see that further down there is a section AMD64/x86_64, which I did not use since it said AMD. But apparently that is the one for 64 bit. Sigh!

I've added "Intel 64" to that list, which is the name that Intel uses. Both AMD64 and x86_64 are names for the architecture though (unrelated to the processor brand), while "Intel 64" is Intel's own brand name for that architecture.

So how do I get rid of the erroneous fpc? I have no idea at all what the install.sh script did so I can revert it....

You don't have to. If you install the x86_64 version on top of it, it will become the new default. The i386 compiler will still be available via ppc386 and "fpc -Pi386".

But, should not the 32 bit compiler work also in my Linux Mint 17 machine? Even though it has an Intel 64 bit CPU...

The compiler works. The problem you got was caused by not having 32 bit versions of other development packages installed.

Jonas

Bo Berglund
to Jonas Maebe
Jonas Maebe wrote 6 lines
> So how do I get rid of the erroneous fpc? I have no idea at all what > the install.sh script did so I can revert it.... You don't have to. If you install the x86_64 version on top of it, it will become the new default. The i386 compiler will still be available via ppc386 and "fpc -Pi386".

Thanks, I downloaded the x64 tar file instead and extracted it in parallel to the i386 one in the Downloads directory, then entered the dir and commanded:
sudo sh install.sh

And it worked fine. FPC is now the x64 version.

Then I returned to the Lazarus folder where I had checked out lazarus_1_6_RC1 and issued make bigide.

Now there were some warnings like this:
/usr/bin/ld: warning: ../link.res contains output sections; did you forget -T?
But it did finish without errors.

When I type in ./startlazarus on the command line Lazarus seems to start up OK, but then it displays the "Configure Lazarus IDE" dialog box where it asks for the path to fpc sources...

But I have no idea where the sources were placed by the "very big with everything" file I downloaded to install fpc x64 version...

I assume the install.sh script has put the sources somewhere on the disk, for example below /usr/local, but I am not Linux versed enough to know how to find the exact location.

Could someone here please tell me where?

Bo Berglund Developer in Sweden
Jonas Maebe
to Bo Berglund
Bo Berglund wrote
But I have no idea where the sources were placed by the "very big with everything" file I downloaded to install fpc x64 version...

It does not install the sources. You can download them separately from http://www.freepascal.org/download.var (in the "Source" section). It's no installer, just an archive that you can unpack anywhere.

Jonas

Bo Berglund
to Jonas Maebe
Jonas Maebe wrote 7 lines
On 08/12/15 18:04, Bo Berglund wrote: > But I have no idea where the sources were placed by the "very big with > everything" file I downloaded to install fpc x64 version... It does not install the sources. You can download them separately from http://www.freepascal.org/download.var (in the "Source" section). It's no installer, just an archive that you can unpack anywhere.

Thanks,
that was the last piece of the puzzle.
Lazarus 1.6RC1 is now working with fpc 3.0.0 in my Linux Mint 17.2 Cinnamon machine!

Bo Berglund Developer in Sweden