jnavila/plotkicadsch

Help to install

Closed this issue · 15 comments

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

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.

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).

Any idea what I am doing wrong?

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?

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..

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

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 .

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

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

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.

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

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

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

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

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.

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