next up previous
Next: Introduction to emacs Up: f77intro Previous: Setting up your command-line

Download and setup

Make sure that the command-line terminal is open on your desktop. We now proceed with downloading and setting up the emacs editor and the g77 compiler.


Image win_logo.gif
Follow these steps to download Emacs for Windows 95/98/NT/2k/Me/XP. All steps must be performed exactly as written below, otherwise you may not be able to run Emacs.

  1. Pick the drive and a folder in which you want to install Emacs. We will assume that it is c:\emacs, but you can choose a different one. If you choose a different drive or a different folder, you will need to adapt the directions below accordingly.

  2. Download the Power Archiver for Windows from http://www.powerarchiver.com. This program will help you to decompress the files with .tar.gz extension. Install the program.

  3. Find ftp://ftp.gnu.org/gnu/windows/emacs/ and download emacs-*-bin-i386.tar.gz to c:\emacs.tar.gz by right-clicking on the link. Make sure the entire file was downloaded without any network errors. Use Save Link As... or Save Target As... This file is a compressed distribution of emacs for Windows.

  4. Go to http://www.geocities.com/Athens/Olympus/5564/g77.htm and find the links to files g77exe.zip and g77lib.zip. Save both of them as c:\g77exe.zip and c:\g77lib.zip by using Save Link As... or Save Target As... The former file is a compressed distribution of g77 Fortran compiler for Windows and the latter one is the set of standard Fortran libraries.

  5. Check the c:\ folder to make sure that it contains files emacs.tar.gz, g77exe.zip and g77lib.zip. Uncompress all of them using the Power Archiver which you downloaded above.

  6. Check the c:\ folder to make sure that it contains subfolders emacs-*, with the asterisk replacing the version number, and g77. To make our life a little easier, rename the Emacs folder by typing the command
    rename emacs-* emacs
    in your command-line terminal. Do not forget to insert the correct version number at the place of the asterisk.

  7. The last step is to set up the environment paths to all the executable files you just installed.

    Windows 95/98/NT:
    Edit your autoexec.bat file (lives in the c:\ folder) and add these lines at the end:
    set PATH=%PATH%;c:\emacs\bin;c:\g77\bin
    set LIBRARY_PATH=c:\g77\lib
    Restart your machine.

    Windows 2k/Me/XP:
    Follow Start > Settings > Control Panel > System. Then select Advanced followed by Environment Variables. Find the variable PATH, go to its end and type ;c:\emacs\bin followed by ;c:\g77\bin. Then, enter a new variable (if does not exist) with name LIBRARY_PATH and assign it the following value: c:\g77\lib. Restart your machine or simply log off and log on (under Windows XP).

  8. At this point, you might want to create an icon on your desktop for Emacs that you just installed. Right-click on your desktop and choose New and Shortcut. As a file name, enter
    c:\emacs\bin\runemacs.exe
    and name the icon as Emacs. Now, you should be in business! If it doesn't work, you made a mistake in one of the steps above. Double check and, if something goes really wrong, let me know.


Image mac_logo.gif
If you are running MacOS X, emacs should have been installed automatically. Try it by typing emacs in your terminal window. GNU Fortran compiler is not a part of the standard distribution and has to be downloaded and installed separately. Please, check with web site hpc.sourceforge.net where you find under section g77 all you need to install your g77 compiler. The same site also provides a link to the original g77 documentation. In order to compile your source codes under MacOS X platform, it is necessary to install the Apple Developer's Toolkit from the CD that you obtained with your MacOS X (Jaguar/Panther) system.


next up previous
Next: Introduction to emacs Up: f77intro Previous: Setting up your command-line
Roman Groger
2004-09-27