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.
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.
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.
http://www.powerarchiver.com. This
program will help you to decompress the files with .tar.gz extension. Install the program.
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.
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.
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.
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
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
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).
New and Shortcut. As a file name,
enter
c:\emacs\bin\runemacs.exe
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.
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.