Instalación¶
ghini.desktop es un programa independiente de la plataforma software pues puede funcionar en sistemas unix como Linux y MacOSX así como en Windows.
one-liner for hurried users.
Linux users just download and run the installation script. You may read the documentation later.
Windows users in a real hurry don’t the instructions and use a recent Windows installer. You do not miss any functional feature, but you have less chances to contribute to development.
Mac users are never in a hurry, are they?
El grupo de desarrollo de Ghini es pequeño, y nos enfocamos en mejorar el código, o documentarlo, y no nos sobra tiempo para también mantener los paquetes de instalación. En lugar de tantos paquetes, uno por plataforma suportada, ofrecemos la misma procedura de instalación para todas plataformas. Esto no sólo nos ahorra tiempo sino tiene unas avantajas importantes, que se harán evidentes en el uso del programa.
La instalación está basada en ejecutar un script.
- El script para GNU/Linux se ocupa de todo, desde solucionar las dependencias hasta la instalación para los usuarios en el grupo
ghini
. - El script de Windows le pide primero de instalar un par de cosas.
- En MacOSX vamos a utilizar el mismo script de GNU/Linux, pero como OSX no tiene un gestor de paquetes, antes de ejecutar el script vamos a instalar uno.
Si sigue los siguientes pasos, se encontrará con Ghini instalado en un entorno virtual, todas la dependencias Python estarán instalada localmente y no entrarán en conflicto con otros programas Python que puedan estar el la misma computadora.
Las dependencias que no caben en un entorno virtual Python son: Python, virtualenv, GTK+, and PyGTK. Su instalación depende por plataforma.
Si por cualquier razón quisiera usted desinstalar Ghini, lo único que tiene que hacer es eliminar el entorno virtual, que es una carpeta, con todo su contenido.
Instalación en GNU/Linux¶
Open a shell terminal window, and follow the following instructions.
Download the devinstall.sh script:
Invoke the script from a terminal window, starting at the directory where you downloaded it, like this:
bash ./devinstall.sh
The script will produce quite some output, which you can safely ignore.
global installation
When almost ready, the installation script will ask you for your password. This lets it create a
ghini
user group, initialise it to just yourself, make the just createdghini
script available to the wholeghini
user group.If feeling paranoid, you can safely not give your password and interrupt the script there.
Possibly the main advantage of a global installation is being able to find Ghini in the application menus of your graphic environment.
You can now start ghini by invoking the
ghini
script:ghini
You use the same
ghini
script to update ghini to the latest released production patch:~/bin/ghini -u
This is what you would do when ghini shows you something like this:
Users of the global installation will also type
ghini
to invoke the program, but they will get to a different script, located in/usr/local/bin
. This globally availableghini
script cannot be used to update a ghini installation.Again the same
ghini
script lets you install the optional database connectors: option-p
is for PostgreSQL, option-m
is for MySQL/MariaDB, but you can also install both at the same time:~/bin/ghini -pm
Please beware: you might need solve dependencies. How to do so, depends on which GNU/Linux flavour you are using. Check with your distribution documentation.
You can also use the
ghini
script to switch to a different production line. At the moment1.0
is the stable one, but you can select1.1
if you want to help us with its development:~/bin/ghini -s 1.1
Nota para principiantes
Para ejecutar una secuencia de comandos, asegúrese de que anotar el nombre del directorio a los que han descargado el script, luego abres una ventana de terminal y en que ventana tipo “bash” seguido de un espacio y el nombre completo de la escritura incluido nombre y pulsar en la tecla enter.
nota técnica
You can study the script to see what steps if runs for you.
In short it will install dependencies which can’t be satisfied in a virtual environment, then it will create a virtual environment named
ghide
, use git to download the sources to a directory named~/Local/github/Ghini/ghini.desktop
, and connect this git checkout to theghini-1.0
branch (this you can consider a production line), it then builds ghini, downloading all remaining dependencies in the virtual environment, and finally it creates theghini
startup script.If you have
sudo
permissions, it will be placed in/usr/local/bin
, otherwise in your~/bin
folder.
Siguiente…
Instalar en MacOSX¶
Being macOS a unix environment, most things will work the same as on GNU/Linux (sort of).
Primer paso, construir en MacOSX un entorno reconocible como unix:
- herramienta de desarrollo: xcode. por favor averigue en la wikipedia cual es la versión de xcode adapta a su mac.
- gestor de paquetes: homebrew (o si utiliza un sistema más viejo, tigerbrew).
Installation on older macOS.
Every time we tested, we could only solve all dependencies on the two or three most recent macOS versions. In April 2015 this excluded macOS 10.6 and older. In September 2017 this excluded macOS 10.8 and older. We never had a problem with the lastest macOS.
The problem lies with homebrew and some of the packages we rely on. The message you have to fear looks like this:
Do not report this issue to Homebrew/brew or Homebrew/core!The only solution I can offer is: please update your system.
On the bright side, if at any time in the past you did install ghini.desktop on your older and now unsupported macOS, you will always be able to update ghini.desktop to the latest version.
With the above installed, open a terminal window and run:
brew doctor
asegúrese de haber entendido los problemas que serás reportados, y corríjalos. pygtk necesita xquartz y brew no puede solucionar la dependencia en manera automatica. instale xquartz utilizando brew:
brew install Caskroom/cask/xquartz
y finalmente instalar las últimas dependencias:
brew install git
brew install pygtk # takes time and installs all dependencies
siga las instrucciones relativas a como activar lo que acaba de instalar.
In particular, make sure you read and understand all reports starting with
If you need to have this software
.
You will need at least the following four lines in your ~/.bash_profile
:
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export PATH="/usr/local/opt/gettext/bin:$PATH"
export PATH="/usr/local/opt/python/libexec/bin:$PATH"
Activate the profile by sourcing it:
. ~/.bash_profile
Antes de poder ejecutar devinstall.sh
como en GNU/Linux, todavía necesitamos instalar un par de paquetes de python, a nivel global. Lo hacemos así:
sudo -H pip install virtualenv lxml
ahora puede seguir como en una normal máquina unix, y para eso tenemos un archivo de instalación. Lea las instrucciones para GNU/Linux, las siga, y disfrute.
As an optional aesthetical step, consider packaging your ~/bin/ghini
script in a platypus
application bundle. The images
directory contains a 128×128 icon.
Siguiente…
Instalar en Windows¶
Los pasos descritos aquí les enseñan cómo instalar Git, Gtk, Python, y los conectores python para base de datos. Una vez correctamente configurato este entorno, el procedimiento de instalación de Ghini funciona como en GNU/Linux. Los pasos finales son otra vez específicos de Windows.
Nota
Ghini has been tested with and is known to work on W-XP, W-7 up to W-10. Although it should work fine on other versions Windows it has not been thoroughly tested.
Los pasos de instalación en Windows:
download and install
git
(comes with a unix-likesh
and includesvi
). Grab it from the Git download area.todas opciones por defecto están bien, excepto que queremos poder encontrar git desde la línea de mando Windows:
download and install Python 2.x (32bit). Grab it from the Python official site.
When installing Python, do put Python in the PATH:
download
pygtk
from the official source. (this requires 32bit python). be sure you download the «all in one» version.Make a complete install, selecting everything:
(Possibly necessary, maybe superfluous) install lxml, you can grab this from the pypi archives
Recuerde que usted necesita la versión de 32 bits, para Python 2.7.
(definitely optional) download and install a database connector other than
sqlite3
.If you plan using PostgreSQL, the best Windows binary library for Python is psycopg and is Made in Italy.
REINICIALICE
así es Windows, cambió cosas en el sistema, tiene que reiniciar!
We’re done with the dependecies, now we can download and run the batch file:
Please don’t just follow the above link. Instead: right click, save link as…
Also make sure you don’t let Windows convert the script to a text document.
Now Open the script to run it. Please note: in the below image, we have saved the file twice, once letting Windows convert it to a text document, and again as a Windows Batch File. Opening the batch file will run the script. Opening the text document will show you the code of the batch file, which isn’t going to lead us anywhere.
If you installed everything as described here, the first thing you should see when you start the installation script is a window like this, and your computer will be busy during a couple of minutes, showing you what it is doing.
Running
devinstall.bat
will pull theghini.desktop
repository from github to your home directory, underLocal\github\Ghini
, checkout theghini-1.0
production line, create a virtual environment and install ghini into it.You can also run
devinstall.bat
passing it as argument the numerical part of the production line you want to follow.This is the last installation step that depends, heavily, on a working internet connection.
The operation can take several minutes to complete, depending on the speed of your internet connection.
la última etapa de instalación crea el grupo Ghini y accesos directos en el menú de inicio de Windows, para todos los usuarios. Para ello, necesita ejecutar una secuencia de comandos con derechos administrativos. El script se llama “” devinstall-finalize.bat””, es derecho en su carpeta de inicio y se ha creado en el paso anterior.
Right-click on it, select run as administrator, confirm you want it to make changes to your computer. These changes are in the Start Menu only: create the Ghini group, place the Ghini shortcut.
download the batch file, it will help you staying up-to-date:
If you are on a recent Ghini installation, each time you start the program, Ghini will check on the development site and alert you of any newer ghini release within your chosen production line.
Any time you want to update your installation, just run the
ghini-update.bat
script, it will hardly take one minute.How to save a batch file, and how to run it: check the the quite detailed instructions given for
devinstall.bat
.
If you need to generate PDF reports, you can use the XLS based report generator and you will need to download and install Apache FOP. After extracting the FOP archive you will need to include the directory you extracted to in your PATH.
If you choose for PostScript reports, you can use the Mako based report generator and there are no further dependencies.
Siguiente…
Installing on Android¶
ghini.desktop
is a desktop program, obviously you don’t install it on a handheld
device, but we do offer the option, for your Android phone or tablet, to install ghini.pocket
.
ghini.pocket
is a small data viewer, it comes handy if you want to have a quick idea
of a plant species, its source, and date it entered the garden, just by scanning a plant label.
Installation is as easy as it can be: just look for it in Google Play, and install it.
Export the data from ghini.desktop
to pocket format, copy it to your device, enjoy.