# Bin/ghci: No such file or directory (atom)

**URL:** <https://uzu.lurk.org/t/bin-ghci-no-such-file-or-directory-atom/154>\
**Category:** TidalCycles\
**Tags:** installation\
**Created:** [4 April 2020 15:10 UTC](https://uzu.lurk.org/t/bin-ghci-no-such-file-or-directory-atom/154 "2020-04-04T15:10:21Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![warddem](https://uzu.lurk.org/letter_avatar_proxy/v4/letter/w/aeb1de/32.png) [@warddem](https://uzu.lurk.org/u/warddem)\
**Post date:** [4 April 2020 15:10 UTC](https://uzu.lurk.org/t/bin-ghci-no-such-file-or-directory-atom/154/1 "2020-04-04T15:10:21Z")

</div>

Hi, i cannot get atom to work. Did i skip something?

Thanks  
ward

Load BootTidal.hs from /Users/marctine/.atom/packages/tidalcycles/lib/BootTidal.hs  
/bin/sh: /Users/marctine/.ghcup/bin/ghci: No such file or directory

- 

Uncaught Cannot call write after a stream was destroyed  
events.js:167  
Show Stack Trace

---

<div class="post-metadata">

**Author:** ![yaxu](https://uzu.lurk.org/user_avatar/uzu.lurk.org/yaxu/32/2_2.png) [@yaxu](https://uzu.lurk.org/u/yaxu)\
**Post date:** [4 April 2020 15:31 UTC](https://uzu.lurk.org/t/bin-ghci-no-such-file-or-directory-atom/154/2 "2020-04-04T15:31:19Z")

</div>

It looks like haskell, and the tidal library aren’t installed somehow. On a mac, you can install with this sequence of commands:

```nohighlight
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
source ~/.ghcup/env
cabal new-install tidal --lib

```

---

<div class="post-metadata">

**Author:** ![warddem](https://uzu.lurk.org/letter_avatar_proxy/v4/letter/w/aeb1de/32.png) [@warddem](https://uzu.lurk.org/u/warddem)\
**Post date:** [4 April 2020 19:12 UTC](https://uzu.lurk.org/t/bin-ghci-no-such-file-or-directory-atom/154/3 "2020-04-04T19:12:55Z")

</div>

Thanks, but stull no luck, could it be somehow related to XCode?  
Here the last part of the installation;

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/f9/qk5nnl710tv6vzs50dd91zlr0000gn/T/ghcup.XXXXXXX.PvbZfhY4/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!

---

<div class="post-metadata">

**Author:** ![yaxu](https://uzu.lurk.org/user_avatar/uzu.lurk.org/yaxu/32/2_2.png) [@yaxu](https://uzu.lurk.org/u/yaxu)\
**Post date:** [4 April 2020 19:31 UTC](https://uzu.lurk.org/t/bin-ghci-no-such-file-or-directory-atom/154/4 "2020-04-04T19:31:30Z")

</div>

Hm, yes maybe - try running `xcode-select --install`

---

<div class="post-metadata">

**Author:** ![metasekuoia](https://uzu.lurk.org/letter_avatar_proxy/v4/letter/m/f04885/32.png) [@metasekuoia](https://uzu.lurk.org/u/metasekuoia)\
**Post date:** [5 April 2020 05:00 UTC](https://uzu.lurk.org/t/bin-ghci-no-such-file-or-directory-atom/154/5 "2020-04-05T05:00:43Z")

</div>

Hi, I had the same problem here but solved after installing xcode command line tools. Thanks!

---

<div class="post-metadata">

**Author:** ![warddem](https://uzu.lurk.org/letter_avatar_proxy/v4/letter/w/aeb1de/32.png) [@warddem](https://uzu.lurk.org/u/warddem)\
**Post date:** [5 April 2020 15:14 UTC](https://uzu.lurk.org/t/bin-ghci-no-such-file-or-directory-atom/154/6 "2020-04-05T15:14:33Z")

</div>

FYI: xcode-select --install didn’t work.  
Installed the full xcode (manual download).  
Reinstalled all the rest afterwards… and we have sound now. Yighaa.

Thanks for the help

---

<div class="post-metadata">

**Author:** ![jb.gervais](https://uzu.lurk.org/letter_avatar_proxy/v4/letter/j/db5fbb/32.png) [@jb.gervais](https://uzu.lurk.org/u/jb.gervais)\
**Post date:** [8 April 2020 15:10 UTC](https://uzu.lurk.org/t/bin-ghci-no-such-file-or-directory-atom/154/7 "2020-04-08T15:10:07Z")

</div>

I have the same problem with Bin/ghci and after "Failed to install, consider updating this script via: ghcup upgrade  
“ghcup --cache install” failed!

xcode command line tools is installed  
I don’t want to install the full XCode

Any ideas ? Thanks

---

<div class="post-metadata">

**Author:** ![yaxu](https://uzu.lurk.org/user_avatar/uzu.lurk.org/yaxu/32/2_2.png) [@yaxu](https://uzu.lurk.org/u/yaxu)\
**Post date:** [8 April 2020 16:24 UTC](https://uzu.lurk.org/t/bin-ghci-no-such-file-or-directory-atom/154/8 "2020-04-08T16:24:39Z")

</div>

Hm, could you share the full output of this command please @jb.gervais :

```bash
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 sh

```

---

<div class="post-metadata">

**Author:** ![jb.gervais](https://uzu.lurk.org/letter_avatar_proxy/v4/letter/j/db5fbb/32.png) [@jb.gervais](https://uzu.lurk.org/u/jb.gervais)\
**Post date:** [8 April 2020 21:06 UTC](https://uzu.lurk.org/t/bin-ghci-no-such-file-or-directory-atom/154/9 "2020-04-08T21:06:29Z")

</div>

![Capture d’écran 2020-04-08 à 23.05.45](https://club.tidalcycles.org/uploads/default/original/1X/6dc5139f954c53d925c3a8d388fb59b5ea7b812f.png)

---

<div class="post-metadata">

**Author:** ![yaxu](https://uzu.lurk.org/user_avatar/uzu.lurk.org/yaxu/32/2_2.png) [@yaxu](https://uzu.lurk.org/u/yaxu)\
**Post date:** [8 April 2020 22:52 UTC](https://uzu.lurk.org/t/bin-ghci-no-such-file-or-directory-atom/154/10 "2020-04-08T22:52:50Z")

</div>

Hm, does running this help:

```auto
sudo xcode-select --switch /Library/Developer/CommandLineTools

```

---

<div class="post-metadata">

**Author:** ![yaxu](https://uzu.lurk.org/user_avatar/uzu.lurk.org/yaxu/32/2_2.png) [@yaxu](https://uzu.lurk.org/u/yaxu)\
**Post date:** [8 April 2020 22:54 UTC](https://uzu.lurk.org/t/bin-ghci-no-such-file-or-directory-atom/154/11 "2020-04-08T22:54:48Z")

</div>

Or maybe you have to run `xcode-select --install` again. Apparently you have to re-run it every time you update your mac os system.

---

<div class="post-metadata">

**Author:** ![jb.gervais](https://uzu.lurk.org/letter_avatar_proxy/v4/letter/j/db5fbb/32.png) [@jb.gervais](https://uzu.lurk.org/u/jb.gervais)\
**Post date:** [9 April 2020 06:50 UTC](https://uzu.lurk.org/t/bin-ghci-no-such-file-or-directory-atom/154/12 "2020-04-09T06:50:47Z")

</div>

unfortunately that does not change anything, I have the same errors

---

<div class="post-metadata">

**Author:** ![yaxu](https://uzu.lurk.org/user_avatar/uzu.lurk.org/yaxu/32/2_2.png) [@yaxu](https://uzu.lurk.org/u/yaxu)\
**Post date:** [9 April 2020 08:59 UTC](https://uzu.lurk.org/t/bin-ghci-no-such-file-or-directory-atom/154/13 "2020-04-09T08:59:10Z")

</div>

What happens when you try to run `gcc` in a terminal window? The problem seems to be that you don’t have a working compiler, but that should be part of the xcode commandline tools, so I don’t know why that is.

---

<div class="post-metadata">

**Author:** ![jb.gervais](https://uzu.lurk.org/letter_avatar_proxy/v4/letter/j/db5fbb/32.png) [@jb.gervais](https://uzu.lurk.org/u/jb.gervais)\
**Post date:** [9 April 2020 10:00 UTC](https://uzu.lurk.org/t/bin-ghci-no-such-file-or-directory-atom/154/14 "2020-04-09T10:00:16Z")

</div>

> [@yaxu](#):
>
> `gc`

I have this message "clang: error: no input files"

---

<div class="post-metadata">

**Author:** ![yaxu](https://uzu.lurk.org/user_avatar/uzu.lurk.org/yaxu/32/2_2.png) [@yaxu](https://uzu.lurk.org/u/yaxu)\
**Post date:** [9 April 2020 11:00 UTC](https://uzu.lurk.org/t/bin-ghci-no-such-file-or-directory-atom/154/15 "2020-04-09T11:00:14Z")

</div>

Sorry I can’t see why ghcup isn’t installing then. You could raise it with the ghcup people, but maybe it’s easiest to just install haskell via a different method.

Here’s an install file for the ‘haskell platform’:  
[https://www.haskell.org/platform/download/8.6.3/Haskell%20Platform%208.6.3%20Core%2064bit-signed.pkg](https://www.haskell.org/platform/download/8.6.3/Haskell%20Platform%208.6.3%20Core%2064bit-signed.pkg)

After installing that, then `cabal update` then `cabal install tidal --lib` should do it. (or failing that, `cabal install tidal` without the `--lib`).

---

<div class="post-metadata">

**Author:** ![jb.gervais](https://uzu.lurk.org/letter_avatar_proxy/v4/letter/j/db5fbb/32.png) [@jb.gervais](https://uzu.lurk.org/u/jb.gervais)\
**Post date:** [9 April 2020 11:26 UTC](https://uzu.lurk.org/t/bin-ghci-no-such-file-or-directory-atom/154/16 "2020-04-09T11:26:20Z")

</div>

> [@yaxu](#):
>
> cabal install tidal

I have the same error message ☹

I deleted and reinstalled xcode and it doesn't change anything

---

<div class="post-metadata">

**Author:** ![yaxu](https://uzu.lurk.org/user_avatar/uzu.lurk.org/yaxu/32/2_2.png) [@yaxu](https://uzu.lurk.org/u/yaxu)\
**Post date:** [9 April 2020 11:50 UTC](https://uzu.lurk.org/t/bin-ghci-no-such-file-or-directory-atom/154/17 "2020-04-09T11:50:32Z")

</div>

Can you share the full output of that command please? Pi can just copy and paste it, marking it as preformatted text

---

<div class="post-metadata">

**Author:** ![jb.gervais](https://uzu.lurk.org/letter_avatar_proxy/v4/letter/j/db5fbb/32.png) [@jb.gervais](https://uzu.lurk.org/u/jb.gervais)\
**Post date:** [9 April 2020 12:51 UTC](https://uzu.lurk.org/t/bin-ghci-no-such-file-or-directory-atom/154/19 "2020-04-09T12:51:25Z")

</div>

```
In file included from /usr/local/include/stdint.h:59:0: error: 

/usr/local/include/stdint.h:2:10: error:
     error: #include nested too deeply
  |
2 | #include <stddef.h>
  | ^
#include <stddef.h>
         ^

/usr/local/include/stdint.h:59:11: error:
     error: #include nested too deeply
   |
59 | # include <stdint.h>
   | ^
# include <stdint.h>
          ^

/usr/local/include/stdint.h:72:11: error:
     error: #include nested too deeply
   |
72 | # include <sys/types.h>
   | ^
# include <sys/types.h>
          ^

/usr/local/include/stdint.h:76:10: error:
     error: #include nested too deeply
   |
76 | #include <limits.h>
   | ^
#include <limits.h>
         ^

/usr/local/include/stdint.h:82:11: error:
     error: #include nested too deeply
   |
82 | # include <inttypes.h>
   | ^
# include <inttypes.h>
          ^

In file included from /var/folders/2d/3t7bbstd7531hgrt33trf3xr0000gn/T/ghc21106_0/ghc_5.c:2:0: error:
    

In file included from /Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/include/Rts.h:29:0: error:
    

In file included from /Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/include/Stg.h:222:0: error:
    

In file included from /Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/include/stg/Types.h:37:0: error:
    

In file included from /Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/inttypes.h:30:0: error:
    

/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/inttypes.h:235:8: error:
     error: unknown type name 'intmax_t'
    |
235 | extern intmax_t
    | ^
extern intmax_t
       ^

/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/inttypes.h:236:9: error:
     error: unknown type name 'intmax_t'
    |
236 | imaxabs(intmax_t j);
    | ^
imaxabs(intmax_t j);
        ^

/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/inttypes.h:240:2: error:
     error: unknown type name 'intmax_t'
            intmax_t quot;
            ^
    |
240 | intmax_t quot;
    | ^

/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/inttypes.h:241:2: error:
     error: unknown type name 'intmax_t'
            intmax_t rem;
            ^
    |
241 | intmax_t rem;
    | ^

/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/inttypes.h:246:9: error:
     error: unknown type name 'intmax_t'
    |
246 | imaxdiv(intmax_t __numer, intmax_t__ denom);
    | ^
imaxdiv(intmax_t __numer, intmax_t__ denom);
        ^

/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/inttypes.h:246:27: error:
     error: unknown type name 'intmax_t'
    |
246 | imaxdiv(intmax_t __numer, intmax_t__ denom);
    | ^
imaxdiv(intmax_t __numer, intmax_t__ denom);
                          ^

/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/inttypes.h:250:8: error:
     error: unknown type name 'intmax_t'
    |
250 | extern intmax_t
    | ^
extern intmax_t
       ^

/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/inttypes.h:256:8: error:
     error: unknown type name 'uintmax_t'
    |
256 | extern uintmax_t
    | ^
extern uintmax_t
       ^

/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/inttypes.h:263:8: error:
     error: unknown type name 'intmax_t'
    |
263 | extern intmax_t
    | ^
extern intmax_t
       ^

/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/inttypes.h:269:8: error:
     error: unknown type name 'uintmax_t'
    |
269 | extern uintmax_t
    | ^
extern uintmax_t
       ^

In file included from /var/folders/2d/3t7bbstd7531hgrt33trf3xr0000gn/T/ghc21106_0/ghc_5.c:2:0: error:
    

In file included from /Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/include/Rts.h:29:0: error:
    

In file included from /Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/include/Stg.h:222:0: error:
    

/Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/include/stg/Types.h:93:9: error:
     error: unknown type name 'int64_t'; did you mean '__int64_t'?
   |
93 | typedef int64_t StgInt64;
   | ^
typedef int64_t StgInt64;
        ^ ~~~~~~
        __int64_t

/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/i386/_types.h:46:33: error:
     note: '__int64_t' declared here
   |
46 | typedef long long __int64_t;
   | ^
typedef long long __int64_t;
                                ^

In file included from /var/folders/2d/3t7bbstd7531hgrt33trf3xr0000gn/T/ghc21106_0/ghc_5.c:2:0: error:
    

In file included from /Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/include/Rts.h:29:0: error:
    

In file included from /Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/include/Stg.h:222:0: error:
    

/Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/include/stg/Types.h:94:9: error:
     error: unknown type name 'uint64_t'
   |
94 | typedef uint64_t StgWord64;
   | ^
typedef uint64_t StgWord64;
        ^

/Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/include/stg/Types.h:116:9: error:
     error: unknown type name 'int64_t'; did you mean '__int64_t'?
    |
116 | typedef int64_t StgInt;
    | ^
typedef int64_t StgInt;
        ^ ~~~~~~
        __int64_t

/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/i386/_types.h:46:33: error:
     note: '__int64_t' declared here
   |
46 | typedef long long __int64_t;
   | ^
typedef long long __int64_t;
                                ^

In file included from /var/folders/2d/3t7bbstd7531hgrt33trf3xr0000gn/T/ghc21106_0/ghc_5.c:2:0: error:
    

In file included from /Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/include/Rts.h:29:0: error:
    

In file included from /Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/include/Stg.h:222:0: error:
    

/Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/include/stg/Types.h:117:9: error:
     error: unknown type name 'uint64_t'
    |
117 | typedef uint64_t StgWord;
    | ^
typedef uint64_t StgWord;
        ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
`gcc' failed in phase `C Compiler'. (Exit code: 1)
cabal: Leaving directory '/var/folders/2d/3t7bbstd7531hgrt33trf3xr0000gn/T/cabal-tmp-20995/random-1.1'
cabal: Error: some packages failed to install:
clock-0.8-H1S1zDefxirImaRbI6ITNv failed during the building phase. The
exception was:
ExitFailure 1
random-1.1-3ypV4EIycgb35PKjTYYr5q failed during the building phase. The
exception was:
ExitFailure 1
tidal-1.4.8-BUBj7CkVY0qEI6Vxv8Pjam depends on tidal-1.4.8 which failed to
install.
```

---

<div class="post-metadata">

**Author:** ![yaxu](https://uzu.lurk.org/user_avatar/uzu.lurk.org/yaxu/32/2_2.png) [@yaxu](https://uzu.lurk.org/u/yaxu)\
**Post date:** [9 April 2020 16:43 UTC](https://uzu.lurk.org/t/bin-ghci-no-such-file-or-directory-atom/154/20 "2020-04-09T16:43:40Z")

</div>

> [@jb.gervais](#):
>
> /usr/local/include/stdint.h:2:10: error: error: #include nested too deeply

Hm something's quite wrong there.

Some people here have a similar issue:  
[MacOS High Sierra: Build error - "#include nested too deeply" · Issue #881 · SOHU-Co/kafka-node · GitHub](https://github.com/SOHU-Co/kafka-node/issues/881)

Judging by that, `brew doctor` might fix it..

But it seems a macos upgrade went wrong. I don't actually use MacOS so might not be the best person to help..

---

<div class="post-metadata">

**Author:** ![jb.gervais](https://uzu.lurk.org/letter_avatar_proxy/v4/letter/j/db5fbb/32.png) [@jb.gervais](https://uzu.lurk.org/u/jb.gervais)\
**Post date:** [9 April 2020 17:18 UTC](https://uzu.lurk.org/t/bin-ghci-no-such-file-or-directory-atom/154/21 "2020-04-09T17:18:51Z")

</div>

doesn’t work, I will continue to search, thanks for your help!
