"Learning Tidal" course week zero - installation and exploration

Hi everybody. I haven't done any of this computer stuff for so long that for now I am stuck in the 'exploration' phase - reading other people's posts!
I did download Supercollider 3.11.0, moved it into the applications folder and it opens fine. But does that mean it's installed? :sweat_smile: ... I am on MacOS 10.12.6. People are reporting problems.
I have looked at all the install instructions - but haven't worked in bash for so long that at the moment I don't dare 'to go there' before I have got my basic understanding back.

Thanks - I get this in the terminal window:

yld: lazy symbol binding failed: Symbol not found: _utimensat
Referenced from: /Users/whooze/.ghcup/bin/cabal (which was built for Mac OS X 10.13)
Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _utimensat
Referenced from: /Users/whooze/.ghcup/bin/cabal (which was built for Mac OS X 10.13)
Expected in: /usr/lib/libSystem.B.dylib

Abort trap: 6

Ah @eduardoperezinfante has the same problem. It seems the latest supercollider and haskell donā€™t work with older versions of macos.

You can delete haskell by removing .ghcup, .ghc and .cabal from your home folder. Then install an older version from here: https://www.haskell.org/platform/prior.html

Probably 8.6.3 would be fine.

Then hopefully cabal update; cabal install tidal will work (you donā€™t have --lib at the end for older versions of haskell).

1 Like

Iā€™m looking where this /Users/whooze/.ghcup/bin/cabal suggests in the Home folder

but Iā€™m not seeing these .ghcup , .ghc and .cabal anywhere

.ghcup , .ghc and .cabal

Theyā€™re hidden folders, Iā€™m not sure how to find them in MacOS, but this command in a terminal window will delete them.

Just be careful to copy and paste accurately, as itā€™s a dangerous command, if a space gets in the wrong place it could cause some damage!

rm -rf ~/.ghcup ~/.ghc ~/.cabal
2 Likes

Hi everyone!

This is my first strike trying out the bootstrap installation method and I get this message once the GHC is ā€œinstallingā€

