Sign in Join

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

Mailing lists / lazarus / 2008-07

FPC 2.3.x and Lazarus

8 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Antonio Sanguigni

Hi all,

I know this issue is probably an fpc one but I hope someone can give me some hints to go on.

I have on my Arch Linux fpc 2.2.0 packaged one and svn lazarus snapshot. Now, I would like to have also a svn snapshot of fpc 2.3.x being able to compile it and install them in my arch box. Could you, please, give me any hints, about how to accomplish it ?

I read Programmer's guide and I was able to "compile the compiler" using fpc2.2.0 but now I would like to remove fpc2.2.0 and installing fpc 2.3.1 but I fear my distro can become "dirty"; I mean, I don't know if there is a make uninstall or which path it is using and how to change it, eventually, to point to /usr such as Arch Linux requires.

Any help ?

Thanks
Antonio

Antonio Sanguigni alias slapshot ---------------------------------------------------------------------- GioveLUG (Linux User Group) - http://www.giovelug.org Edupup (Educational distro) - http://edupup.pieroni.biz -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080711/860739b5/attachment.html

Reply by email

Mattias Gaertner
to Antonio Sanguigni
Show quoted text 16 lines
Hi all, I know this issue is probably an fpc one but I hope someone can give me some hints to go on. I have on my Arch Linux fpc 2.2.0 packaged one and svn lazarus snapshot. Now, I would like to have also a svn snapshot of fpc 2.3.x being able to compile it and install them in my arch box. Could you, please, give me any hints, about how to accomplish it ? I read Programmer's guide and I was able to "compile the compiler" using fpc2.2.0 but now I would like to remove fpc2.2.0 and installing fpc 2.3.1 but I fear my distro can become "dirty"; I mean, I don't know if there is a make uninstall or which path it is using and how to change it, eventually, to point to /usr such as Arch Linux requires.

There is no make uninstall.
But a 'make install' installs correctly even if an fpc is already there.

What distro do you use? There are many scripts to create your own distro packages.

Mattias

Reply by email

Antonio Sanguigni
to Mattias Gaertner

Hi Mattias,

There is no make uninstall.

But a 'make install' installs correctly even if an fpc is already there.

so may I have both compiler versions ? What about path clashes ?

What distro do you use? There are many scripts to create your own distro packages.

I'm using Arch Linux. I had a look at fpc 2.2.0 PKGBUILD, I should try to create one for 2.3.x .

Thanks
Antonio

Antonio Sanguigni alias slapshot ---------------------------------------------------------------------- GioveLUG (Linux User Group) - http://www.giovelug.org Edupup (Educational distro) - http://edupup.pieroni.biz -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080711/31d46a77/attachment.html

Reply by email

Mattias Gaertner
to Antonio Sanguigni
Show quoted text 8 lines
Hi Mattias, There is no make uninstall. > But a 'make install' installs correctly even if an fpc is already > there. > so may I have both compiler versions ? What about path clashes ?

The compile in the search path is only a symlink to the executable. Normally it is enough to change this symlink to switch the compiler under linux.
And/or in lazarus to change the paths in the environment options.

Show quoted text 7 lines
> > What distro do you use? There are many scripts to create your own > distro packages. > I'm using Arch Linux. I had a look at fpc 2.2.0 PKGBUILD, I should try to create one for 2.3.x .

I don't know the Arch Linux package system.

Mattias

Reply by email

Thierry Andriamirado
to Antonio Sanguigni: There is no make uninstall. so may I have both compiler versions ? What about path…

Le vendredi 11 juillet 2008 ? 15:27 +0000, Antonio Sanguigni a ?crit :

so may I have both compiler versions ? What about path clashes ?

I have 2 fpc & 2 lazarus installed on my Ubuntu box, and I have no particular problem.

fpc: once your svn update is finished, in, say /usr/local/src directory,
* 'make all'
* then 'make zipinstall'

note that I didn't do any system-wide install of the svn version of fpc. the zipinstall will create a big zipfile, for eg.
'fpc-2.3.1.x86_64-linux.tar.gz'.

* unzip the '/lib/fpc' directory to '/usr/local/lib/fpc'
* check that your '/etc/fpc.cfg' file contains something like:

# searchpath for units and other system dependent things -Fu/usr/local/lib/fpc/$fpcversion/units/$fpctarget -Fu/usr/local/lib/fpc/$fpcversion/units/$fpctarget/* -Fu/usr/local/lib/fpc/$fpcversion/units/$fpctarget/rtl

* Configure Lazarus accordingly, so it uses the svn fpc binary and so on..

You can find the multiple lazarus HowTo on
http://wiki.lazarus.freepascal.org/Multiple_Lazarus

I'm using Arch Linux. I had a look at fpc 2.2.0 PKGBUILD, I should try to create one for 2.3.x .

As I said, I mainly use Ubuntu & Debian, but it'd work..

Best,

