Recent

Author Topic: Lazarus not installing on Ubuntu  (Read 12272 times)

gga96

  • New member
  • *
  • Posts: 8
Lazarus not installing on Ubuntu
« on: January 30, 2016, 06:13:21 am »
I am moving from Window to Ubuntu and have been trying to install Lazarus.

The default installation on Lazarus is 1.0.10 but I have been using 1.4.4 and FPC 2.6.4 on Windows.
For the last 3 days I have been following online advise and failed on all attempts to install Lazarus 1.4.4 + 2.6.4 on Ubuntu 14.04 64 bit.
 
I downloaded the following files from your web site:
    Totals: 4 Items                 140.1 MB        1,249     
    lazarus_1.4.4-0_amd64.deb                2015-10-04        83.6 MB     586586 weekly downloads     i
    fpc-src_2.6.4-150228_amd64.deb        2015-10-04        17.9 MB     294294 weekly downloads     i
    fpc_2.6.4-150228_amd64.deb        2015-10-04        38.6 MB     299299 weekly downloads     i
    README.txt                             2015-10-04        704 Bytes  7070 weekly downloads         i

The results of trying to install follow:
    glen@backend1:~$ sudo dpkg -i /home/glen/Downloads/fpc-src_2.6.4-150228_amd64.deb
    [sudo] password for glen:
    (Reading database ... 290436 files and directories currently installed.)
    Preparing to unpack .../fpc-src_2.6.4-150228_amd64.deb ...
    Unpacking fpc-src (2.6.4) over (2.6.4) ...
    Setting up fpc-src (2.6.4) ...
    glen@backend1:~$ sudo dpkg -i /home/glen/Downloads/fpc_2.6.4-150228_amd64.deb
    dpkg: warning: downgrading fpc from 2.6.4+cqr-1~trusty to 2.6.4
    (Reading database ... 290436 files and directories currently installed.)
    Preparing to unpack .../fpc_2.6.4-150228_amd64.deb ...
    Unpacking fpc (2.6.4) over (2.6.4+cqr-1~trusty) ...
    dpkg: error processing archive /home/glen/Downloads/fpc_2.6.4-150228_amd64.deb (--install):
     trying to overwrite '/usr/lib/fpc/2.6.4/units/x86_64-linux/cairo/libpcairo.a', which is also in package
    fp-units-gfx-2.6.4 2.6.4+cqr-1~trusty
    dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
    Errors were encountered while processing:
     /home/glen/Downloads/fpc_2.6.4-150228_amd64.deb

Being new to Ubuntu I do not know how to correct the error!
I have just read "Installing .deb packages on Ubuntu" but I do not think it applies.

Could you please help to get Lazarus up and running?

Regards
Glen

Leledumbo

  • Hero Member
  • *****
  • Posts: 8836
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Lazarus not installing on Ubuntu
« Reply #1 on: January 30, 2016, 09:06:41 pm »
Uninstall everything you install from ubuntu repository. They have splitted runtime packages while the one from here is a single all-in-one package.

JD

  • Hero Member
  • *****
  • Posts: 1913
Re: Lazarus not installing on Ubuntu
« Reply #2 on: January 30, 2016, 11:15:06 pm »
Like Leledumbo said, uninstall everything you installed from the Ubuntu repositories. Then

a) copy all the deb files you downloaded from the Lazarus website into a temporary directory
b) open the directory in a terminal & then
c) type & run the command sudo dpkg -i *.deb at the terminal prompt

It will install the packages you downloaded. That's all you need to do.

JD
« Last Edit: January 30, 2016, 11:17:45 pm by JD »
Linux Mint - Lazarus 4.6/FPC 3.2.2,
Windows - Lazarus 4.6/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

gga96

  • New member
  • *
  • Posts: 8
Re: Lazarus not installing on Ubuntu
« Reply #3 on: January 30, 2016, 11:59:15 pm »
Thank you both.

I have used Ubuntu Software Center to remove FPC and Lazarus.

