← Back to team overview

kicad-developers team mailing list archive

Re: newest scripts/kicad-install.sh

 

Great, good to see this script getting some love to help get new developers (or new developer installations) started. Anyways, here's a patch for what's required to get it up and working on Fedora 20.

I do want to point out/ask about a couple of things:
* What directory should this script be run from, /scripts? It looks like it assumes a given directory, which may not be the right one. I'd add the working directory checking myself, but I'm a little rusty on my Bash. * Are kicad-lib.bzr and kicad-doc.bzr supposed to manually obtained by the user? I get "No such file or directory" on line 202 and 211 of this script. * The script assumes you want things in ~/kicad_sources, but this isn't described in the help that's printed out in the usage docs. Being explicit about this would be good. I suggest adding a command-line option for the install dir and defaulting to WORKING_TREES if none is specified, with a prompt being shown on confirming that this option is alright. I would think that would cover every use case. * Is the Python scripting functionality still iffy? If it's not, should the scripting functionality be compiled by default? Might get some more people testing/playing with it if it's default. * I'm getting a bzr error: "bzr: ERROR: Invalid url supplied to transport: "bzr+ssh://bazaar.launchpad.net/~kicad-lib-committers/kicad/library": no supported schemes" Any idea what this could be about? Has a library moved? * Lastly, I'm not seeing a curses interface to cmake, I just see tons of compilation notifications scrolling down. I have both ccmake and ncurses installed, is there something I'm missing?

I'd also be happy to help out in fixing/changing anything to get this script working perfectly. I think this is worth the effort to get new users building and playing with KiCAD.

Bryant

--- scripts/kicad-install.sh	2013-11-10 06:31:13 +0000
+++ scripts/kicad-install.sh	2013-12-05 02:52:47 +0000
@@ -63,19 +63,22 @@
     elif [ "$(expr match "$PM" '.*\(yum\)')" == "yum" ]; then
         #echo "red hat compatible system"
         # Note: if you find this list not to be accurate, please submit a patch:
-        sudo yum install
+        sudo yum groupinstall "Development Tools"
+        sudo yum install \
             bzr \
             bzrtools \
-            build-essential \
+            patch \
+            gcc-c++ \
             cmake \
-            cmake-curses-gui \
+            cmake-gui \
             doxygen \
-            libbz2-dev \
-            libcairo2-dev \
-            libglew-dev \
-            libssl-dev \
-            libwxgtk2.8-dev \
-            python-wxgtk2.8
+            bzip2-devel \
+            cairo-devel \
+            glew-devel \
+            glew \
+            openssl-devel \
+            wxGTK-devel \
+            wxPython-devel
     else
         echo
         echo "Incompatible System. Neither 'yum' nor 'apt-get' found. Not possible to continue."

References