Difference between revisions of "Mac OS X:Build from source:MacPorts"

From Gramps
Jump to: navigation, search
m (moved Mac OS X MacPorts to Mac OS X:Build from source:MacPorts: Structure the Mac OS pages)
(Remove ancient instructions/problems, mention GraphViz install)
Line 1: Line 1:
 
{{languages}}
 
{{languages}}
== Installing gramps for X11 using MacPorts ==
+
==Installing Gramps using MacPorts==
# Install Mac OS X Leopard and update to the latest version.  (X11 will be installed by default on Leopard - older OSes may require it to be manually installed.)
 
 
# Download and install the latest Xcode tools from http://developer.apple.com/technology/Xcode.html  
 
# Download and install the latest Xcode tools from http://developer.apple.com/technology/Xcode.html  
 
# Download and install Macports from http://www.macports.org/install.php
 
# Download and install Macports from http://www.macports.org/install.php
 
# Open Terminal.app from /Applications/Utilities and enter these commands:
 
# Open Terminal.app from /Applications/Utilities and enter these commands:
  sudo port -v selfupdate
+
  sudo port selfupdate
 
  sudo port install gramps
 
  sudo port install gramps
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
 
  
{{man note| Time for several cups of coffee! |The step 'sudo port install gramps' on a completely fresh installation of MacPorts on Mac OS X 10.4.11 iMac iSight (2.1 GHx PowerPC G5) took 12 hours 53 minutes.}}
+
If you are running a recent version of OS X (Snow Leopard, Lion or Mountain Lion, at this point), much of the support software is pre-compiled and will install as quickly as it is downloaded.
  
# After the last command, wait 5 minutes to be sure that launchctl has finished
+
==Running Gramps==
# When you want to run GRAMPS, enter these commands
+
 
open /Applications/Utilities/X11.app
+
Use Terminal to start gramps:
 
  gramps
 
  gramps
On older OSes it may be necessary to instead use
 
open-x11 gramps
 
[[Category:Developers/Packaging]]
 
  
There are a number of issues, some of which are probably specific to particular versions of Mac OS X::
+
==GraphViz==
 +
 
 +
You may wish to install GraphViz to handle some of the graphical reports that Gramps can produce.  MacPorts can provide you with either graphical or command-line based versions of either a 'stable' or 'development' release of GraphViz.  'graphviz-gui' is recommended unless you know that you have a need for the development version.  Install with:
 +
 
 +
sudo port install graphviz-gui
 +
 
 +
==Issues==
 +
 
 +
You can search the MacPorts bug tracker for any issues related to the Gramps port:
 +
 
 +
https://trac.macports.org/search?portsummarysearch=on
  
# If you had a previous installation of MacPorts and Gramps, and you want to start again from scratch, then simply deleting the folder /opt is not enough to uninstall MacPorts. The correct instructions for doing so are at [[http://guide.macports.org/chunked/installing.macports.uninstalling.html MacPorts Guide: uninstalling]]. In particular, you have to rename/move aside /Applications/MacPorts when you do a fresh install.
+
Please don't hesitate to create a ticket if you find a problem that you believe is related to the MacPorts build process.
# libproxy 0.4.0 does not build properly on Tiger see [[http://trac.macports.org/ticket/24127 MacPorts ticket 24127]]. Reverting to the Portfile for 0.3.0 works.
 
# The WriteCD plugin is unavailable. This relies on GNOME and has not been made to work on OS X.
 
# The spelling checker may or may not work. gnome-python-extras needs to be build after gtkspell (which may not happen in an entirely automated build). In addition, there appear to be some other problems which affect whether it works or not. See [[http://trac.macports.org/ticket/24266 MacPorts ticket 24266]].
 
# The latest version of MacPorts Gramps is based on Python 2.6, but this does not build _bsddb correctly on some OS/architecture combinations. See [[http://trac.macports.org/ticket/23768 MacPorts ticket 23768]] and [[http://trac.macports.org/ticket/24310 MacPorts ticket 24310]].
 
# A warning message is produced when running Gramps: "Xlib:  extension "RANDR" missing on display ":0.0"." According to the MacPorts FAQ [[http://trac.macports.org/wiki/FAQ#randr]] "It's harmless and you should ignore it".
 
# The Geographic View is not available because webkit-gtk does not build under MacPorts [[http://trac.macports.org/ticket/23464 MacPorts ticket 23464]] and  [[http://bugs.webkit.org/show_bug.cgi?id=36088 webkitgtk bug]]).
 
# When going into the file chooser (for example on export or import or plugin manager, you may get the warning: "GtkWarning: Unable to find default local directory monitor type". This doesn't seem to be very serious, and seems to be a "more general gtk issue". See [[http://www.mail-archive.com/bug-gnubg@.../msg03464.html]].
 
  
  
If you start gramps from the xterm window, don't forget to follow the instructions about setting paths for the X11 environment in [[http://trac.macports.org/wiki/InstallingMacPorts#OptionsfortheMacPortsshellandX11environment MacPorts wiki: Installing MacPorts]].
+
[[Category:Developers/Packaging]]

Revision as of 19:19, 19 February 2013

Installing Gramps using MacPorts

  1. Download and install the latest Xcode tools from http://developer.apple.com/technology/Xcode.html
  2. Download and install Macports from http://www.macports.org/install.php
  3. Open Terminal.app from /Applications/Utilities and enter these commands:
sudo port selfupdate
sudo port install gramps

If you are running a recent version of OS X (Snow Leopard, Lion or Mountain Lion, at this point), much of the support software is pre-compiled and will install as quickly as it is downloaded.

Running Gramps

Use Terminal to start gramps:

gramps

GraphViz

You may wish to install GraphViz to handle some of the graphical reports that Gramps can produce. MacPorts can provide you with either graphical or command-line based versions of either a 'stable' or 'development' release of GraphViz. 'graphviz-gui' is recommended unless you know that you have a need for the development version. Install with:

sudo port install graphviz-gui

Issues

You can search the MacPorts bug tracker for any issues related to the Gramps port:

https://trac.macports.org/search?portsummarysearch=on

Please don't hesitate to create a ticket if you find a problem that you believe is related to the MacPorts build process.