Skip to content

install with yarn on void linux musl #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gasacchi opened this issue Jan 17, 2021 · 5 comments
Closed

install with yarn on void linux musl #30

gasacchi opened this issue Jan 17, 2021 · 5 comments

Comments

@gasacchi
Copy link

Description

A clear and concise description of what the bug is.
I want to try purescript, and try to install on my void linux musl with yarn and get error instead

To Reproduce

Steps to reproduce the behavior.

yarn global add purescript

output:

Command: install-purescript --purs-ver=0.13.8
Arguments: 
Directory: /home/gasacchi/.config/yarn/global/node_modules/purescript
Output:
[ SUCCESS ] Check if a prebuilt 0.13.8 binary is provided for linux (4s)
[ SUCCESS ] Download the prebuilt PureScript binary (55s)
[ FAILURE ] Verify the prebuilt binary works correctly
Error: spawn /home/gasacchi/xxx/.dev/gsclinux/.config/yarn/global/node_modules/purescript/purs.bin ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
    at onErrorNT (internal/child_process.js:465:16)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)

↓ Fallback: building from source

[ FAILURE ] Check if 'stack' command is available
Error: Command failed with exit code 2 (ENOENT): stack --allow-different-user --numeric-version
spawn stack ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
    at onErrorNT (internal/child_process.js:465:16)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.

Expected behavior

A clear and concise description of what you expected to happen.
purescript success installed

Additional context

Add any other context about the problem here.
running on Void linux with musl libc

PureScript version

0.13.8

@purefunctor
Copy link
Member

The provided binaries don't seem to be compatible with your system, which ultimately causes it to fall back to building from source that requires stack. In my Arch system I had to install ncurses5-compat-libs although I'm not sure if that applies here; could always try building from source though.

@hdgarrood
Copy link
Collaborator

Yes, the Linux binaries we provide won’t work on non-glibc-based systems. You’ll need to build the compiler from source, which requires stack.

@gasacchi
Copy link
Author

gasacchi commented Jan 18, 2021

i got error when use stack install

Preparing to install GHC (tinfo6) to an isolated location.
This will not interfere with any system-level installation.
Downloaded ghc-tinfo6-8.6.5.                                      
utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist: 3: exec: utils/ghc-cabal/dist-install/build/tmp/ghc-cabal: not found
make[1]: *** [ghc.mk:990: install_packages] Error 127
make: *** [Makefile:51: install] Error 2
Received ExitFailure 2 when running
Raw command: /bin/make install
Run from: /home/gasacchi/.stack/programs/x86_64-linux/ghc-tinfo6-8.6.5.temp/ghc-8.6.5/

                  
Error: Error encountered while installing GHC with
         make install
         run in /home/gasacchi/.stack/programs/x86_64-linux/ghc-tinfo6-8.6.5.temp/ghc-8.6.5/
       
       The following directories may now contain files, but won't be used by stack:
         - /home/gasacchi/.stack/programs/x86_64-linux/ghc-tinfo6-8.6.5.temp/
         - /home/gasacchi/.stack/programs/x86_64-linux/ghc-tinfo6-8.6.5/
       
       For more information consider rerunning with --verbose flag
       
Installing GHC ..

@hdgarrood
Copy link
Collaborator

I'd suggest having a look on stack's issue tracker to see if you can find anyone else in a similar situation to you; maybe stack doesn't support non-glibc-based systems so well.

@hdgarrood hdgarrood transferred this issue from purescript/purescript Feb 25, 2021
@hdgarrood
Copy link
Collaborator

I think there are a couple of separate issues here:

Since the only issue concerning purescript is the ENOENT error message, and we already have an issue for that, I'm going to close this. Sorry I couldn't be more help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants