Recent

Author Topic: Problem with GDB Debian Linux 8  (Read 5358 times)

elidorio

  • Sr. Member
  • ****
  • Posts: 295
Problem with GDB Debian Linux 8
« on: April 27, 2015, 07:37:07 pm »
Help, GDB did not install on Debian 8. I'm running Debian 64 bit 8 and Lazarus 1.4.0 fpc 2.6.4
How to how to fix this problem?


--
Edson
Lazarus 1.4.4 | FPC 2.6.4 | Windows / Linux Debian

zeljko

  • Hero Member
  • *****
  • Posts: 1596
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Problem with GDB Debian Linux 8
« Reply #1 on: April 27, 2015, 07:42:16 pm »
Install gdb ?

elidorio

  • Sr. Member
  • ****
  • Posts: 295
Re: Problem with GDB Debian Linux 8
« Reply #2 on: April 27, 2015, 07:48:26 pm »

Downloaded the *.deb of Lazarus and did the installation.
Lazarus 1.4.4 | FPC 2.6.4 | Windows / Linux Debian

munair

  • Hero Member
  • *****
  • Posts: 798
  • compiler developer @SharpBASIC
    • SharpBASIC
Re: Problem with GDB Debian Linux 8
« Reply #3 on: April 27, 2015, 11:59:21 pm »
GDB should be in your Synaptic Package Manager. If you search there for GDB (GNU Debugger) it should show up in the list.
keep it simple

munair

  • Hero Member
  • *****
  • Posts: 798
  • compiler developer @SharpBASIC
    • SharpBASIC
Re: Problem with GDB Debian Linux 8
« Reply #4 on: April 28, 2015, 12:01:18 am »
Or fire up the terminal and enter:

sudo apt-get install gdb
keep it simple

Eugene Loza

  • Hero Member
  • *****
  • Posts: 674
    • My games in Pascal
Re: Problem with GDB Debian Linux 8
« Reply #5 on: April 28, 2015, 08:59:28 am »
I also didn't get gdb installed automatically by Lazarus 1.4RC3 debs + no dependency to apt-get install -f.
But installed it by apt-get install gdb and its fine.
My FOSS games in FreePascal&CastleGameEngine: https://decoherence.itch.io/ (Sources: https://gitlab.com/EugeneLoza)

munair

  • Hero Member
  • *****
  • Posts: 798
  • compiler developer @SharpBASIC
    • SharpBASIC
Re: Problem with GDB Debian Linux 8
« Reply #6 on: April 28, 2015, 11:05:34 am »
Lazarus cannot install GDB because the version is distro dependend. Therefore it is also not a dependency. A distro however may suggest a specific Lazarus version along with a specific GDB from its repository. Installing the latest Lazarus requires one to find out and do these things manually. That's Linux.
keep it simple

elidorio

  • Sr. Member
  • ****
  • Posts: 295
Re: Problem with GDB Debian Linux 8
« Reply #7 on: April 30, 2015, 02:53:38 am »

Problem solved, I executed the following command:
sudo apt-get install gdb
Lazarus 1.4.4 | FPC 2.6.4 | Windows / Linux Debian

Eugene Loza

  • Hero Member
  • *****
  • Posts: 674
    • My games in Pascal
Re: Problem with GDB Debian Linux 8
« Reply #8 on: April 30, 2015, 10:39:11 am »
Lazarus cannot install GDB because the version is distro dependend. Therefore it is also not a dependency. A distro however may suggest a specific Lazarus version along with a specific GDB from its repository. Installing the latest Lazarus requires one to find out and do these things manually. That's Linux.
As far as I remember it was 'true' for older Lazarus versions including the one from the repository - the gdb was in debs/dependencies. I.e. I have never had any "problem" (not a problem, actually, just a remark to new users) like this prior to 1.4. Maybe, it's the fact that I might have used the repository version first and then removed it and replaced with latest debs from sourceforge (but I'm not sure if I did anything like this always).
My FOSS games in FreePascal&CastleGameEngine: https://decoherence.itch.io/ (Sources: https://gitlab.com/EugeneLoza)

Signal

  • New Member
  • *
  • Posts: 41
Re: Problem with GDB Debian Linux 8
« Reply #9 on: April 30, 2015, 01:02:13 pm »

As far as I remember it was 'true' for older Lazarus versions including the one from the repository - the gdb was in debs/dependencies. I.e. I have never had any "problem" (not a problem, actually, just a remark to new users) like this prior to 1.4. Maybe, it's the fact that I might have used the repository version first and then removed it and replaced with latest debs from sourceforge (but I'm not sure if I did anything like this always).

Lazarus has no control over how Debian or any other distro packages the application and its dependencies. Some distros don't even consider FPC a dependency. Absurd, but true.

Debian in particular is famous (infamous ?) for breaking up applications into numerous small packages, while leaving out or making optional anything they feel violates their social contract policies.

 

TinyPortal © 2005-2018