Reply by email

Antonio Sanguigni
to Thierry Andriamirado

Hi Thierry,

Show quoted text 16 lines
I have 2 fpc & 2 lazarus installed on my Ubuntu box, and I have no particular problem. fpc: once your svn update is finished, in, say /usr/local/src directory, * 'make all' * then 'make zipinstall' note that I didn't do any system-wide install of the svn version of fpc. the zipinstall will create a big zipfile, for eg. 'fpc-2.3.1.x86_64-linux.tar.gz'. * unzip the '/lib/fpc' directory to '/usr/local/lib/fpc' * check that your '/etc/fpc.cfg' file contains something like: [cut]

thank you very much for the infos. I will try soon your solution that is pretty what I needed :-).

Antonio

Antonio Sanguigni alias slapshot ---------------------------------------------------------------------- GioveLUG (Linux User Group) - http://www.giovelug.org Edupup (Educational distro) - http://edupup.pieroni.biz -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080712/f97bfdd9/attachment.html

Reply by email

Marc Weustink
to Thierry Andriamirado: Le vendredi 11 juillet 2008 ? 15:27 +0000, Antonio Sanguigni a ?crit : I have 2 fpc & 2…
Thierry Andriamirado wrote 12 lines
Le vendredi 11 juillet 2008 ? 15:27 +0000, Antonio Sanguigni a ?crit : > so may I have both compiler versions ? What about path clashes ? I have 2 fpc & 2 lazarus installed on my Ubuntu box, and I have no particular problem. fpc: once your svn update is finished, in, say /usr/local/src directory, * 'make all' * then 'make zipinstall'

what you also can do instead of make zipinstall is
* make install PREFIX=/usr/local/lib/fpc

or as I do,
* make install PREFIX=~
this wat it installs the lib, bin dirs in my homedir.

Marc

Show quoted text 26 lines
note that I didn't do any system-wide install of the svn version of fpc. the zipinstall will create a big zipfile, for eg. 'fpc-2.3.1.x86_64-linux.tar.gz'. * unzip the '/lib/fpc' directory to '/usr/local/lib/fpc' * check that your '/etc/fpc.cfg' file contains something like: # searchpath for units and other system dependent things -Fu/usr/local/lib/fpc/$fpcversion/units/$fpctarget -Fu/usr/local/lib/fpc/$fpcversion/units/$fpctarget/* -Fu/usr/local/lib/fpc/$fpcversion/units/$fpctarget/rtl * Configure Lazarus accordingly, so it uses the svn fpc binary and so on.. You can find the multiple lazarus HowTo on http://wiki.lazarus.freepascal.org/Multiple_Lazarus > I'm using Arch Linux. I had a look at fpc 2.2.0 PKGBUILD, I should try > to create one for 2.3.x . As I said, I mainly use Ubuntu & Debian, but it'd work.. Best,

Reply by email

Marc Weustink
to Marc Weustink
Marc Weustink wrote 19 lines
Thierry Andriamirado wrote: > Le vendredi 11 juillet 2008 ? 15:27 +0000, Antonio Sanguigni a ?crit : > > >> so may I have both compiler versions ? What about path clashes ? > I have 2 fpc & 2 lazarus installed on my Ubuntu box, and I have no > particular problem. > > fpc: once your svn update is finished, in, say /usr/local/src > directory, > * 'make all' > * then 'make zipinstall' what you also can do instead of make zipinstall is * make install PREFIX=/usr/local/lib/fpc or as I do, * make install PREFIX=~ this wat it installs the lib, bin dirs in my homedir.

oops forgot one thing. When installed this way, the version of fpc is retrieved form the existing *installed* fpc. To tell make to use the new ppc use:
* make install PREFIX=/usr/local/lib/fpc
PP=/usr/local/src/fpc/compiler/ppc386

Marc

Show quoted text 32 lines
> note that I didn't do any system-wide install of the svn version of fpc. > the zipinstall will create a big zipfile, for eg. > 'fpc-2.3.1.x86_64-linux.tar.gz'. > > * unzip the '/lib/fpc' directory to '/usr/local/lib/fpc' > * check that your '/etc/fpc.cfg' file contains something like: > > # searchpath for units and other system dependent things > -Fu/usr/local/lib/fpc/$fpcversion/units/$fpctarget > -Fu/usr/local/lib/fpc/$fpcversion/units/$fpctarget/* > -Fu/usr/local/lib/fpc/$fpcversion/units/$fpctarget/rtl > > * Configure Lazarus accordingly, so it uses the svn fpc binary and so > on.. > > You can find the multiple lazarus HowTo on > http://wiki.lazarus.freepascal.org/Multiple_Lazarus > >> I'm using Arch Linux. I had a look at fpc 2.2.0 PKGBUILD, I should try >> to create one for 2.3.x . > As I said, I mainly use Ubuntu & Debian, but it'd work.. > > Best, > _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email