I don't know what else I can do to purge the system of previous attempts

I tied again to install this time using sudo dpkg -i *.deb the terminal output follows:
Quote
glen@backend1:~/Downloads$ sudo dpkg -i *.deb
(Reading database ... 289633 files and directories currently installed.)
Preparing to unpack fpc_2.6.4-150228_amd64.deb ...
Unpacking fpc (2.6.4) ...
dpkg: error processing archive fpc_2.6.4-150228_amd64.deb (--install):
 trying to overwrite '/usr/lib/fpc/2.6.4/units/x86_64-linux/cairo/libpcairo.a', which is also in package fp-units-gfx-2.6.4 2.6.4+cqr-1~trusty
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack fpc-src_2.6.4-150228_amd64.deb ...
Unpacking fpc-src (2.6.4) over (2.6.4) ...
Selecting previously unselected package lazarus.
Preparing to unpack lazarus_1.4.4-0_amd64.deb ...
Unpacking lazarus (1.4.4) ...
Setting up fpc-src (2.6.4) ...
dpkg: dependency problems prevent configuration of lazarus:
 lazarus depends on fpc (>= 2.6.4) | fp-compiler (>= 2.6.4); however:
  Package fpc is not installed.
  Package fp-compiler is not installed.
 lazarus depends on fpc (>= 2.6.4) | fp-ide (>= 2.6.4); however:
  Package fpc is not installed.
  Package fp-ide is not installed.
 lazarus depends on fpc (>= 2.6.4) | fp-units-base (>= 2.6.4); however:
  Package fpc is not installed.
  Package fp-units-base is not installed.
 lazarus depends on fpc (>= 2.6.4) | fp-units-db (>= 2.6.4); however:
  Package fpc is not installed.
  Package fp-units-db is not installed.
 lazarus depends on fpc (>= 2.6.4) | fp-units-fv (>= 2.6.4); however:
  Package fpc is not installed.
  Package fp-units-fv is not installed.
 lazarus depends on fpc (>= 2.6.4) | fp-units-gfx (>= 2.6.4); however:
  Package fpc is not installed.
  Package fp-units-gfx is not installed.
 lazarus depends on fpc (>= 2.6.4) | fp-units-gnome1 (>= 2.6.4); however:
  Package fpc is not installed.
  Package fp-un
dpkg: error processing package lazarus (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'
Errors were encountered while processing:
 fpc_2.6.4-150228_amd64.deb
 lazarus
glen@backend1:~/Downloads$

What can I do now?

Glen

Leledumbo

  • Hero Member
  • *****
  • Posts: 8836
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Lazarus not installing on Ubuntu
« Reply #4 on: January 31, 2016, 07:08:04 am »
Don't uninstall from Ubuntu Software Center as it may only uninstall top level package (or with some other dependant packages but surely it's not clean enough since at least fp-units-gfx is still installed). Use dpkg -l from terminal to see which fp-units-* are still installed and uninstall them using dpkg -P.

gga96

  • New member
  • *
  • Posts: 8
Re: Lazarus not installing on Ubuntu
« Reply #5 on: February 01, 2016, 01:50:04 am »
Thanks Leledumbo I have used your advice and am now at:
Quote
glen@backend1:~$ dpkg -l fp-units-*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
un  fp-units-rtl   <none>       <none>       (no description available)
pi  fp-units-rtl-2 2.6.4+cqr-1~ amd64        Free Pascal - runtime libraries
Quote
I then tried to purge:
Quote
glen@backend1:~$ sudo dpkg -P fp-units-rtl-2.6.4
[sudo] password for glen:
dpkg: dependency problems prevent removal of fp-units-rtl-2.6.4:
 fp-compiler-2.6.4 depends on fp-units-rtl-2.6.4 (= 2.6.4+cqr-1~trusty).

dpkg: error processing package fp-units-rtl-2.6.4 (--purge):
 dependency problems - not removing
Errors were encountered while processing:
 fp-units-rtl-2.6.4
