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

classic Classic list List threaded Threaded
24 messages Options
12
Reply | Threaded
Open this post in threaded view
|

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

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

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

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

Bo Berglund
On Mon, 07 Dec 2015 20:10:22 +0100, Bo Berglund
<[hidden email]> 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

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

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

Sven Barth-2

Am 07.12.2015 20:18 schrieb "Bo Berglund" <[hidden email]>:
>
> On Mon, 07 Dec 2015 20:10:22 +0100, Bo Berglund
> <[hidden email]> 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


_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

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

Michael Van Canneyt
In reply to this post by Bo Berglund


On Mon, 7 Dec 2015, Bo Berglund wrote:

> 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.
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

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

Bo Berglund
On Mon, 7 Dec 2015 20:27:12 +0100 (CET), Michael Van Canneyt
<[hidden email]> 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...

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


--
Bo Berglund
Developer in Sweden

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

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

Mattias Gaertner
On Mon, 07 Dec 2015 21:52:35 +0100
Bo Berglund <[hidden email]> wrote:

> On Mon, 7 Dec 2015 20:27:12 +0100 (CET), Michael Van Canneyt
> <[hidden email]> 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
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

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

Graeme Geldenhuys-6
In reply to this post by Michael Van Canneyt
On 2015-12-07 19:27, 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
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

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

Graeme Geldenhuys-6
In reply to this post by Bo Berglund
On 2015-12-07 20:52, 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
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

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

Michael Van Canneyt
In reply to this post by Bo Berglund


On Mon, 7 Dec 2015, Bo Berglund wrote:

> On Mon, 7 Dec 2015 20:27:12 +0100 (CET), Michael Van Canneyt
> <[hidden email]> 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.
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

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

Bo Berglund
In reply to this post by Mattias Gaertner
On Mon, 7 Dec 2015 22:16:26 +0100, Mattias Gaertner
<[hidden email]> 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

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

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

Mattias Gaertner
On Mon, 07 Dec 2015 23:15:50 +0100
Bo Berglund <[hidden email]> wrote:

> On Mon, 7 Dec 2015 22:16:26 +0100, Mattias Gaertner
> <[hidden email]> 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
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

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

Jonas Maebe-2
In reply to this post by Michael Van Canneyt
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.


Jonas
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

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

Bo Berglund
In reply to this post by Mattias Gaertner
On Mon, 7 Dec 2015 23:35:05 +0100, Mattias Gaertner
<[hidden email]> 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.


--
Bo Berglund
Developer in Sweden

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

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

Bo Berglund
On Mon, 07 Dec 2015 23:47:36 +0100, Bo Berglund
<[hidden email]> wrote:

>On Mon, 7 Dec 2015 23:35:05 +0100, Mattias Gaertner
><[hidden email]> 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

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

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

Mattias Gaertner
In reply to this post by Jonas Maebe-2
On Mon, 07 Dec 2015 23:36:17 +0100
Jonas Maebe <[hidden email]> wrote:

> 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
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

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

Mattias Gaertner
In reply to this post by Bo Berglund
On Mon, 07 Dec 2015 23:47:36 +0100
Bo Berglund <[hidden email]> wrote:

>[...]
> >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....

Debian is great at splitting packages into smaller packages.

Does Lazarus link with those packages?

Mattias
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

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

Mattias Gaertner
In reply to this post by Bo Berglund
On Mon, 07 Dec 2015 23:56:56 +0100
Bo Berglund <[hidden email]> 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.

Mattias
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

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

Anthony Walter-3

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

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

Mattias Gaertner
In reply to this post by Mattias Gaertner
On Tue, 8 Dec 2015 00:21:28 +0100
Mattias Gaertner <[hidden email]> wrote:

> On Mon, 07 Dec 2015 23:56:56 +0100
> Bo Berglund <[hidden email]> 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
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

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

Bo Berglund
In reply to this post by Mattias Gaertner
On Tue, 8 Dec 2015 00:21:28 +0100, Mattias Gaertner
<[hidden email]> 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

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
12