Installing GHC-8.8.3 for Darwin on architecture x86_64
checking build system typeā€¦ x86_64-apple-darwin19.4.0
checking host system typeā€¦ x86_64-apple-darwin19.4.0
checking target system typeā€¦ x86_64-apple-darwin19.4.0
Build platform inferred as: x86_64-apple-darwin
Host platform inferred as: x86_64-apple-darwin
Target platform inferred as: x86_64-apple-darwin
GHC build : x86_64-apple-darwin
GHC host : x86_64-apple-darwin
GHC target : x86_64-apple-darwin
LLVM target: x86_64-apple-darwin
checking for path to top of build treeā€¦ /var/folders/qt/11tb527n2r10y3jl73dnz9b40000gn/T/ghcup.XXXXXXX.3pI6WXEg/ghc-8.8.3
checking for perlā€¦ /usr/bin/perl
checking for a BSD-compatible installā€¦ /usr/bin/install -c
checking for gfindā€¦ no
checking for findā€¦ /usr/bin/find
checking whether ln -s worksā€¦ yes
checking for gsedā€¦ sed
checking XCode versionā€¦ xcode-select: error: tool ā€˜xcodebuildā€™ requires Xcode, but active developer directory ā€˜/Library/Developer/CommandLineToolsā€™ is a command line tools instance
not found (too old?)
checking for gccā€¦ gcc
checking whether the C compiler worksā€¦ no
configure: error: in /var/folders/qt/11tb527n2r10y3jl73dnz9b40000gn/T/ghcup.XXXXXXX.3pI6WXEg/ghc-8.8.3': configure: error: C compiler cannot create executables See config.logā€™ for more details
Failed to install, consider updating this script via: ghcup upgrade
ā€œghcup --cache installā€ failed!
grep: /Users/Gabriel/.bashrc: No such file or directory
sh: line 37: [: -ne: unary operator expected
[3] Congratulations, you have all the pre-reqsā€¦
Installing tidalcycles haskell library (via cabal)ā€¦

cabal: unrecognised command: v2-update (try --help)
cabal: unrecognised command: v2-install (try --help)
[4] Atom already installed, skippingā€¦
[6] Installing atom TidalCycles pluginā€¦
Installing tidalcycles to /Users/Gabriel/.atom/packages āœ“
[7] SuperCollider already installed, skippingā€¦
[8] Installing SuperCollider Pluginsā€¦
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 644 100 644 0 0 1290 0 --:ā€“:-- --:ā€“:-- --:ā€“:-- 1290
100 6287k 100 6287k 0 0 3316k 0 0:00:01 0:00:01 --:ā€“:-- 6312k
replace /Users/Gabriel/Library/Application Support/SuperCollider/Extensions/SC3plugins/AYUGens/AYUGens.html? [y]es, [n]o, [A]ll, [N]one, [r]ename: error: invalid response [{ENTER}]
replace /Users/Gabriel/Library/Application Support/SuperCollider/Extensions/SC3plugins/AYUGens/AYUGens.html? [y]es, [n]o, [A]ll, [N]one, [r]ename: error: invalid response [#### INST]
replace /Users/Gabriel/Library/Application Support/SuperCollider/Extensions/SC3plugins/AYUGens/AYUGens.html? [y]es, [n]o, [A]ll, [N]one, [r]ename: warning: cannot set modif./access times for /Users/Gabriel/Library/Application Support/SuperCollider/Extensions/SC3plugins/LadspaUGen/ladspalist
No such file or directory
MacBook-Pro-de-Gabriel-2:~ Gabriel$

Something similar appears to someone?

THANKS!

Same issue here!!! And Iā€™m getting the exact same message as @Dentona

Hi @gablezmanā€¦ Some confusing stuff there, have you attempted a tidal install before?
What happens if you run this:

cabal install tidal

Thanks for your reply @yaxuā€¦ Already done, now appears this message :

The default interactive shell is now zsh.

To update your account to use zsh, please run chsh -s /bin/zsh.

For more details, please visit https://support.apple.com/kb/HT208050.

MacBook-Pro-de-Gabriel-2:~ Gabriel$ cabal install tidal

Warning: cannot determine version of /usr/bin/gcc :

ā€œā€

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

gcc' failed in phase C Compilerā€™. (Exit code: 1)

//
Butā€¦ I ran the line once again and this message appears:

Gabriel@MacBook-Pro-de-Gabriel-2 ~ % cabal install tidal

Warning: cannot determine version of /usr/bin/gcc :

ā€œā€

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

gcc' failed in phase C Compilerā€™. (Exit code: 1)

Gabriel@MacBook-Pro-de-Gabriel-2 ~ %

Iā€™m having a strange issue with ghc-pkg list tidal returning:

/Users/admin/.ghcup/ghc/8.6.5/lib/ghc-8.6.5/package.conf.d (no packages)

but my Tidal install seems to be working fine in Atom / Supercollider (macOS 10.13.6).

I am trying to update Tidalcycles, so I ran:

cabal install tidal --lib
after removing the /environments/default file (as you stated elsewhere)

and it successfully installed + showed:

Installing tidal-1.4.8 (lib) Completed tidal-1.4.8 (lib)

but ghc-pkg list tidal says no packages ? Not sure how else to check which version I am running?

Hm, does running this help:
xcode-select --install

That installs the ā€˜xcode commandline toolsā€™, including a C compiler, although the install script should have done this for you.

Yes this is a known issueā€¦ The ā€˜cabal installā€™ process has been in a state of flux for a while, moving to a new way of doing things. I think ghc-pkg still only shows packages installed with the old method.

Does this do any better?

cabal list --installed tidal

Hi @yaxu
Yes, Iā€™m seeing that in SuperCollider.

And I now have sound in Atom!

1 Like

Hm, so either superdirt isnā€™t receiving messages from tidal for some reason, or thereā€™s some problem with the sound.

If you click in the numbers in the bottom righthand corner of supercollider, a useful menu should pop up, including ā€œshow scopeā€ - select that. When you run a pattern in tidal (e.g. d1 $ sound "bd sd"), does the scope move?

Oh, thatā€™s great news!

It seems that everything is ready, now the terminal throw this message

replace /Users/Gabriel/Library/Application Support/SuperCollider/Extensions/SC3plugins/AYUGens/AYUGens.html? [y]es, [n]o, [A]ll, [N]one, [r]ename: error: invalid response [{ENTER}]
replace /Users/Gabriel/Library/Application Support/SuperCollider/Extensions/SC3plugins/AYUGens/AYUGens.html? [y]es, [n]o, [A]ll, [N]one, [r]ename: error: invalid response [#### INST]
replace /Users/Gabriel/Library/Application Support/SuperCollider/Extensions/SC3plugins/AYUGens/AYUGens.html? [y]es, [n]o, [A]ll, [N]one, [r]ename: warning: cannot set modif./access times for /Users/Gabriel/Library/Application Support/SuperCollider/Extensions/SC3plugins/LadspaUGen/ladspalist
No such file or directory

cabal list --installed tidal

returns no matches found

cabal list tidal

returns a bunch of things, including this:

  • tidal
    Synopsis: Pattern language for improvised music
    Default available version: 1.4.8
    Installed versions: [ Not installed ]
    Homepage: http://tidalcycles.org/
    License: GPL-3

but curiously says [not installed]

Hmmā€¦ Is it working?

Part of this effort to update is because certain syntax doesnā€™t execute properly for me, while other things do, which makes me think I have an outdated version of TidalCycles.

for example (from your video):

n "0 3 [5 2] 2" # sound "cpu"

doesnā€™t generate any sound. I get this in the output window:

t>((1,1),(3,1)),((1,1),(4,1))|n: 0.0f, s: ā€œcpuā€
((3,1),(5,1)),((1,1),(4,1))|n: 3.0f, s: ā€œcpuā€
((6,1),(8,1)),((1,1),(4,1))|n: 5.0f, s: ā€œcpuā€
((8,1),(9,1)),((1,1),(4,1))|n: 2.0f, s: ā€œcpuā€
((11,1),(12,1)),((1,1),(4,1))|n: 2.0f, s: ā€œcpuā€