Difference between revisions of "EiffelOnMac"

(Installation using MacPorts)
m
Line 6: Line 6:
 
== Installation using MacPorts ==
 
== Installation using MacPorts ==
  
MacPorts is a great tool that allows you to use many Unix applications on the Mac. We have created a package in the MacPorts repository that allows you to to install a fairly recent build with all dependencies in a convenient way:
+
MacPorts is a great tool that allows you to use many Unix applications on the Mac. We have created a package in the MacPorts repository that allows you to to install a fairly recent build with all dependencies in a convenient way. After installing MacPorts as described [http://trac.macosforge.org/projects/macports/wiki/InstallingMacPorts here] simply type
After installing MacPorts as described [http://trac.macosforge.org/projects/macports/wiki/InstallingMacPorts here] simply type
+
 
<pre>
 
<pre>
 
sudo port install eiffelstudio
 
sudo port install eiffelstudio
Line 13: Line 12:
 
and you're ready to go (after a few hours compiling that is :)). Compiling on a new Intel Mac reportedly takes about an hour. An old 800 MHz PowerPC takes about seven hours.
 
and you're ready to go (after a few hours compiling that is :)). Compiling on a new Intel Mac reportedly takes about an hour. An old 800 MHz PowerPC takes about seven hours.
  
Note that you may need to precompile the '''base''' and '''vision2''' libraries once with admin rights. To do that, you can type: "sudo estudio" in an x-term window and then use the precompilation wizard (Tools->Precompilation wizard) or simply create a new project that will be precompiled.
+
Note that you may need to precompile the '''base''' and '''vision2''' libraries once with admin rights. To do that, you can type: "sudo estudio" in an xterm window and then use the precompilation wizard (Tools>Precompilation wizard) or simply create a new project that will be precompiled.
  
 
=== Working around firewall issues ===
 
=== Working around firewall issues ===
Line 32: Line 31:
 
If you don't have internet at all, or the above seems to be too complicated you can also create a binary package file on a computer that has MacPorts installed and then install it on the target computer. Please note that it is not recommended to install such a binary package on a computer that has MacPorts installed, since the binary installer does not (yet) talk to the MacPorts system to register the ports, so you might get ugly conflicts.
 
If you don't have internet at all, or the above seems to be too complicated you can also create a binary package file on a computer that has MacPorts installed and then install it on the target computer. Please note that it is not recommended to install such a binary package on a computer that has MacPorts installed, since the binary installer does not (yet) talk to the MacPorts system to register the ports, so you might get ugly conflicts.
  
That being said, you can create a MacOS X installer for eiffelstudio and all dependencies by typing
+
That being said, you can create a Mac OS X installer for EiffelStudio and all dependencies by typing
 
<pre>
 
<pre>
 
sudo port mpkg eiffelstudio
 
sudo port mpkg eiffelstudio
Line 58: Line 57:
 
export PATH=$ES_PATH:$PATH
 
export PATH=$ES_PATH:$PATH
 
</pre>
 
</pre>
* The F10 and F11 debugging shortcuts conflict with the standard Exposé keys, so use the toolbar or reassign the Exposé keys in System Preferences.
+
* The F10 and F11 debugging shortcuts conflict with the standard Exposé keys. Here are some workarounds:
 +
** Use the toolbar instead.
 +
** Reassign these shortcuts in EiffelStudio (Tools>Preferences).
 +
** Reassign the Exposé keys in System Preferences.

Revision as of 14:58, 24 October 2007


This page gives you an overview about how to get EiffelStudio running on your Mac.

Installation using MacPorts

MacPorts is a great tool that allows you to use many Unix applications on the Mac. We have created a package in the MacPorts repository that allows you to to install a fairly recent build with all dependencies in a convenient way. After installing MacPorts as described here simply type

sudo port install eiffelstudio

and you're ready to go (after a few hours compiling that is :)). Compiling on a new Intel Mac reportedly takes about an hour. An old 800 MHz PowerPC takes about seven hours.

Note that you may need to precompile the base and vision2 libraries once with admin rights. To do that, you can type: "sudo estudio" in an xterm window and then use the precompilation wizard (Tools>Precompilation wizard) or simply create a new project that will be precompiled.

Working around firewall issues

If you can't use the MacPorts rsync repository due to your firewall you can check out the macports source tree via SVN. To do this open a Terminal window and cd to a directory where you want your ports tree to live. Then type:

svn co http://svn.macports.org/repository/macports/trunk/dports/

After the command has finished open the file /opt/local/etc/macports/sources.conf in your favorite text editor. Comment out the rsync URL and add a file URL that points to the dports directory that you just checked out from the SVN repository. Your sources.conf file will then look something like that:

# To get macports from the macports rsync server use:
# rsync://rsync.macports.org/release/ports/

file:///Volumes/Data/SVN/macports/dports

Note: The above steps only work when you have an SVN client installed. This is a bit of a chicken-egg problem, since you usually get the SVN client from macports but you can also download svn from http://www.codingmonkeys.de/mbo.

If you don't have internet at all, or the above seems to be too complicated you can also create a binary package file on a computer that has MacPorts installed and then install it on the target computer. Please note that it is not recommended to install such a binary package on a computer that has MacPorts installed, since the binary installer does not (yet) talk to the MacPorts system to register the ports, so you might get ugly conflicts.

That being said, you can create a Mac OS X installer for EiffelStudio and all dependencies by typing

sudo port mpkg eiffelstudio

You can then find the .mpkg file in /opt/local/var/macports/build/<folder name that contains the word eiffelstudio>

The folder name might look something like this "_Volumes_Data_SVN_macports_dports_lang_eiffelstudio". Just copy the .mpkg file to the target computer. It can then be installed by simply double clicking it. Note however that the build and and the target machine should be of the same architecture (Intel or PPC) and of the same major OS release.

FAQ

Any more questions?

Hints

  • Use Helvetica 12 as Editor font. If you prefer a smaller font, use Hei 10.
  • Pick and Drop works with Apple-key + mouse click.
  • To set up the correct (default) browsers use "open" as your command-line browser in Tools>Preferences...

Preferences open mac.jpg

  • To run the ec compiler from your shell, set up variables similar to these (e.g. in ~/.profile):
# Setting variables for EiffelStudio.
export ISE_EIFFEL=/Applications/MacPorts/Eiffel60
export ISE_PLATFORM=macosx-ppc
export ISE_PROJECTS=$HOME
export ES_PATH=$ISE_EIFFEL/studio/spec/$ISE_PLATFORM/bin
export PATH=$ES_PATH:$PATH
  • The F10 and F11 debugging shortcuts conflict with the standard Exposé keys. Here are some workarounds:
    • Use the toolbar instead.
    • Reassign these shortcuts in EiffelStudio (Tools>Preferences).
    • Reassign the Exposé keys in System Preferences.