<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7232.77">
<TITLE>FW: [ome-users] Re: OME on MacOS 10.4.4</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Installing OME on Mac OS X 10.4 (Tiger) from source, not Fink<BR>
(a/k/a The Manly Way)<BR>
<BR>
Date: 10/12/05 Author: Mike McCaughey (mike.mccaughey@vanderbilt.edu)<BR>
<BR>
About my system: This test install was done on a Dual 2.7GHz PowerPC G5 running Mac OS X 10.4.2<BR>
<BR>
1)Start with a clean install from the Tiger DVD distribution, then install all the updates provided with the System Preferences Software Update feature. You are likely to need to restart the Mac and run Software Update a few times to get everything.<BR>
<BR>
2)Install the Xcode Developer tools from the Apple Developer site (<A HREF="http://developer.apple.com/tools/xcode/">http://developer.apple.com/tools/xcode/</A>) and install. (Version 2.1)<BR>
<BR>
3)Download the OME stable tarball from the OME site and untar in a suitable location.<BR>
<BR>
4)Tiger as shipped is missing a number of libraries and perl modules needed for OME. Unfortunately, Fink does not have many libraries that work with 10.4, so well have to get the sources and build them from scratch. You can download all of the necessary source tarballs and place them in a suitable location for installation (some prefer /usr/local/src for this, or you could use a simple folder placed in your own documents folder, but put them all in the same place).<BR>
<BR>
5)First, youll need to get Term:ReadKey from CPAN. (Note: perl MCPAN e install Term::ReadKey does not seem to work.) Term::ReadKey can be found at <A HREF="http://search.cpan.org/~jstowe/TermReadKey-2.30/ReadKey.pm">http://search.cpan.org/~jstowe/TermReadKey-2.30/ReadKey.pm</A> (Version 2.30). Gunzip, untar, and run perl Makefile.PL; make; sudo make install to install. The OME installer script will not work at all until this is installed.<BR>
<BR>
6)Running sudo perl install l to list the libraries that are not installed. On my system, libpng, libjpeg, libtiff, libgd, and expat were not present. In addition, youll need zlib and freetype2 to get these libraries to build.<BR>
<BR>
7)Libpng: Download from www.libpng.org (version 1.2.8)<BR>
<BR>
8)Libjpeg: Download from www.ijg.org/files (version 6b)<BR>
<BR>
9)Libtiff: The latest version of libtiff (3.7.2) does not appear to build correctly under Darwin. I used v3.5.7 from the OME site. Download with curl O <A HREF="http://openmicroscopy.org/packages/source/tiff-v3.5.7-osx-LZW.tar.gz">http://openmicroscopy.org/packages/source/tiff-v3.5.7-osx-LZW.tar.gz</A>.<BR>
<BR>
10)Libgd: Download from <A HREF="http://www.boutell.com/gd">http://www.boutell.com/gd</A> (version 2.0.33)<BR>
<BR>
11)Expat: Download from <A HREF="http://sourceforge.net/projects/expat">http://sourceforge.net/projects/expat</A> (version 1.95.8)<BR>
<BR>
12)Zlib: Download from <A HREF="http://www.zlib.net">http://www.zlib.net</A> (version 1.2.3)<BR>
<BR>
13)Freetype2: Download from <A HREF="http://freetype.sourceforge.net">http://freetype.sourceforge.net</A> (version 2.1.10)<BR>
<BR>
14)Uncompress and untar the downloads into your chosen src folder, theyll create their own subfolders.<BR>
<BR>
15)Go to the libjpeg folder and carefully read the INSTALL file. Pay attention to directory renaming and placement for libjpeg and zlib folders. If you fail to follow the instructions, it wont work.<BR>
<BR>
16)Go to the zlib folder and do ./configure; make; sudo make install<BR>
<BR>
17)Go to libpng folder and do ./configure; make; sudo make install. Do sudo make test to see if it worked. It should.<BR>
<BR>
18)Go to libtiff folder, do ./configure; make; sudo make install<BR>
19)Go to libjpeg folder. Do: export DYLD_LIBRARY_PATH=/usr/local/lib<BR>
Then ln s `which glibtool` ./libtool<BR>
Then ./configure enable-shared; make; make test; sudo make install<BR>
<BR>
20)Go to freetype folder, do ./configure; make; sudo make install<BR>
<BR>
21)Go to gd folder, do sudo ln s /usr/X11/include/fontconfig /usr/local/include/fontconfig<BR>
Then ln s `which glibtool` ./libtool<BR>
Then ./configure; make; sudo make install<BR>
<BR>
22)Go to expat folder, do ./configure; make; sudo make install<BR>
<BR>
23)Go to the OME source folder, so sudo perl install.pl l This should show all libraries OK.<BR>
<BR>
24)Now we need to install a few more things to make postgres and apache work with OME.<BR>
<BR>
25)Readline: Download from <A HREF="http://directory.fsf.org/readline.html">http://directory.fsf.org/readline.html</A> (version 5.0)<BR>
<BR>
26)Gunzip,untar readline and cd to the readline folder.<BR>
Readline does not work with Darwin 8 without a minor edit: Do vi support/shobj-conf and search for the line containing darwin7*. Change the 7 to an 8.<BR>
Then ln s `which glibtool` ./libtool<BR>
Then ./configure; make; sudo make install<BR>
<BR>
27)Postgres: useful reading is OME Mac OS X install notes (Chriss page), as well as Apple postgres page linked from Chriss page.<BR>
Download postgres from postgres.org (version 8.0.4). unzip, untar, and cd to the directory. <BR>
Do ./configure; make; sudo make install and ignore all the warnings gcc 4.0 spews.<BR>
Make the user postgres on your mac as described on Chriss page.<BR>
Do sudo mkdir /usr/local/pgsql/data<BR>
Do sudo chown postgres /usr/local/pgsql/data<BR>
Do export PATH=$PATH:/usr/local/sbin<BR>
Do echo $PATH and verify both /usr/local/sbin and /usr/local/bin are there.<BR>
Take a moment to edit you .tshrc to make sure these are added to your path at login. You may also want to add the lines:<BR>
setenv PGDATA /usr/local/pgsql/data<BR>
setenv PATH ${PATH}:/usr/local/sbin:/usr/local/bin:/usr/local/pgsql/bin<BR>
Login as postgres: su l postgres (enter the password you used when you created the postgres user)<BR>
Init the database: /usr/local/pgsql/bin/initdb D /usr/local/pgsql/data<BR>
Start the server: /usr/local/pgsql/bin/pg_ctl D /usr/local/pgsql/data<BR>
<BR>
27) Now its time to fix the Perl libraries. Most of which are missing. Note the perl MCPAN doesnt seem to work so well, and the files in the OME repository are typically older versions. Lets build from scratch.<BR>
All of these libraries can be found using <A HREF="http://search.cpan.org">http://search.cpan.org</A>. All are installed the same way: download, unzip, untar, cd to folder, perl Makefile.PL; make; sudo make install<BR>
You will need:<BR>
DBI (version 1.48)<BR>
DBD::pg (Current version 1.43 does not work with OME, get 1.22 from search.cpan.org/~dwwheeler/DBD-Pg-1.22/)<BR>
HTML::Template (version 2.7)<BR>
IPC::Run (version 0.79)<BR>
Class::Accessor (version 0.22)<BR>
Class::Data::Inhertiable (version 0.04)<BR>
Exporter::Lite (version 0.01)<BR>
Universal::Exports (version 0.03)<BR>
GD (version 2.28)<BR>
HTML::Target (version 3.04)<BR>
LWP (version 5.083)<BR>
XML::NamespaceSupport (version 1.09)<BR>
XML::Soap (version 0.12)<BR>
XML::LibXML::Common (version 0.13)<BR>
XML::LibXML (version 1.58)<BR>
XML::Parser (version 2.34)<BR>
SOAP::Lite (version 0.60a)<BR>
XML::LibXSLT (version 1.58)<BR>
<BR>
Install in the above order.<BR>
<BR>
28)mod-perl is broken on Tiger. You must use mod_perl 1.x, as Tiger ships with apache version 1.3.33 and not 2.x. You can get the latest 1.x version of mod_perl (version 1.29) from <A HREF="http://search.cpan.org/~goyer/mod_perl">http://search.cpan.org/~goyer/mod_perl</A>. It wont install without apache source code, so youll need that too. You can get Apache 1.3.33 from <A HREF="http://www.tux.org/pub/net/apache/dist/httpd">http://www.tux.org/pub/net/apache/dist/httpd</A>). Unzip and untar apache, do not make anything in the apache directory!. Unzip and untar mod_perl, cd to the mod_perl directory, and install (perl Makefile.PL; make sudo make install)<BR>
<BR>
29)Finally, fix OME: cd to OME source directory, then vi src/C/omeis/OMEIS_Error.h and remove the line defining OMEIS_ERROR_STR<BR>
<BR>
30)Ready? Cd to OME directory, and sudo perl install.pl<BR>
<BR>
All should be well. You will for the most part be able to use defaults, as noted in Chriss page you should ignore the LDAP messages (hit y) that appear in the initial setup.<BR>
<BR>
31)Done! Try it out.<BR>
<BR>
Notes: OME isnt a big fan of DHCP, at least without reverse DNS. If you have this problem, enter your IP for the web site location. Itll break once your lease expires, but at least you can use it until you convince the network folks to fix DNS or give you a static IP or both. Youll need to reinstall.<BR>
The email address for the default ome owner must be less than 50 chars. Since mac machine names do not have this limitation, you may possible have to change the suggested default.<BR>
If you need to reinstall, or your first install crashes at some point after postgres ome database gets created, the commands:<BR>
sudo apachectl restart<BR>
/usr/local/pgsql/bin/dropdb ome<BR>
Can be your friend. Warning: they will blow away any data you have stored.<BR>
<BR>
<BR>
<BR>
<BR>
Michael J. MCaughey, PhD<BR>
Molecular Physiology and Biophysics<BR>
U9203 MRBIII<BR>
6-6175<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Jason Swedlow [<A HREF="mailto:jason@lifesci.dundee.ac.uk">mailto:jason@lifesci.dundee.ac.uk</A>]<BR>
Sent: Thu 1/19/2006 1:15 PM<BR>
To: McCaughey, Michael J<BR>
Subject: Re: [ome-users] Re: OME on MacOS 10.4.4<BR>
<BR>
Mike-<BR>
<BR>
Good to hear from you-- I need to talk with you-- will email in the <BR>
next few days.<BR>
<BR>
Did you attach your doc?? Did not receive??<BR>
<BR>
Thanks!<BR>
<BR>
Jason<BR>
<BR>
On 19 Jan 2006, at 19:05, McCaughey, Michael J wrote:<BR>
<BR>
> Joel-<BR>
> I got it running awhile back and have some very rough documentation <BR>
> on how to. I've attached it as a word doc. Let me know if you need <BR>
> additional help.<BR>
><BR>
> Mike<BR>
><BR>
><BR>
> Michael J. MCaughey, PhD<BR>
> Vanderbilt University School of Medicine<BR>
> Molecular Physiology and Biophysics<BR>
> U9203 MRBIII<BR>
> 6-6175<BR>
><BR>
><BR>
><BR>
> -----Original Message-----<BR>
> From: ome-users-bounces@lists.openmicroscopy.org.uk on behalf of <BR>
> Jason Swedlow<BR>
> Sent: Thu 1/19/2006 12:13 PM<BR>
> To: Joël Spaltenstein<BR>
> Cc: ome-users@lists.openmicroscopy.org.uk<BR>
> Subject: [ome-users] Re: OME on MacOS 10.4.4<BR>
><BR>
> Hi Joel-<BR>
><BR>
> What version of OME are you running?? Tell us a bit about the<BR>
> error. I am pretty sure Ilya Goldberg's group has OME CVS running<BR>
> under 10.4.x.<BR>
><BR>
> We are working towards a release of this code, so we don;t have to<BR>
> tell people to keep going for OME CVS.<BR>
><BR>
> Cheers,<BR>
><BR>
> Jason<BR>
><BR>
><BR>
> On 19 Jan 2006, at 17:15, Joël Spaltenstein wrote:<BR>
><BR>
> > Hi,<BR>
> ><BR>
> > I'm trying to install the OME server on a mac running OS X 10.4.4. I<BR>
> > saw that as of May last year you guys hadn't gotten it running yet,<BR>
> > have you made any progress? I've spent a good part of the day <BR>
> fighting<BR>
> > with the installer. I'm sure if I keep on fighting with it for a <BR>
> while<BR>
> > longer I'll be able to figure it out, but I was wondering if you <BR>
> would<BR>
> > have any tips for me.<BR>
> ><BR>
> > Thanks,<BR>
> > Joël<BR>
><BR>
><BR>
> **************************<BR>
> MSI/WTB Complex<BR>
> The University of Dundee<BR>
> Dow Street<BR>
> Dundee DD1 5EH<BR>
> United Kingdom<BR>
><BR>
> phone (01382) 345819<BR>
> Intl phone: 44 1382 345819<BR>
> FAX (01382) 348072<BR>
> email: jason@lifesci.dundee.ac.uk<BR>
><BR>
> Lab Page: <A HREF="http://www.dundee.ac.uk/lifesciences/swedlow/">http://www.dundee.ac.uk/lifesciences/swedlow/</A><BR>
> Open Microscopy Environment: <A HREF="http://openmicroscopy.org">http://openmicroscopy.org</A><BR>
> **************************<BR>
><BR>
> _______________________________________________<BR>
> ome-users mailing list<BR>
> ome-users@lists.openmicroscopy.org.uk<BR>
> <A HREF="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users">http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users</A><BR>
><BR>
><BR>
<BR>
<BR>
**************************<BR>
MSI/WTB Complex<BR>
The University of Dundee<BR>
Dow Street<BR>
Dundee DD1 5EH<BR>
United Kingdom<BR>
<BR>
phone (01382) 345819<BR>
Intl phone: 44 1382 345819<BR>
FAX (01382) 348072<BR>
email: jason@lifesci.dundee.ac.uk<BR>
<BR>
Lab Page: <A HREF="http://www.dundee.ac.uk/lifesciences/swedlow/">http://www.dundee.ac.uk/lifesciences/swedlow/</A><BR>
Open Microscopy Environment: <A HREF="http://openmicroscopy.org">http://openmicroscopy.org</A><BR>
**************************<BR>
<BR>
<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>