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

Help to install #34

Closed
leoheck opened this issue May 27, 2020 · 15 comments
Closed

Help to install #34

leoheck opened this issue May 27, 2020 · 15 comments

Comments

@leoheck
Copy link
Contributor

leoheck commented May 27, 2020

It is always hard to install this. Can you help me?
Tried master version and the default version from the package manager

plotkicadsch/plotkicadsch on  master took 3s 
➜ opam install plotkicadsch      

<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[plotkicadsch.0.5.2] no changes from git+file:///home/lheck/Dropbox/kicad-plugins/plotkicadsch#master

Sorry, no solution found: there seems to be a problem with your request.

No solution found, exiting
@leoheck
Copy link
Contributor Author

leoheck commented May 27, 2020

I don't have this 4.06.0, should I create this?

image

Like this:

opam switch create 4.06.0

If Yes, it will be nice to add this to the README.

@leoheck
Copy link
Contributor Author

leoheck commented May 27, 2020

Still no luck

➜ opam install plotkicadsch
[ERROR] Sorry, resolution of the request timed out.
        Try to specify a simpler request, use a different solver, or increase the
        allowed time by setting OPAMSOLVERTIMEOUT to a bigger value (currently,
        it is set to 60.0 seconds).

@leoheck
Copy link
Contributor Author

leoheck commented May 27, 2020

Any idea what I am doing wrong?

@leoheck
Copy link
Contributor Author

leoheck commented May 27, 2020

Is it possible to remove the $ in front of the commands in the README.md too? It will make the copy-paste processes so much easier?

@leoheck
Copy link
Contributor Author

leoheck commented May 27, 2020

Suppose I have a clean OS install, which is actually the truth right now. Does the steps cover the whole opam install?

I started with:

sudo apt install opam

Then I followed your steps..

@leoheck
Copy link
Contributor Author

leoheck commented May 27, 2020

Should I install another package?
They are not installed by default and the install process does not install them..

@leoheck
Copy link
Contributor Author

leoheck commented May 27, 2020

Good, after some time, I made it. This was my process..

# Install 

opam init

opam install --switch 4.06.0 plotkicadsch
eval $(opam env)
opam switch 4.06.0
opam update

opam install -y --jobs=8 --deps-only .
opam install .

@jnavila
Copy link
Owner

jnavila commented May 27, 2020

Thanks! Will update the guide with your procedure from scratch.

Anyway, the next version of plotkicadsch is on its way to opam.

@leoheck
Copy link
Contributor Author

leoheck commented May 27, 2020

Anyway, the next version of plotkicadsch is on its way to opam.

Cool! And sorry for the number of unconnected messages. I was struggling to make it work very late at night.

@leardilap
Copy link

just a comment: is opam 4.06.0 really the correct version?
I see the travis file with OCAML_VERSION=4.07
in a clean Centos8 system I did this:

# install opam according to your distro, in my case (centos8) was
wget https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh
sudo sh install.sh

opam switch 4.07.0 # at this point it showed two errors \
[ERROR] Opam has not been initialised, please run 'opam init' \
[ERROR] No switch 4.07.0 is currently installed. Did you mean 'opam switch create 4.07.0'

# suggestion for instructions
opam init
opam switch create 4.07.0
eval `opam config env`
opam update
opam install plotkicadsch

@leoheck
Copy link
Contributor Author

leoheck commented May 30, 2020

Just to adding here a second try to install this using an almost clean Ubuntu docker

# Schematic Diffs
run apt-get -y install --no-install-recommends m4
run apt-get -y install --no-install-recommends rsync
run apt-get -y install --no-install-recommends mercurial
run apt-get -y install --no-install-recommends darcs
run apt-get -y install --no-install-recommends opam
run git clone https://github.com/jnavila/plotkicadsch.git
run cd plotkicadsch
run opam init --disable-sandboxing
run opam switch create 4.06.0
run eval $(opam env)
run opam switch 4.06.0
run opam update
run opam install -y --jobs=8 --deps-only .
run opam install .

Maybe the last 2 lines can be reverted to the original opam install plotkicadsch

@leoheck
Copy link
Contributor Author

leoheck commented May 30, 2020

This is the issue I was having before. Trying to install it on another ubuntu machine.
image

@leoheck
Copy link
Contributor Author

leoheck commented May 30, 2020

Using this 4.07.0 works out of the box. @leardilap @jnavila

This is solves my problem too. Thanks,
#34 (comment)

Maybe this can accelerate the last step (for me it is installing 226 packages) :)

opam install -y --jobs=8 plotkicadsch

@jnavila
Copy link
Owner

jnavila commented May 30, 2020

Maybe this can accelerate the last step (for me it is installing 226 packages) :)

opam install -y --jobs=8 plotkicadsch

Building locally gets you the "development" version, whereas your stanza builds the version tagged in opam. @leardilap wants to have the "development" version which adds the ability to search for schematics in sub-directories of a project.

@leoheck
Copy link
Contributor Author

leoheck commented May 30, 2020

Oh, I see, I want to have this feature too. I was not able to install it in any way.
The trick was this 4.07.0 instead of this 4.06.0. Maybe is good to update this in the README.md

I was not able to build it locally yet

@jnavila jnavila closed this as completed Oct 20, 2020
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