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

opam switch create 4.07.0 not working #33

Open
AjayAB opened this issue Mar 16, 2021 · 4 comments
Open

opam switch create 4.07.0 not working #33

AjayAB opened this issue Mar 16, 2021 · 4 comments

Comments

@AjayAB
Copy link

AjayAB commented Mar 16, 2021

I installed opam:
user@dell-2017:~$ opam --version
2.0.8

ran opam init
but the next two commands didn't work
user@dell-2017:~$opam switch create 4.07.0
[ERROR] No compiler matching '4.07.0' found, use 'opam switch list-available' to see what is available, or use '--packages' to select packages explicitly.
user@dell-2017:~$ opam install dune core lwt re color sexp_pretty uutf lwt_ppx uuseg notty [ERROR] No package named dune found. [ERROR] No package named core found. [ERROR] No package named re found. [ERROR] No package named color found. [ERROR] No package named sexp_pretty found. [ERROR] No package named uutf found. [ERROR] No package named lwt_ppx found. [ERROR] No package named uuseg found. [ERROR] No package named notty found.

@alexozer
Copy link
Owner

What's your Linux version? uname -a

@AjayAB
Copy link
Author

AjayAB commented Mar 26, 2021

hi,
I was on Ubuntu 18.04 . I just distrohopped into arch .
[ajay@dellarch ~]$ uname --a
Linux dellarch 5.10.25-1-lts #1 SMP Sat, 20 Mar 2021 19:37:44 +0000 x86_64 GNU/Linux
in arch , opam switch create 4.07.0 worked.
But dune build didn't work.
[ajay@dellarch ~]$ cd flitter/
[ajay@dellarch flitter]$ dune build
bash: dune: command not found
[ajay@dellarch flitter]$ opam dune build
[ERROR] dune is not a known command or plugin (package dune.2.8.4 does not have the 'plugin' flag set).
[ajay@dellarch flitter]$ ls
LICENSE bin dune-project flitter.install src
README.md doc examples flitter.opam
[ajay@dellarch flitter]$ dune build flitter.opam
bash: dune: command not found
[ajay@dellarch flitter]$ opam dune build flitter.opam
[ERROR] dune is not a known command or plugin (package dune.2.8.4 does not have the 'plugin' flag set).
[ajay@dellarch flitter]$ opam dune build flitter.install
[ERROR] dune is not a known command or plugin (package dune.2.8.4 does not have the 'plugin' flag set).
I tried all of that ^ , but it didn't work.

@burbruee
Copy link

Did you do

eval $(opam env) ?

After that, dune should work.

@xRasea
Copy link

xRasea commented Dec 30, 2021

Could you add this to the readme? Worked for me. Thanks.

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

4 participants