Cygwin Installation
The Cygwin toolkit provides Unix tools on the Windows platform. You need only install the Cygwin toolkit if you are rebuilding from source and intend to develop your own actors using Java.Note that compile your own actors, you will also need the
javac
compiler. The javac
compiler
is part of the JDK, which is available at:
http://java.sun.com/j2se/1.3/
.
The javac
compiler is not present in the
Java Runtime Environment (JRE)
The Cygwin home page is at
http://sources.redhat.com/cygwin/
Complete installation instructions can be found at
http://sources.redhat.com/cygwin/faq
.
Installing Cygwin from the self-extracting executable
The Ptolemy II Matlab interface use the GNU gcc compiler and requires that Matlab be installed on the local machine. The gcc compiler is fairly large, so we provide three separate self-extracting downloads of the cygwin tools
-
cygwinBasic.exe
(9.8 Mb) - The tools necessary to compile and configure Ptolemy II except for the Matlab interface. -
cygwingDevel.exe
(16.7 Mb) - The tools necessary to compile and configure Ptolemy II including the Matlab interface. This download includes everything incygwinBasic.exe
above.
The sources for the above downloadables can be found in
cygwingDevelSrc.exe
(56.1 Mb)
We provide a self-extracting .exe file that contains the the set of tools necessary to configure and compile Ptolemy II.
The download of basic cygwin tools includes:
ash-20020131-1 bash-2.05a-3 cygwin-1.3.10-1 fileutils-4.1-1 findutils-4.1 gdbm-1.8.0-4 grep-2.5-1 gzip-1.3.2-1 less-374-1 libintl-0.10.38-3 libintl1-0.10.40-1 libncurses5-5.2-1 libncurses6-5.2-8 libreadline4-4.1-2 libreadline5-4.2a-1 login-1.4-3 make-3.79.1-5 ncurses-5.2-8 openssh-3.1p1-1 openssl-0.9.6c-3 pcre-3.7-1 readline-4.2a-1 termcap-20020403-1 terminfo-5.2-1 textutils-2.0.21-1 w32api-1.3-2 which-1.5-1 zlib-1.1.4-1
The download of devel cygwin tools includes all the tools from the basic cygwin download listed above and
autoconf-stable-2.13-4 autoconf-2.53-1 binutils-20011002-1 gcc-2.95.3-5 mingw-runtime-1.3-2 mktemp-1.4-1
- Most users will
Download and executecygwinBasic.exe
(9.8 Mb).
If you are running under Windows and have Matlab installed on your local machine, then
Download and executecygwinDevel.exe
(16.7 Mb).
The files will be extracted to an seemingly arbitrary directory. You may find it easier to change the directory to something short, likec:\temp\cygwin
. - Run
setup.exe
- Click on
Next
- Select
Install from Local Directory
and click onNext
. - Keep the default of
C:\cygwin
for theSelect Root Install Directory
.
Keep the defaultAll Users
,
Change theDefault Text File Type
toDOS
(If you select Unix instead of DOS, then you will likely have Cygwin CR/NL problems with CVS)
and then click onNext
. - Keep the default for
Local Package Directory
and click onNext
. - The
Select packages to install
window will come up with the default settings, we need to change fromdefault
toinstall
click on the worddefault
that is to the right ofAll
. The subpages should then change fromdefault
toInstall
. In the screen shot below, we have just clicked ondefault
:
- Select
Next
, which will install all the packages. - Select
Create Desktop Icon
andAdd to Start Menu
according to your preferences. - Remove the temporary directory where you extracted the files.
-
c:/cygwin/etc/passwd
is created during the Cygwin installation. If your Windows account is a domain account and not a local account, then you may need to add an entry toc:/cygwin/etc/passwd
by hand.
To do this, start up the Cygwin bash shell with Start ->?Cygwin
Then use themkpasswd
command to append a line with your login information, for example, I used:mkpasswd -d -u cxh --path-to-home=/cygdrive/c/users >> /etc/passwd
mkpasswd -h
will print out help for themkpasswd
command - Follow the instructions in the
Set the value of the
PTII
environment variable section
Installing Cygwin from the Web
We provide prebuilt downloads of the subset of Cygwin tools needed to recompile Ptolemy II. The Cygwin tools are constantly being updated, for the latest versions, see the Cygwin website.Instructions for installing Cygwin from the Cygwin website can be found on the for Ptolemy II Installation Page
Enabling Copy in Cygwin Bash under XP
You may need to enable copy and paste in the bash shell window.If copy and paste are working properly, then you should be able to highlight text by left clicking and dragging the mouse over the text and then hitting the Enter key to copy the highlighted text.
The Cygwin faq at
http://www.cygwin.com/faq/faq.html#SEC54
says:
How can I copy and paste into Cygwin console windows?More precisely:Under Windows NT, open the properties dialog of the console window. The options contain a toggle button, named "Quick edit mode". It must be ON. Save the properties.
Under Windows 9x, open the properties dialog of the console window. Select the Misc tab. Uncheck Fast Pasting. Check QuickEdit.
You can also bind the insert key to paste from the clipboard by adding the following line to your .inputrc file:
"\e[2~": paste-from-clipboard
- Start up bash by doing Start -> Programs -> Cygwin -> Cygwin Bash Shell.
- Right click on the icon in the upper left of the title bar and select properties
- Under Options, select 'QuickEdit Mode', hit ok
- Select 'Modify shortcut that started this window', hit ok