Difference between revisions of "Ru:Установка"

From Gramps
Jump to: navigation, search
m (Linux Package Requirements: format)
m
Line 4: Line 4:
  
 
==Live CD==
 
==Live CD==
Если вам интересен GRAMPS, но вы не хотите или не можете установить его прямо сейчас (чужой ПК, Windows, нет Интернета и т.&ndsp;д.), попробуйте наш [[Linux Genealogy CD]]. Он запускается без установки на жёсткий диск и содержит набор бесплатного открытого программного обеспечения для генеалогии. Потом вы сможете установить [http://ubuntu.com Ubuntu 8.04] и GRAMPS с этого диска в любой момент.
+
Если вам интересен GRAMPS, но вы не хотите или не можете установить его прямо сейчас (чужой ПК, Windows, нет Интернета и т. д.), попробуйте наш [[Linux Genealogy CD]]. Он запускается без установки на жёсткий диск и содержит набор бесплатного открытого программного обеспечения для генеалогии. Потом вы сможете установить [http://ubuntu.com Ubuntu 8.04] и GRAMPS с этого диска в любой момент.
  
 
==Автоматическая закачка и установка GRAMPS==
 
==Автоматическая закачка и установка GRAMPS==

Revision as of 12:03, 30 July 2009


Live CD

Если вам интересен GRAMPS, но вы не хотите или не можете установить его прямо сейчас (чужой ПК, Windows, нет Интернета и т. д.), попробуйте наш Linux Genealogy CD. Он запускается без установки на жёсткий диск и содержит набор бесплатного открытого программного обеспечения для генеалогии. Потом вы сможете установить Ubuntu 8.04 и GRAMPS с этого диска в любой момент.

Автоматическая закачка и установка GRAMPS

Прежде чем скачивать GRAMPS с этого сайт, проверьте доступность текущей версии в репозатарии вашей системы. Чтобы узнать текущую версию, посетите страницу GRAMPS на Sourceforge и посмотрите на версию верхнего пакета.

Чтобы проверить, что же доступно в вашей системе, воспользуйтесь одним из методов, приведённых ниже.

  • Системы на основе Debian (Ubuntu и её варианты, Mepis, Suse…):
  apt-get install gramps
  • Gentoo (и Sabayon):
  emerge gramps 
  • Mandriva:
  urpmi gramps
  • Системы на основе Redhat (Fedora, CentOS…):
  yum install gramps

Ручная закачка и установка GRAMPS

Если текущая версия не доступна в репозитарии вашей операционной системы, вам придётся скачать её с этого сайта. Некоторые добрые пользователи GRAMPS собрали пакеты для различных систем. Если вам повезёт, вы найдёте свою систему в списке ниже. Если её там нет, то свяжитесь с разработчиками через список рассылки и попросите совета.

  • Ubuntu и производные (Kubuntu, Mephis…): пакеты Ubuntu доступны на странице загрузок GRAMPS.
  • SuSE: Ричард Бос (Richard Bos) обеспечивает выпуск пакетов GRAMPS для репозитариев SuSE. Они доступны из его репозитария rbos. Так же посмотрите на форуме тему об удовлетворении зависимостей GRAMPS на SuSE с использованием rbos и SMART (англ.).
  • Mandriva: Над новыми версиями иногда проводят бэкпорт. Чтобы установить бэкпорт, вы должны активировать репозитарий backports (убедитесь, что вы понимаете инструкции, приведённые в Mandriva wiki) (англ.). Если последней версии нет в репозитарии backports, то проверьте репозитарий contrib.
  • Fedora: В случае Fedora Core найдите на странице загрузок GRAMPS пакет с буквами fc и номером вашей версии в названии, а так же оканщивающийся на .rpm. Альтернативой установке из исходников является сборка пакета из особого файла frm или установка бинарных файлов из тестового репозитария Fedora.
  • Debian: Последняя версия должна находиться в нестабильном (unstable) репозитарии (Sid Gramps) и может быть установлена с помощью вашего менеджера пакетов. Тестовый (testing) репозитарий обновляется с задержкой в 10 дней, см. Lenny Gramps.


Gramps-notes.png
Обратите внимание

Различные дистриутиву GNU/Linux используют различные стандартные способы загрузки и установки пакетов ПО. Прочтите, пожалуйта, инструкции по установке для своего дистрибутива, прежде чем приступить к загрузке.

Во всех остальных случаях вам придётся скачать пакет с искодниками (файл, оканчивающийся на «.tar.gz») и установить GRAMPS вручную. Подробности можно найти в разделе об установке из исходников.

Windows, BSD, Mac OS X, Solaris

Для Windows существует экспериментальный установщик. Если версия этого установщика не соответствует последнеей версии GRAMPS, то вам придётся подождать, пока не появится новая версия.

Gramps-notes.png
Для пользователей Windows

Больше информации об использовании GRAMPS в Windows можно найти на странице GRAMPS и Windows.

Для Mac OS X, Fink project и MacPorts имеют Gramps в виде пакетов установки. Fink в настоящее время имеет очень старую версию доступную на package database. Детальные инструкции по использованию этих версий и установки последних версий gramps на странице об Установке из открытого кода на Mac OS X

Для BSD и Solaris ниже приведена инструкция по эксперементальной установке. Для FreeBSD используется /usr/ports/science/gramps порт.

Gnome и KDE

Вы можете использовать обе, но GRAMPS согласуется с GNOME лучше. В KDE есть незначительные проблемы с GTK не зависящие от GRAMPS. На странице KDE эта проблема изложена подробнее. Смотрите так же XdgUtils.

GRAMPS может использовать дополнительное программное обеспечение

GRAMPS does not rely on the following programs, however, having them will increase your productivity:

  • Gnome-print: It adds the ability to directly print, to preview, and to generate fully internationalized PS and PDF output. At this time, one needs to install gnome-python-desktop to obtain this package (it might be known under different names, eg on debian python-gnome2-desktop).
  • Spell checking: Installing python-gnome2-extras provides the gtkspell module, which adds spell checking in the notes
  • Graphviz, Inkscape: Gramps can make nice Genealogical trees (relationship graphs). These are generated by the Graphviz package, which defines a code (dot), as well as programs to produce graphs (dotty, to be called from command line). This gives you as researcher most power over how your tree will look, but has a learning curve. Also, kgraphviewer works fine with dot generated by GRAMPS. An alternative is to make a graphical report, converting the tree to an svg file, which you then can open/edit/refine in eg Inkscape.
  • ttf-freefont: Useful as a font that supports a large subset of the unicode and is a true type. This works well with both gnomeprint and graphviz output.
  • XdgUtils is a set of command line tools that assist applications with a variety of desktop integration tasks. About half of the tools focus on tasks commonly required during the installation of a desktop application and the other half focuses on integration with the desktop environment while the application is running. Even if the desktop components of your application are limited to an installer, configuration or management tool, Xdg-utils provides you with an easy way to enhance the usage experience of your customers by improving the integration of these components in the user's environment.

Other packages might also be useful:

  • desktop-file-utils: see list of programs to open a media file on right click on an image

Установка из исходных кодов

General Requirements

GRAMPS 2.0 requires python 2.3 and the gnome-python and pygtk2 packages. The gnome-python module should be 2.6.0 or greater. The pygtk package should be version 2.5.0 or greater.

Also librsvg2-common is needed. This is a common error at the moment in some packages. Without this library, the icons are not shown.


Linux Package Requirements

Debian /Ubuntu Fedora /Redhat Comment
python python Required (needs version 2.5 or later)
pygtk2 pygtk2 Required (needs 2.5.0 or greater)
gnome-python gnome-python Required (needs 2.6.0 or greater)
xdg-utils xdg-utils Required (Gramps-3.1.x or greater)
rcs rcs Suggested for running
librsvg2-common librsvg2 Required for building
librsvg2-devel Required for building
gnome-common Required for building
intltool Required for building
gnome-doc-utils Required for building
gcc, make, gettext Required for building

Obtaining the source

  • The latest stable version of GRAMPS can be downloaded from the GRAMPS SourceForge page. As of this writing, this is gramps-3.1.1.tar.gz. Extract this file into a directory:
  tar xzvf gramps-zzz.tar.gz

and then go into this directory:

  cd gramps-zzz

  • If you are interested in testing out the very latest development versions of GRAMPS, they can be obtained from SVN, see Brief introduction to SVN. The SVN versions of GRAMPS are potentially very dangerous as they have not been extensively tested - especially the "trunk" version which contains features that may still be partly implemented. Be aware that they may be prone to crashing and cause extensive data loss. Please use with extreme caution - and only ever on a copy of your data!

Please, now is the time to read the INSTALL and README files accompanying the code. They come with the most recent information.

Dealing with earlier versions

If you have an older version of the GRAMPS source code installed you need to make a decision what you want to do with it before installing a later version. If you wish to keep the old version, make sure that you read the instructions in the INSTALL file regarding the use of the --prefix option to specify where the new version gets installed.

Should you just want to do a straightforward replacement instead, make sure that you remove the older version before you install the new version. Do not install over the top of the old version. As new versions of Gramps are developed, some functionality is occasionally rewritten in different ways. If you install over the top of an existing installation you run the risk that the old code left behind from the old version may be used instead of the new, sometimes with unintended consequences. If you installed from source, the best way of removing the old version is to run

 make uninstall

as root from where you installed the version from. Use your distribution's package manager to uninstall if your old version was installed as a package.

Installing from source code on Linux

GRAMPS provides a script that can be used to prepare the code for building. This script automatically calls the standard configure script:

 ./autogen.sh   as user

This script will report any missing dependencies. Install these (see also INSTALL file). Building from source code typically requires that the development versions of the required libraries be installed. You might consider setting a prefix path with autogen.sh, see the INSTALL file for instructions. Standard install is in /usr/local.

Once a successful run of autogen.sh has been completed, you can run the typical make procedure.

 make (as user)

then

 make install (as root) 

Installing from source code on BSD

Installing on BSD is as straightforward as on Linux, apart from some minor issues like tools having different names. See the BSD page for details.

Installing from source code on Mac OS X

Version 3.0.1 has been successfully installed via fink, see: Mac OS X fink local

Some users have successfully installed GRAMPS on Mac OS X. See the Mac OS X page for details. Please, add to the wiki if you successfully installed GRAMPS on OS X.

Для установки GRAMPS с помощью Mac ports перед установкой самого GRAMPS нужно установить пакет p5-xml-sax затем уже устанавливать саму программу после того как программа и все зависимости установяться не спешим запускать её вводим следующие команды sudo port install python_select доустанавливаем питон нужной нам версии sudo python_select python25 устанавливаем питон нужной нам версии по умолчанию sudo launchctl load -w /Library/LaunchDaemons/org.freedesktop.dbus-system.plist sudo launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist добовляем демоны в автозагрузку необходимые для корректного запуска программы

Запуск проги выполняем через sudo затем закрываем прогу выполняем sudo chmod -R 777 /Users/ЮЗЕР/.gramps/ и свободно уже запускаем программу из консоли от своего имени)

Installing from source code on Windows

Fortunately for users of Microsoft Windows, some users have made a Windows installer. So far there have not been any reports of serious differences between the official builds of GRAMPS and the Windows Installer, so the future looks promising, but please, use this at your own risk.

If the dependencies are in place, the development version can be tested by getting the source (see above), making a copy of the file const.py.in and rename it to const.py, then execute "python gramps.py" from within the src directory. Of course, this is a development version, so warnings apply even more to this case than when using the installer.

Installing from source code on Solaris

Version 3.0.1 has been successfully installed from source on both Solaris 10 (SPARC) and OpenSolaris X86 (2008.05). Please see the Solaris page for step-by-step details.

GRAMPS on handhelds

GRAMPS can run fine on some small-factor devices. Users have been successful in using GRAMPS on: