3

I develop in Haskell privatly, but for school I have to use Delphi (I am allowed to use Lazarus though). To speed up linking in GHC (The compiler for Haskell) I installed binutilus-gold. But now, when I try to install lazarus, I get a conflicting package: binutils-gold. Does anybody knows, how to install both at the same time?

Thomas Ward
  • 72,494
  • 30
  • 173
  • 237
FUZxxl
  • 1,483
  • 3
  • 17
  • 27

2 Answers2

2

Unfortunately we have that:

  • lazarus depends on lazarus-ide
  • lazarus-ide depends on fp-compiler
  • fp-compiler conflicts with binutils-gold

so I suggest to remove binutils-gold and stay with binutils.

enzotib
  • 92,255
  • 11
  • 164
  • 178
  • Thank you, but I already know that this is an option. I rather want to know, how I could keep both packages. – FUZxxl Aug 16 '11 at 16:00
  • I do not think there are other options if you would to stay in the same environment, without hacking the package manager. Separating the environments, for example with a chroot, it is possible, but that is probably overkill. – enzotib Aug 16 '11 at 16:11
  • I wonder whether it is possible to use something like `update-alternatives` to symlink `ld` to the standard `ld` while keeping gold as `ld.gold` or something. i wonder whether it would be safe to knock out the conflict then. – FUZxxl Aug 16 '11 at 17:23
  • @FUZxxl: if the package mantainers have established they conflict there should be serious arguments. I would not try and break an installation for that, but you're free to experiment. – enzotib Aug 16 '11 at 17:47
0

I don't know much about Ubuntu package policies, but the search for "ld" of Free Pascal can be overriden using the -XP parameter.

The -XP parameter specifies a prefix that prefixes all calls to binutils with this prefix, and can be added to FPC's fpc.cfg to make it a default.

If you want to have the gold utils default, just create symlinks to say binutils-ld binutils-as binutils-ar etc somewhere in the $PATH and add

-XPbinutils-  

on an empty line to /etc/fpc.cfg (some debian and ubuntu versions have a /etc/fpc.d hierarchy for FPC configs)