Quote
I never seem to clear the decks to achieve a clean install.
I am a novice with Linux not a systems engineer so I cannot debug the errors.
I appear to be going round in circles because the install always fails at the first package:
Quote
glen@backend1:~$ sudo dpkg -i /home/glen/Downloads/*.deb
(Reading database ... 284971 files and directories currently installed.)
Preparing to unpack .../fpc_2.6.4-150228_amd64.deb ...
Unpacking fpc (2.6.4) ...
dpkg: error processing archive /home/glen/Downloads/fpc_2.6.4-150228_amd64.deb (--install):
 trying to overwrite '/usr/lib/fpc/2.6.4/units/x86_64-linux/rtl/cmem.o', which is also in package fp-units-rtl-2.6.4 2.6.4+cqr-1~trusty
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Quote
The other two packages follow:
Quote
Preparing to unpack .../fpc-src_2.6.4-150228_amd64.deb ...
Unpacking fpc-src (2.6.4) over (2.6.4) ...
Selecting previously unselected package lazarus.
Preparing to unpack .../lazarus_1.4.4-0_amd64.deb ...
Unpacking lazarus (1.4.4) ...
Setting up fpc-src (2.6.4) ...
dpkg: dependency problems prevent configuration of lazarus:
 lazarus depends on fpc (>= 2.6.4) | fp-compiler (>= 2.6.4); however:
  Package fpc is not installed.
  Package fp-compiler is not installed.
 lazarus depends on fpc (>= 2.6.4) | fp-ide (>= 2.6.4); however:
  Package fpc is not installed.
  Package fp-ide is not installed.
 lazarus depends on fpc (>= 2.6.4) | fp-units-base (>= 2.6.4); however:
  Package fpc is not installed.
  Package fp-units-base is not installed.
 lazarus depends on fpc (>= 2.6.4) | fp-units-db (>= 2.6.4); however:
  Package fpc is not installed.
  Package fp-units-db is not installed.
 lazarus depends on fpc (>= 2.6.4) | fp-units-fcl (>= 2.6.4); however:
  Package fpc is not installed.
  Package fp-units-fcl is not installed.
 lazarus depends on fpc (>= 2.6.4) | fp-units-fv (>= 2.6.4); however:
  Package fpc is not installed.
  Package fp-units-fv is not installed.
 lazarus depends on fpc (>= 2.6.4) | fp-units-gfx (>= 2.6.4); however:
  Package fpc is not installed.
  Package fp-units
dpkg: error processing package lazarus (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'
Errors were encountered while processing:
 /home/glen/Downloads/fpc_2.6.4-150228_amd64.deb
 lazarus
glen@backend1:~$

Hope this will help you diagnose my problems.

Glen

Leledumbo

  • Hero Member
  • *****
  • Posts: 8836
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Lazarus not installing on Ubuntu
« Reply #6 on: February 01, 2016, 07:15:23 am »
dpkg: dependency problems prevent removal of fp-units-rtl-2.6.4:
 fp-compiler-2.6.4 depends on fp-units-rtl-2.6.4 (= 2.6.4+cqr-1~trusty).
You still have fp-compiler installed (and probably some other fp, too). I don't use Ubuntu so please figure these out yourself (it's only fpc and fpc-src on Arch based systems). Don't attempt to do dpkg -i if the purging fails, make that succeed first.

gga96

  • New member
  • *
  • Posts: 8
Re: Lazarus not installing on Ubuntu
« Reply #7 on: February 02, 2016, 03:45:18 am »
Thanks for your help Leledumbo sorry you cannot work with Ubuntu.

Does a Ubuntu person know how to remove the fp compiler that will not purge (see previous posts)?

Quote
glen@backend1:~$ dpkg -l fp-units-*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
un  fp-units-rtl   <none>       <none>       (no description available)
pi  fp-units-rtl-2 2.6.4+cqr-1~ amd64        Free Pascal - runtime libraries

I cannot install deb files until fp-units-rtl-2 is purged.

Glen

gga96

  • New member
  • *
  • Posts: 8
Re: Lazarus not installing on Ubuntu
« Reply #8 on: February 02, 2016, 07:56:27 am »
Some progress has been made, I managed to purge the system and have attempted the install.

The install went like this :
Quote
glen@backend1:~$ sudo dpkg -i /home/glen/Downloads/*.deb
(Reading database ... 297157 files and directories currently installed.)
Preparing to unpack .../fpc_2.6.4-150228_amd64.deb ...
Unpacking fpc (2.6.4) ...
Preparing to unpack .../fpc-src_2.6.4-150228_amd64.deb ...
Unpacking fpc-src (2.6.4) over (2.6.4) ...
Preparing to unpack .../lazarus_1.4.4-0_amd64.deb ...
Unpacking lazarus (1.4.4) over (1.4.4) ...
Setting up fpc (2.6.4) ...
Running on linux
Write permission in /etc.
Writing sample configuration file to /etc/fpc.cfg
Saved old "fpc.cfg" to "fpc.bak"
Writing sample configuration file to /usr/lib/fpc/2.6.4/ide/text/fp.cfg
Saved old "fp.cfg" to "fp.bak"
Writing sample configuration file to /usr/lib/fpc/2.6.4/ide/text/fp.ini
Saved old "fp.ini" to "fp.bak"
Writing sample configuration file to /etc/fppkg.cfg
Saved old "fppkg.cfg" to "fppkg.bak"
Writing sample configuration file to /etc/fppkg/default
Saved old "default" to "default.bak"
Setting up fpc-src (2.6.4) ...
Setting up lazarus (1.4.4) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'
I am not aware of any serious errors this time.

I then run Lazarus by using the menu Applications>Development>Lazarus the Configure Lazarus IDE dialog appeared.

The Lazarus tab warned it could not find directory /use/lib/lazarus/1.4.4 I looked around and found /usr/share/lazarus/1.4.4, when I entered that into the dialog it responded "Warning: directory ideintf not found".

I stopped at this point to avoid corruption.

What do I do to fix the problem?

Glen

bee

  • Sr. Member
  • ****
  • Posts: 393
Re: Lazarus not installing on Ubuntu
« Reply #9 on: February 02, 2016, 08:45:55 am »
I'm also using Lazarus 1.6 RC2 with FPC 3.0 on Ubuntu 14.04 64 bit. The installation is pretty simple. Here's my steps:

1. Download all the .deb files for your platform from here: http://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%201.6RC2/

2. Once you got all the .deb files, install them in this order:
Code: Bash  [Select][+][-]
  1. $ sudo dpkg -i fpc-src_…_amd64.deb
  2. $ sudo dpkg -i fpc_…_amd64.deb
  3. $ sudo dpkg -i lazarus_…_amd64.deb
replace the … with the correct version string.

3. Run this command to satisfy the dependencies:
Code: Bash  [Select][+][-]
  1. $ sudo apt-get -f install

After the installation finishes, open the unity and search for Lazarus. Click to run it.

Good luck! :)
-Bee-

A long time pascal lover.

ttomas

  • Sr. Member
  • ****
  • Posts: 250
Re: Lazarus not installing on Ubuntu
« Reply #10 on: February 02, 2016, 09:53:11 am »
Blaise Pascal Magazine #48
Instaling Lazarus on Linux Mint
Mint is Ubuntu fork. good luck

gga96

  • New member
  • *
  • Posts: 8
Re: Lazarus not installing on Ubuntu
« Reply #11 on: February 02, 2016, 11:45:26 am »
Thanks to ttomas and bee.

I used synaptic to remove Lazarus 1.4.4
Downloaded Lazarus 1.6rc2 and installed as bee instructed.
The install looks OK to me,  here is the output:
Quote
glen@backend1:~/Downloads$ sudo dpkg -i fpc-src_3.0.0-151205_amd64.deb
[sudo] password for glen:
Sorry, try again.
[sudo] password for glen:
Selecting previously unselected package fpc-src.
(Reading database ... 270173 files and directories currently installed.)
Preparing to unpack fpc-src_3.0.0-151205_amd64.deb ...
Unpacking fpc-src (3.0.0) ...
Setting up fpc-src (3.0.0) ...
glen@backend1:~/Downloads$ sudo dpkg -i fpc_3.0.0-151205_amd64.deb
Selecting previously unselected package fpc.
(Reading database ... 287041 files and directories currently installed.)
Preparing to unpack fpc_3.0.0-151205_amd64.deb ...
Unpacking fpc (3.0.0) ...
Setting up fpc (3.0.0) ...
Running on linux
Write permission in /etc.
Writing sample configuration file to /etc/fpc.cfg
Saved old "fpc.cfg" to "fpc.bak"
Writing sample configuration file to /usr/lib/fpc/3.0.0/ide/text/fp.cfg
Writing sample configuration file to /usr/lib/fpc/3.0.0/ide/text/fp.ini
Writing sample configuration file to /etc/fppkg.cfg
Saved old "fppkg.cfg" to "fppkg.bak"
Writing sample configuration file to /etc/fppkg/default
Saved old "default" to "default.bak"
glen@backend1:~/Downloads$ sudo dpkg -i lazarus_1.6RC2-0_amd64.deb
Selecting previously unselected package lazarus.
(Reading database ... 289783 files and directories currently installed.)
Preparing to unpack lazarus_1.6RC2-0_amd64.deb ...
Unpacking lazarus (1.6RC2) ...
Setting up lazarus (1.6RC2) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'
glen@backend1:~/Downloads$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
glen@backend1:~/Downloads$
I did not understand "open the unity and search for Lazarus. Click to run it" I used the Applications menu on my 14.04 system.

When I started Lazarus the same things happened.
It expects to find data in /usr/lib/lazarus and when I enter /usr/share/lazarus/1.6RC2 it gives the warning "directory ideintf not found"

The names are different but the errors are the same!

Cheers
Glen

Leledumbo

  • Hero Member
  • *****
  • Posts: 8836
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Lazarus not installing on Ubuntu
« Reply #12 on: February 02, 2016, 12:01:20 pm »
Search where lazarus is actually installed (see from `dpkg-query -L lazarus` output), that's where it should point to. The IDE has heuristic but this can of course fail because every distro may put it in different directories depending on the package management policy.

bee

  • Sr. Member
  • ****
  • Posts: 393
Re: Lazarus not installing on Ubuntu
« Reply #13 on: February 02, 2016, 12:05:28 pm »
I did not understand "open the unity and search for Lazarus. Click to run it" I used the Applications menu on my 14.04 system.
I thought Unity is the default Ubuntu desktop shell today. How could you don't know about it? Using the old Applications menu isn't even available by default, you have to install it from a third party repo.

When I started Lazarus the same things happened.
It expects to find data in /usr/lib/lazarus and when I enter /usr/share/lazarus/1.6RC2 it gives the warning "directory ideintf not found"
I think your system has been cluttered by many junk files and configs from previous failed installations. I installed FPC/Lazarus on a fresh Ubuntu 14.04 system, and my steps worked so smooth without any errors. :)
-Bee-

A long time pascal lover.

gga96

  • New member
  • *
  • Posts: 8
Re: Lazarus not installing on Ubuntu
« Reply #14 on: February 02, 2016, 01:15:40 pm »
Thanks Leledumbo the output is 904 kB, the common root director is  /usr/share/lazarus/1.6RC2/  the 'ideintf' only appears as a subdirectory 'components/ideintf/'.
Any other sugession?

Regards
Glen

P.S.
bee I installed MythTV in 2013 it installed clean out of the box and the system has runs non stop since. It is only now after 20+ years of Delphi that I am looking at Linux as an alternative to Windows.

 

TinyPortal © 2005-2018