janet-lang / jpm

Janet Project Manager
MIT License
65 stars 21 forks source link

Failed bootstrap install: No such file or directory on default Debian 12 #90

Closed lescx closed 1 month ago

lescx commented 1 month ago

I have been trying to install jpm on my Debian 12 dev machine. I'm a complete Janet noob, so if you need more information, let me know.

╭─[~/.local/repo/jpm] [ꨒ  master]
╰──╼sudo janet bootstrap.janet
destdir:
Using install prefix: /usr/local
binpath: /usr/local/bin
libpath: /usr/local/lib
manpath: /usr/local/share/man/man1
headerpath: /usr/local/include/janet
modpath: (default to JANET_PATH at runtime)
Setting package listing: https://github.com/janet-lang/pkgs.git
Running jpm to self install...
error: ("janet" "jpm/cli.janet" "install"): No such file or directory
  in os/execute [src/core/os.c] on line 1377
  in do-bootstrap [bootstrap.janet] on line 14, column 3
  in _thunk [bootstrap.janet] (tailcall) on line 26, column 1

Steps to reproduce

  1. Install Debian (duh)
  2. Clone repo
  3. cd into repo
  4. sudo janet bootstrap.janet
  5. No profit

Expected behaviour

Profit.


bakpakin commented 1 month ago

Where is Janet installed? I.e. 'which janet'

lescx commented 1 month ago
$ which janet
/home/luca/.local/bin/janet/bin/janet
$ path | grep janet
/home/luca/.local/bin/janet/bin
bakpakin commented 1 month ago

Your are trying to use a local install of Janet and a system install of JPM - you don't need sudo. When building and installing Janet, did you try 'make install-jpm-git'? This will put JPM in the right place.

lescx commented 1 month ago

Thank you for pointing this out. Without sudo the same issue occurred. I should have said that I installed Janet using the prebuilt GitHub release. I built Janet from sourcehut - I'm happily using jpm now. :)

Closed because I didn't read the documentation properly.

sogaiu commented 1 month ago

For future visitors there are some related official docs.