Recent

Author Topic: install fpc 3.0.0 on ubuntu 16.04  (Read 5342 times)

tintinux

  • Sr. Member
  • ****
  • Posts: 325
    • Gestinux
install fpc 3.0.0 on ubuntu 16.04
« on: September 09, 2017, 03:01:47 pm »
Hi

I need to install in Ubuntu 16.04 : fpc 3.0.0 and Lazarus 1.6.0, to rebuid an application.

I know that it is not the most recent release, but there are some issues with the latest versions, and the application was even not fully tested with them,  but I do need to build it.

I'm using a new machine and nothing about fpc or lazarus was previously installed.

I have downloaded  fpc_3.0.0-151205_amd64.deb from source forge, and when I install it, I get :

Code: Pascal  [Select][+][-]
  1. Preparing to unpack .../fpc_3.0.0-151205_amd64.deb ...
  2. Unpacking fpc (3.0.0) ...
  3. dpkg: error processing archive ......./fpc_3.0.0-151205_amd64.deb (--install):
  4.  trying to overwrite '/usr/lib/fpc/3.0.0/samplecfg', which is also in package fp-compiler-3.0.0 3.0.0+dfsg-2
  5. dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)

I do not understand what happens...  even after this message,  there is no /usr/lib/fpc directory.

Any idea ? Thanks !




Initiator of gestinux, open-source, multi-database and multilingual accounting and billing software made with LAZARUS.

You can help to develop, to make and improve translations, and to provide examples of legal charts and reports from more countries.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11445
  • FPC developer.
Re: install fpc 3.0.0 on ubuntu 16.04
« Reply #1 on: September 09, 2017, 03:08:38 pm »
Are you installing as root, or as local user?  a $PREFIX/fpc directory is normal for global (as root) installs.

Also it seems you already have a FPC installed (    3.0.0+dfsg-2)

tintinux

  • Sr. Member
  • ****
  • Posts: 325
    • Gestinux
Re: install fpc 3.0.0 on ubuntu 16.04
« Reply #2 on: September 09, 2017, 03:47:39 pm »
Thanks for your reply;

Yes, I'm installing as root. I run the .deb and synaptic asks for the root password.
I have done this many times, successfully, when it was the stable version and not existing in the Ubuntu repository.

I have only a message saying this is not the latest version (see below), and I acknowledge..

I do not understand what you mean by : a $PREFIX/fpc directory is normal for global (as root) installs.

I have checked that fpc and lazarus checkboxes are unchecked in synaptic, and as I said there is no /usr/lib/fpc directory before the installation attempt, and not more afterwards.  There is also no /usr/share/fpc or /usr/bin/fpc.

After this attempt, I tried also to install fpc and lazarus from Ubuntu 16.04 software repository, since it seems to be the release I need (same version, although said as more recent...).
The install is done without error.
A at the first run, Lazarus says that it don't find fpc.
I select  /usr/bin/fpc which exists now.
But then I have after that always the error message :

Code: Pascal  [Select][+][-]
  1. There is no Free Pascal Compiler (e.g. fpc or ppc<cpu>) configured in the environment options. Codetools will not work properly.
  2. Project's compiler: "/usr/bin/fpc-3.0.0": unknown file name
  3. Environment compiler: "/usr/bin/fpc-3.0.0": unknown file name

Code: Pascal  [Select][+][-]
  1. $ ls -l /usr/bin/fpc*
  2. lrwxrwxrwx 1 root root      21 sept.  3 18:28 /usr/bin/fpc -> /etc/alternatives/fpc
  3. -rwxr-xr-x 1 root root  430504 janv. 30  2016 /usr/bin/fpc-3.0.0
  4. lrwxrwxrwx 1 root root      29 sept.  3 18:28 /usr/bin/fpc-depends -> /etc/alternatives/fpc-depends
  5. -rwxr-xr-x 1 root root    1602 janv. 30  2016 /usr/bin/fpc-depends-3.0.0
  6. -rwxr-xr-x 1 root root  909968 janv. 30  2016 /usr/bin/fpcjres-3.0.0
  7. lrwxrwxrwx 1 root root      30 sept.  9 15:18 /usr/bin/fpclasschart -> /etc/alternatives/fpclasschart
  8. -rwxr-xr-x 1 root root 1173008 janv. 30  2016 /usr/bin/fpclasschart-3.0.0
  9. lrwxrwxrwx 1 root root      25 sept.  9 15:18 /usr/bin/fpcmake -> /etc/alternatives/fpcmake
  10. -rwxr-xr-x 1 root root  863984 janv. 30  2016 /usr/bin/fpcmake-3.0.0
  11. -rwxr-xr-x 1 root root 1101160 janv. 30  2016 /usr/bin/fpcmkcfg-3.0.0
  12. lrwxrwxrwx 1 root root      24 sept.  3 18:28 /usr/bin/fpcres -> /etc/alternatives/fpcres
  13. -rwxr-xr-x 1 root root  917536 janv. 30  2016 /usr/bin/fpcres-3.0.0
  14. lrwxrwxrwx 1 root root      26 sept.  9 15:18 /usr/bin/fpcsubst -> /etc/alternatives/fpcsubst
  15. -rwxr-xr-x 1 root root  713600 janv. 30  2016 /usr/bin/fpcsubst-3.0.0

so, fpc is there  (although I don't understand the reason of the link to /etc/alternatives), but however, I can't run it :

Code: Pascal  [Select][+][-]
  1. $ /etc/alternatives/fpc
  2. Error: ppcx64 can't be executed, error message: Failed to execute "ppcx64", error code: 127

Same with sudo.

Thanks for you help !
 



Initiator of gestinux, open-source, multi-database and multilingual accounting and billing software made with LAZARUS.

You can help to develop, to make and improve translations, and to provide examples of legal charts and reports from more countries.

Thaddy

  • Hero Member
  • *****
  • Posts: 14359
  • Sensorship about opinions does not belong here.
Re: install fpc 3.0.0 on ubuntu 16.04
« Reply #3 on: September 09, 2017, 04:42:17 pm »
the binary should end up in /usr/local/lib/fpc/3.0.4  and needs a symlink to /usr/local/bin
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

tintinux

  • Sr. Member
  • ****
  • Posts: 325
    • Gestinux
Re: install fpc 3.0.0 on ubuntu 16.04
« Reply #4 on: September 09, 2017, 04:48:39 pm »
Hi

3.0.4, are you sure ?  I'm trying to install 3.0.0.

However, there is nothing related to fpc in /usr/local after the two attempts (from the sourceforge deb, and from Ubuntu repository).

Regards
Initiator of gestinux, open-source, multi-database and multilingual accounting and billing software made with LAZARUS.

You can help to develop, to make and improve translations, and to provide examples of legal charts and reports from more countries.

Thaddy

  • Hero Member
  • *****
  • Posts: 14359
  • Sensorship about opinions does not belong here.
Re: install fpc 3.0.0 on ubuntu 16.04
« Reply #5 on: September 10, 2017, 09:07:05 am »
Hi

3.0.4, are you sure ?  I'm trying to install 3.0.0.

However, there is nothing related to fpc in /usr/local after the two attempts (from the sourceforge deb, and from Ubuntu repository).

Regards

full path is either
/usr/local/lib/fpc/3.0.0/ppcarm (ppcarm binary)
or
/usr/lib/fpc/3.0.0/ppcarm (ppcarm binary)

Use either one that is there and create a symlink to it in either /usr/local/bin/ppcarm or /usr/bin/ppcarm (sudo ln -sf )

Do the same with the fpc binary
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

 

TinyPortal © 2005-2018