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

From Gramps
Jump to: navigation, search
(Split out fink and MacPorts instructions)
 
(MacPorts version)
 
(27 intermediate revisions by 9 users not shown)
Line 1: Line 1:
== Installing gramps for X11 using MacPorts ==
+
{{languages}}
 +
==Installing Gramps using MacPorts==
  
Right now, I will just get the basic information down as to the troubles I ran into and how I fixed them. I will later put in more detailed instructions on using MacPorts and the rest.
+
Current version available from MacPorts is: {{version_MacPort}}
  
=== Starting ===
+
# 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
 +
# Open Terminal.app from /Applications/Utilities and enter these commands:
 +
sudo port selfupdate
 +
sudo port install gramps
  
So, assuming you have MacPorts installed and updated, you might as well try:
+
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.
<code>
+
sudo port install gramps</code>
+
Now, if you're like me and didn't have GNOME or anything like that installed, calling that command will attempt to go through all of the dependencies and install them all. This will take a while, and you might be at this installing gramps for a couple hours (there are a lot of dependencies)
+
  
What I did instead was run <code>
+
==Running Gramps==
port deps gramps</code>, which listed the major dependencies that gramps has. Then, I installed each separately. They are:
+
<code>
+
shared-mime-info
+
py-gnome
+
py-bsddb</code>
+
I installed them in the following order:
+
# shared-mime-info
+
# py-bsddb
+
# py-gnome (the tough one)
+
  
=== shared-mime-info ===
+
Use Terminal to start gramps:  
In order to successfully install this, I first had to run:<code>
+
gramps
sudo port install p5-xml-sax
+
sudo port install p5-xml-sax-expat</code>
+
After that, things installed smoothly
+
  
=== py-bsddb ===
+
==GraphViz==
This actually installed smoothly on my computer.
+
  
=== py-gnome ===
+
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:
For now, I merely list the libraries and what I did to fix the problem.
+
# py-gtk2
+
#* I had to make sure to upgrade expat. After that, it installed fine.
+
# py-orbit
+
#* This installed without any problems for me.
+
# libzvt
+
#* This package needs "dbus" which in turn needs "xmlto". It appears, however, that "xmlto" is not listed as a dependent of "dbus". Hence, I ran <code>sudo port install xmlto</code> by hand. This installed without any problems on my computer.
+
#* After installing that, and upgrading gtk2 (do this first), this seems to be installing correctly.
+
# gnome-desktop
+
#* This was the next problem for me. I installed ''p5-libxml-perl, p5-xml-simple, py-xml'' by hand, cleaned ''gnome-desktop'', and then tried the installation again. Worked fine!
+
# gstreamer
+
#* This was the next problem for me. I installed ''p5-xml-libxslt, py-libxslt by hand'', cleaned gstreamer, and then tried the installation again. Worked fine!
+
#liboil
+
#* First, I ran <code>sudo port upgrade gtk-doc</code>
+
#* Then, I installed the newest version of the liboil library from [http://liboil.freedesktop.org/download/] and then tried to make the liboil library again. (From the manual download). This worked. I would assume it would work for the port version as well.
+
# nautilus
+
#* This was the last problem for me. To get around the error, I had to create a soft link for the ''libintl.3.dylib'' file in my /opt/local/lib/ directory.  
+
  
=== Conclusion ===
+
sudo port install graphviz-gui
Those errors were the ones I ran into. I was able to get gramps to work after that, with some of the same glitches as described below.
+
 
 +
==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.
 +
 
 +
 
 +
[[Category:Developers/Packaging]]

Latest revision as of 12:30, 19 February 2013

Installing Gramps using MacPorts

Current version available from MacPorts is: 3.4.7

  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.