1[See below for an alternative way]
2
3In order to install Kile on MacOS X, you need the following things:
4- a working LaTeX distribution
5- the KDE libraries
6- and Kile itself, of course
7
8Installing X11
9--------------
10
11[X11 does not need to be installed with Qt4 as it can use the Aqua framework.]
12
13
14Installing all the rest through Fink
15------------------------------------
16
17Fink is the packaging system from Debian ported to MacOS X. Installing Fink itself is very straightforward, so only two things will be mentioned here:
18- you must download and install the latest Xcode version from Apple (free download, just requires registration),
19- make sure Fink uses the package repository compatible with your system (specifically, if you have MacOS X 10.4, use the 10.4 branch and *not* the 10.4-transitional branch).
20
21Fink lets you choose between precompiled, ready-to-use, packages, and compiling them yourself. Practically speaking, the Fink project provides few up-to-date precompiled packages, so compilation is often necessary. But don't worry, the procedure is automatic in any case.
22
23After that, installing the rest is very straightforward:
24
25- LaTeX distribution: install packages "tetex" and "tetex-base".
26- KDE libraries: the bare minimum would be package "kdebase3-unified", but you should also install packages like "kpdf", "kdvi" and "kghostview" to make best use of Kile. Installing a localisation package to have dialogs in your language would also be nice ; for example, the French package is called "kde-i18n-french".
27- Kile: its package is called "kile".
28- Other useful packages, depending on your habits: "bibview", "gnuplot", "xfig", "beamer", "texpower"... Just go shopping with Fink.
29
30Have fun!
31
32Fink project: http://fink.sourceforge.net
33
34
35Installing Kile through Macports
36--------------------------------
37
38Macports is a source-based package manager, from which it is possible to install the whole software suite needed for Kile.
39Macports can be installed from a package installer, which can be found for each Apple platform at: http://www.macports.org/install.php.
40
41Configuring Macports:
42When Macports is installed, it needs to be configured slightly in order to ensure that the correct configurations are prepared for Kile. For this, run:
43	sudo pico /opt/local/etc/macports/variants.conf
44and add:
45	+no_x11 +quartz +qt4
46at the end of the file.
47
48Then, run
49	sudo port selfupdate
50in order to ensure that latest versions of the softwares will be installed.
51
52Installing Kile:
53At this point, you can run
54	sudo port install kile-devel
55kile-devel is the KDE4 port for Kile. This will install all the libraries needed for Kile, including Qt4, and KDE packages. This compilation will take a lot of time, but you can follow the installation progress for each package. At the end of the installation, you need to run some commands in order to finish the configuration, to ensure that DBUS will work, and to ensure you have access to KDE preferences:
56	sudo launchctl load -w /Library/LaunchDaemons/org.freedesktop.dbus-system.plist
57	launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist
58	sudo chown -R $USER ~/Library/Preferences/KDE
59where $USER should be changed to your login name.
60
61Finding TeX paths:
62The application bundles of Apple do not recognize the $PATH variables set for xterm. We therefore need to set them for Kile. To set globally the $PATH variable for application bundles. For this, you can run the following commands:
63	mkdir ~/.MacOSX
64	pico ./.MacOSX/environments.plist
65and add the following text in environments.plist:
66	<?xml version="1.0" encoding="UTF-8"?>
67	<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
68	<plist version="1.0">
69	<dict>
70	        <key>KDEDIRS</key>
71	        <string>/opt/local</string>
72	        <key>PATH</key>
73	        <string>/opt/local/bin:/opt/local/sbin:$TEXPATH</string>
74	</dict>
75	</plist>
76where you should replace $TEXPATH with the path to your TeX distribution. Typically, it should be /opt/local/bin if you are using the TeXLive port of Macports (so that you can leave it blank), or /usr/local/texbin if you are using MacTeX package.
77
78Starting Kile:
79You should first start the /Applications/Macports/KDE4/kdeinit4.app program to set up the KDE environment. Then, you can start Kile, and check that everything work fine by performing a system check from the Settings menu.
80
81
82Other installation methods
83--------------------------
84
85[i-installer is deprecated as of Jan 1 2007]
86
87[This upper part of the readme was contributed by Thibaut Cousin (cousin@kde.org)]
88
89
90Kile SVN for KDE 4
91------------------
92It is now possible to install the latest version of Kile from the Subversion repository using the KDE 4 libraries. This means that you no longer need to use the X11 libraries. To achieve this you need:
93
94- KDE 4.1 packages from http://mac.kde.org/
95- Kile source from SVN
96
97First download the latest packages from http://mac.kde.org/?id=download
98At the time of writing the latest version is 4.1.2. Install the packages in order. Once these
99are installed you should have a working version of KDE for the Mac. If applications crash, try issuing the command:
100
101launchctl load -F /Library/LaunchAgents/org.freedesktop.dbus-session.plist
102
103to launch D-BUS. If when a program starts but gives an error about D-BUS being uncontactable, try rebooting.
104
105Once you have a working copy of KDE 4.1 the next step is to download and compile Kile from the Subversion repository. Follow the instructions on:
106
107http://techbase.kde.org/Projects/KDE_on_Mac_OS_X/Macbook_Manifesto
108
109This will set up your build environment. Next get the latest version using the command:
110
111svn co svn://anonsvn.kde.org/home/kde/trunk/extragear/office/kile
112
113Go into this directory in a terminal and run the commands:
114- cmake .
115- make
116- sudo make install
117
118You now have a running native version of Kile on your Mac!
119
120[The lower part of this readme was contributed by Thomas Quillinan <t.quillinan@gm...>]
121