source: tags/arb_5.1/arb_OS_X.txt

Last change on this file was 6202, checked in by westram, 15 years ago
File size: 5.1 KB
Line 
1Provided by: Matt Cottrell
2revised Sept 4, 2009
3
4
5Building 64-bit ARB on Mac OS X (Snow Leopard 10.6)
6
7Warning - installing the 64-bit version of ARB will break ARB installed by Fink!
8
9The cshrc shell is indicated by the % prompt.
10Downloads are placed on the Desktop and final installation will be in /usr/local/arb
11------------------------------------------------------------------------------------
12
13- If ARB was previously installed using Fink you must first remove ARB and then skip to step (XQuartz).
14       
15        % fink remove arb
16
17- If arb is not installed by fink start by installing the Developer Tools from the Leopard disc.
18
19        Use the Mac OS X Snow Leopard DVD to install the developer tools
20
21- Install Fink
22
23        Get it from (http://www.finkproject.org/)
24        These instructions assume that you installed the source distribution.
25
26- Install sed, lynx and dos2unix using Fink
27
28        %fink install sed lynx dos2unix xmkmf libsablot
29
30        %sudo ln -s /sw/lib/xmkmf/bin/xmkmf /usr/X11/bin/xmkmf
31
32Note: The BSD flavor of sed provided with OS X will not work with ARB.  You need the GNU sed provided by Fink.
33      There are other ways to install GNU sed, lynx and dos2unix, but using Fink is probably the easiest.
34
35- Install the latest version of XQuartz
36
37        Get it from (http://xquartz.macosforge.org/trac/wiki/Releases)
38       
39        Use the downloaded X11-*.*.*.dmg to install.
40
41- Download and install Open Motif from the IST web site
42
43        Get it from (http://www.ist-inc.com/DOWNLOADS/motif_download.html)
44        Download the version for Mac OS X 10.5 Universal (Leopard)
45        Use the downloaded openmotif-compat-2.1.32_IST.macosx10.5.dmg to install
46
47- Download and install freeglut
48
49        Get it from (http://freeglut.sourceforge.net/)
50       
51        % cd freeglut-2.4.0
52        % env CC=gcc\ -arch\ x86_64 LDFLAGS=-L/Developer/SDKs/MacOSX10.5.sdk/usr/X11/lib/ CPPFLAGS=-I/Developer/SDKs/MacOSX10.5.sdk/usr/X11/include/ ./configure --disable-warnings
53        % make
54        % sudo make install
55       
56- Download the OpenGL Extension Wrangler Library (GLEW)
57
58        Get it from (http://glew.sourceforge.net/install.html)
59       
60        % cd glew
61        % dos2unix Makefile
62        % dos2unix config/config.guess
63        % chmod a+x config/config.guess
64        % env LD=-arch\ x86_64 CFLAGS.EXTRA=-arch\ x86_64 make
65        % sudo env GLEW_DEST=/usr/local make install
66       
67- Build and install 64-bit libGLw provided by mesa
68
69        Get it from (http://www.mesa3d.org/)
70        Click on the Source Forge link and and then download MesaLib
71       
72        % cd Mesa-7.2
73        % env CFLAGS=-arch\ x86_64 CXXFLAGS=-arch\ x86_64 CPPFLAGS=-I/usr/OpenMotif/include/ LDFLAGS=-L/usr/OpenMotif/lib ./configure --enable-motif
74        % make
75        % sudo make install
76        % cd src/glw
77        % make
78        % sudo make install
79
80- Build and install 64-bit tiff (v3.8.2)
81
82        Get it from (http://dl.maptools.org/dl/libtiff/)
83       
84        % cd tiff-3.8.2
85        % env CFLAGS=-arch\ x86_64 CXXFLAGS=-arch\ x86_64 ./configure
86        % make
87        % sudo make install
88
89- Download the latest ARB build
90
91        % mkdir ARB
92        % cd ARB
93       
94        In your browser get arb from http://download.arb-home.de/release/latest/
95       
96        % tar xzvf arbsrc.tgz
97 
98        or check out from svn
99 
100    % svn co --username coder --password gimmeARBsource http://svn.mikro.biologie.tu-muenchen.de/svn/branches/stable_5.0 ARB
101 
102  Create and edit config.makefile like this:
103       
104        % cp config.makefile.template config.makefile
105 
106  Change these lines in config.makefile
107 
108        From: ARB_64 := 0# compile 64bit ARB version (still very buggy!)
109        To:   ARB_64 := 1# compile 64bit ARB version (still very buggy!)
110 
111        From: MACH  := LINUX# Linux g++  and gcc
112        To:  #MACH  := LINUX# Linux g++  and gcc
113 
114        From: LINUX := 1
115        To:  #LINUX := 1
116
117        From: #MACH   := DARWIN#
118        To:    MACH   := DARWIN#
119 
120        From: #DARWIN := 1
121        To:    DARWIN := 1
122 
123  Prepare by setting the ARBHOME and PATH environment variables
124 
125        % env ARBHOME=/Users/<your_user_name>/Desktop/ARB
126        % env PATH=$PATH:/Users/<your_user_name>/Desktop/ARB
127 
128  Build ARB
129 
130        % make all
131       
132  After the compiler is finished you will be prompted to start ARB by typing "arb".
133  Give it a try now, but then quit ARB and continue the installation steps below.
134
135- Install arb to /usr/local/arb
136
137        % sudo mkdir -p /usr/local/arb
138        % sudo cp -R bin /usr/local/arb
139        % sudo cp -R lib /usr/local/arb
140        % sudo cp -R GDEHELP /usr/local/arb
141        % sudo cp -R PERL_SCRIPTS /usr/local/arb
142        % sudo cp -R HELP_SOURCE/oldhelp/ /usr/local/arb/lib/help
143        % sudo cp demo.arb /usr/local/arb
144        % sudo cp -r SH /usr/local/arb
145
146- Fix the permissions on the pt_server directory
147
148        % sudo chmod a+w /usr/local/arb/lib/pts
149
150- Edit your .cshrc file
151
152  Add these lines
153 
154  setenv ARBHOME /usr/local/bin
155  setenv PATH $PATH:/usr/local/bin
156
157- Update the loaded environment variables and path
158
159        % source ~/.cshrc
160        % rehash
161 
162- Start ARB
163
164        % arb
165
166end
Note: See TracBrowser for help on using the repository browser.