Trouble setting up Tidal – stack install

I did, got the following error :

Installing GHC-8.6.5 for Darwin on architecture x86_64
usage: mktemp [-d] [-q] [-t prefix] [-u] template ...
mktemp [-d] [-q] [-u] -t prefix
Failed to create temporary directory
"ghcup --cache install" failed!

@WGT Ah, I see.

Could you try just doing this please: mktemp -d

That’s the command that the script is trying to run. I think that command shouldn’t normally fail.

usage: mktemp [-d] [-q] [-t prefix] [-u] template ...
mktemp [-d] [-q] [-u] -t prefix
No error message

Thanks, I think we have uncovered a bug in the ghcup installation script. Am I right that your MacOS installation is a little old?

You are absolutely right about that ! I can’t update to a more recent OS due to a few things I have on this thare are compatible up to 10.9 only.
Does that mean I can’t install Tidal on 10.9 ? If so sorry if I have wasted your time.

No you’re not wasting time! You’ve uncovered a bug in the Haskell install. I’ve proposed a fix to the haskell people https://github.com/haskell/ghcup/pull/101/commits/1dee527e9eb4954b8595ba7d7175bdea7370c049

Just working out how you can test this…

1 Like

Ok try this @WQT:

curl https://raw.githubusercontent.com/yaxu/ghcup/patch-1/ghcup  -o ~/.ghcup/bin/ghcup
chmod u+x .ghcup/bin/ghcup 
ghcup --cache install
ghcup set
ghcup --cache install-cabal

(ignore the colour highlighting, just paste those lines in, probably best to paste them in line-by-line, waiting for them to run each time)

Thank you !

I tried your previous commands, it worked until the last one failed again
ghcup --cache install-cabal
same error as before : Failed to create temporary directory

Hm, does this work?

mktemp -d -t ghcup.XXXXXXXX

Or this?

~/.ghcup/bin/ghcup --cache install-cabal

This one does

And this one fails. How strange

Ah my fault I think, one sec

Ok, try running this again:

curl https://raw.githubusercontent.com/yaxu/ghcup/patch-1/ghcup  -o ~/.ghcup/bin/ghcup
chmod u+x .ghcup/bin/ghcup 
ghcup --cache install
ghcup set
ghcup --cache install-cabal
1 Like
Successfully installed cabal-install

It worked ! Thank you so much for sticking around and solving this. :slight_smile:
I am going to go on with the Tidal installation.

Great, perhaps re-running the tidal-bootstrap script will work now

I reran the bootstrap and indeed it works fine. Thank you again.

Hello, I’ve actually go just one issue when installing tidal but anyway I’ve tried all solutions you’ve posted , I reach you out at another thread and now I narrowed down the error message to this outcome:

PS C:\WINDOWS\system32> cabal install tidal
Resolving dependencies…
Build profile: -w ghc-8.10.1 -O1
In order, the following will be built (use -v for more details):

  • network-3.1.1.1 (lib:network) (requires build)
  • hosc-0.17 (lib) (requires build)
  • tidal-1.4.9 (lib) (requires build)
    Starting network-3.1.1.1 (all, legacy fallback)

Failed to build network-3.1.1.1. The failure occurred during the configure
step.
Build log (
C:\Users\SamuelGonzález\AppData\Roaming\cabal\logs\ghc-8.10.1\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc.log
):
Configuring network-3.1.1.1…
cabal.exe: The package has a ‘./configure’ script. If you are on Windows, This
requires a Unix compatibility toolchain such as MinGW+MSYS or Cygwin. If you
are not on Windows, ensure that an ‘sh’ command is discoverable in your path.

cabal.exe: Failed to build network-3.1.1.1 (which is required by tidal-1.4.9).
See the build log above for details.

I realy want to start making music , lol, I’m sure you are the only one who can help me out whit this mess.

Best regards.

Hm, something is wrong with your haskell install, how have you installed it?

You could try with there instructions, if you haven’t already
https://www.haskell.org/platform/#windows

Thank you very much for the fast answer! T_T

Yes, in fact many times…
when I run the command lines

choco install haskell-dev
refreshenv

and try cabal install tidal I get this promt

PS C:\WINDOWS\system32> choco install haskell-dev
Chocolatey v0.10.15
Installing the following packages:
haskell-dev
By installing you accept licenses for the packages.
haskell-dev v0.0.1 already installed.
Use --force to reinstall, specify a version to install, or try upgrade.

Chocolatey installed 0/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Warnings:

  • haskell-dev - haskell-dev v0.0.1 already installed.
    Use --force to reinstall, specify a version to install, or try upgrade.
    PS C:\WINDOWS\system32> refreshenv
    Refreshing environment variables from registry for cmd.exe. Please wait…Finished…
    PS C:\WINDOWS\system32> cabal install tidal
    Resolving dependencies…
    Build profile: -w ghc-8.10.1 -O1
    In order, the following will be built (use -v for more details):
  • network-3.1.1.1 (lib:network) (requires build)
  • hosc-0.17 (lib) (requires build)
  • tidal-1.4.9 (lib) (requires build)
    Starting network-3.1.1.1 (all, legacy fallback)

Failed to build network-3.1.1.1. The failure occurred during the configure
step.
Build log (
C:\Users\SamuelGonzález\AppData\Roaming\cabal\logs\ghc-8.10.1\network-3.1.1.1-736b4596da292059fa9c4fc97025a47e7ac15be4.log
):
Configuring network-3.1.1.1…
configure: error: invalid variable name: `"–prefix’
cabal.exe: Failed to build network-3.1.1.1 (which is required by tidal-1.4.9).
See the build log above for details.

I’m not sure what I did wrong along the process, I’m pretty sure I followed all steps carefully D=

I’m having similar issues, and this is after editing the cabal config file as mentioned elsewhere.

Failed to build network-3.1.1.1. The failure occurred during the configure
step.
Build log (
C:\Users\bcgre\AppData\Roaming\cabal\logs\ghc-8.10.1\network-3.1.1.1-34ecea2aa0f26ddbd9470c3b8701651fbbd5067d.log
):
Configuring network-3.1.1.1...
cabal.exe: The package has a './configure' script. If you are on Windows, This
requires a Unix compatibility toolchain such as MinGW+MSYS or Cygwin. If you
are not on Windows, ensure that an 'sh' command is discoverable in your path.

cabal.exe: Failed to build network-3.1.1.1 (which is required by tidal-1.4.9).
See the build log above for details.