Skip to content
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

Cannot install moustachu in Nim 2 (plus workaround - see comment) #25

Open
some-avail opened this issue Apr 5, 2024 · 2 comments
Open

Comments

@some-avail
Copy link

some-avail commented Apr 5, 2024

I use Moustachu for my Nim-apps so help would be appreciated...
I work with nim 2.02
Cannot install moustachu on my new second-hand laptop (Linux Mint 21.2), getting the following report:

nimble install moustachu
Downloading https://github.com/fenekku/moustachu.git using git
Verifying dependencies for moustachu@0.14.0
Installing commandeer@>= 0.10.4
Downloading https://github.com/fenekku/commandeer using git
Verifying dependencies for commandeer@0.12.3
Installing commandeer@0.12.3
Success: commandeer installed successfully.
Installing moustachu@0.14.0
Building moustachu/moustachu using c backend
/home/bruik/.nimble/pkgs2/commandeer-0.12.3-52e6d41a38d9737f38928d8e30c02c49241e2ffe/commandeer.nim(2, 8) Error: cannot open file: parseopt2
Prompt: Build failed for 'moustachu@0.14.0', would you like to try installing 'moustachu@#head' (latest unstable)? [y/N]

I have tried above option but it fails aswell:

Answer: Downloading https://github.com/fenekku/moustachu.git using git
Verifying dependencies for moustachu@0.14.0
Info: Dependency on commandeer@>= 0.10.4 already satisfied
Verifying dependencies for commandeer@0.12.3
Installing moustachu@0.14.0
Building moustachu/moustachu using c backend
/home/bruik/.nimble/pkgs2/commandeer-0.12.3-52e6d41a38d9737f38928d8e30c02c49241e2ffe/commandeer.nim(2, 8) Error: cannot open file: parseopt2
Tip: 19 messages have been suppressed, use --verbose to show them.
nimble.nim(229) buildFromDir
Error: Build failed for the package: moustachu

@some-avail
Copy link
Author

Apparently parseopt2 is a deleted nim-module in Nim 2, while Commandeer is still using it. Hence the installation fails. Updating it to parseopt might do the trick (?)

@some-avail
Copy link
Author

For the impatient one can use the following workaround to install it:
-activate an older version of Nim, so run: choosenim 1.6.18
-install moustachu with this older version, so run: nimble install moustachu
-switch back to the latest Nim, so run: choosenim 2.0.2

Apparently the installation of Moustachu is not version-dependent..
By the way I forgot to thank Fenneku and others to contribute this nice lib !!!

@some-avail some-avail changed the title Cannot install moustachu Cannot install moustachu in Nim 2 (plus workaround - see comment) Apr 7, 2024
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

1 participant