[Tiptoi] tttool-build unter macOS

Hendrik Fuß hendrik.fuss at gmail.com
Mi Jan 2 13:02:06 CET 2019



> Am 02.01.2019 um 12:52 schrieb Joachim Breitner <mail at joachim-breitner.de>:
> 
>> 3. Der Build-Prozess scheitert, wenn man cabal nicht zusätzlich mit der Option —allow-newer startet:
>> 
>> 	$ cabal install —only-dependencies —allow-newer
>> 	$ cabal install —allow-newer —bindir=.
>> 
>> Ansonsten lehnt cabal so ziemlich alle von tttool abhängigen Pakete ab. Gibt es dieses Problem nur unter macOS?
> 
> hast du vielleicht eine neue Version of GHC? GHC-8.6 wird noch nicht
> unterstützt: https://github.com/entropia/tip-toi-reveng/issues/198

Nein, es ist 8.4.4. Habe ghc gerade frisch mit Homebrew installiert:

	$ ghc --version
	The Glorious Glasgow Haskell Compilation System, version 8.4.4

	$ cabal --version
	cabal-install version 2.4.1.0
	compiled using version 2.4.1.0 of the Cabal library 

Wie gesagt, mir fehlt das Basiswissen zu Haskell, sodass ich hier nicht weiter diagnostizieren kann.

Hier die gesamte Ausgabe:

$ cabal install
Warning: The install command is a part of the legacy v1 style of cabal usage.

Please switch to using either the new project style and the new-install
command or the legacy v1-install alias as new-style projects will become the
default in the next version of cabal-install. Please file a bug if you cannot
replicate a working v1- use case with the new-style commands.

For more information, see: https://wiki.haskell.org/Cabal/NewBuild

clang: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: tttool-1.8 (user goal)
[__1] next goal: base (dependency of tttool)
[__1] rejecting: base-4.11.1.0/installed-4.1... (conflict: tttool => base>=4.5
&& <4.11)
[__1] rejecting: base-4.12.0.0, base-4.11.1.0, base-4.11.0.0, base-4.10.1.0,
base-4.10.0.0, base-4.9.1.0, base-4.9.0.0, base-4.8.2.0, base-4.8.1.0,
base-4.8.0.0, base-4.7.0.2, base-4.7.0.1, base-4.7.0.0, base-4.6.0.1,
base-4.6.0.0, base-4.5.1.0, base-4.5.0.0, base-4.4.1.0, base-4.4.0.0,
base-4.3.1.0, base-4.3.0.0, base-4.2.0.2, base-4.2.0.1, base-4.2.0.0,
base-4.1.0.0, base-4.0.0.0, base-3.0.3.2, base-3.0.3.1 (constraint from
non-upgradeable package requires installed instance)
[__1] fail (backjumping, conflict set: base, tttool)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: base, tttool


> Michael Thon <m7.thon at gmail.com> schrieb:
>
> ich hatte keinerlei Probleme tttool unter macOS zu installieren (daher kann ich mich allerdings auch nicht mehr genau daran erinnern). Ich nutze für open source tools unter macOS seit langem MacPorts und würde das besonders nicht-Profis empfehlen (statt Homebrew), aber es ist Geschmackssache.
> 
> Ich glaube, ich habe
> 
>    $ port install haskell-platform
> 
> gemacht, und bin dann der Installationsanleitung auf der tttool github Seite gefolgt. Probleme gab es jedenfalls nicht.

Ich würde mein „Rezept“ mit Homebrew für das TTTool-Buch einreichen – es ist unter aktuellem macOS getestet und funktioniert. Wenn es mit MacPorts einfacher geht, finde ich auch gut. Bin dann also nicht böse, wenn jemand meine Version durch die MacPorts-Version ersetzt. :)

viele Grüße
Hendrik







Mehr Informationen über die Mailingliste tiptoi