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

Failed to install dependencies ("no solution found") #13

Open
jeehoonkang opened this issue Jul 10, 2020 · 13 comments
Open

Failed to install dependencies ("no solution found") #13

jeehoonkang opened this issue Jul 10, 2020 · 13 comments

Comments

@jeehoonkang
Copy link
Contributor

I failed to install dependencies with the following error log:

$ opam --version 
2.0.5

$ ocamlc --version
4.10.0

$ opam install . 
[rmem.0.1] no changes from git+file:///kaist-cp-home/jeehoon.kang/Works/rmem#master
Sorry, no solution found: there seems to be a problem with your request.

No solution found, exiting

I wonder if this error is familiar to the developers. Thanks!

@cp526
Copy link
Contributor

cp526 commented Jul 10, 2020

The reason for this is probably that for some dependencies you currently still need to add the REMS opam repository. Sorry about that, the README did not say, I updated it now. For adding the REMS opam repository, run opam repository add rems https://github.com/rems-project/opam-repository.git.

@jeehoonkang
Copy link
Contributor Author

Thank you! But I still experience the same error:

$ opam repository 
[NOTE] These are the repositories in use by the current switch. Use '--all' to see all configured
       repositories.

<><> Repository configuration for switch 4.10.0 <><><><><><><><><><><><><><><><>
 1 rems    git+https://github.com/rems-project/opam-repository.git
 2 default https://opam.ocaml.org

$ opam install . 
[rmem.0.1] no changes from git+file:///kaist-cp-home/jeehoon.kang/Works/rmem#master
Sorry, no solution found: there seems to be a problem with your request.

No solution found, exiting

I believe it's because the opam repo (https://github.com/rems-project/opam-repository) supports only opam 1.2, not opam 2.0 (which I use). I guess maybe it's also worth documenting in README?

@cp526
Copy link
Contributor

cp526 commented Jul 13, 2020 via email

@cp526
Copy link
Contributor

cp526 commented Jul 15, 2020

I committed small changes to rmem and sail to hopefully get back to a working state. As for the opam repository, you can add the opam 2 repository via opam repository add rems https://github.com/rems-project/opam-repository.git#opam2 . This should have the dependencies needed for installing rmem.

@zlindaz2411
Copy link

zlindaz2411 commented Oct 24, 2020

Hi, I also have the same problem. I followed the instructions and I added the repository to opam repository, but when I do opam install rmem, it says: no packaged named rmem found.
Screenshot 2020-10-24 at 20 20 59

@cp526
Copy link
Contributor

cp526 commented Oct 26, 2020 via email

@zlindaz2411
Copy link

zlindaz2411 commented Oct 26, 2020

Still doesn't work even if I set the rems to be default
Screenshot 2020-10-26 at 10 38 14

@cp526
Copy link
Contributor

cp526 commented Oct 26, 2020 via email

@zlindaz2411
Copy link

Now it allows me to install, but I'm stuck in installing sail-riscv 0.5. And I think I need to install this, and then the rmem will get installed because now when I type in rmem, it says no command found.
Screenshot 2020-10-26 at 12 01 37

@cp526
Copy link
Contributor

cp526 commented Oct 26, 2020 via email

@bauereiss
Copy link
Contributor

"z3: command not found" suggests that you might be missing some external dependencies of Sail that the opam package doesn't automatically install. There are commands to install those for Ubuntu and Mac here, maybe that helps?

@zlindaz2411
Copy link

Thank you! It's installed.

@bauereiss
Copy link
Contributor

I see the rmem README also gives a command to install external dependencies, but that is missing z3. Maybe it should be added there? There's also a z3 package in opam, by the way, but that only installs a z3 library, not a z3 executable, so that won't be enough for Sail.

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