Cygwin InstallationThe 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
is part of the JDK, which is available at:
javac compiler is not present in the
Java Runtime Environment (JRE)
The Cygwin home page is at
Complete installation instructions can be found at
Installing Cygwin from the self-extracting executable
Compiling the Ptolemy II Matlab interface and Java Native Interface (JNI) actor requires that the a C compiler be installed. The Matlab interface 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 for Windows.
cygwinBasic.exe(10.9 Mb) - The tools necessary to compile and configure Ptolemy II except for the Matlab interface and the JNI Actor.
cygwingDevel.exe(34.6 Mb) - The tools necessary to compile and configure Ptolemy II including the Matlab interface and the JNI Actor. This download includes everything in
The sources for the above downloadables can be found in
cygwingDevelSrc.exe (116.3 Mb)
Cygwin for MescalThe above downloads date from April, 2003 and are what we used to test the Ptolemy II 3.0.2 release. In October, 2003, we created a new set of Cygwin installers that include more up to date versionsmes of gcc and other tools. These Cygwin installers have not been tested with Ptolemy II 3.0.2, but Mescal users will want to download these updated version.
Cygwin Installation instructions
- Most Ptolemy II users will
Download and execute
If you are running under Windows and have Matlab installed on your local machine, then
Download and execute
The files will be extracted to an seemingly arbitrary directory. You may find it easier to change the directory to something short, like
setup.exeshould start up automatically for you.
- Click on
Install from Local Directoryshould already be selected for your. Click on
- Keep the default of
Select Root Install Directory.
Keep the default
Default Text File Typeto
(If you select Unix instead of DOS, then you will likely have Cygwin CR/NL problems with CVS)
and then click on
- Keep the default for
Local Package Directoryand click on
Select packages to installwindow will come up with the default settings, we need to change from
installclick on the word
defaultthat is to the right of
All. The subpages should then change from
Install. In the screen shot below, we have just clicked on
Next, which will install all the packages.
Create Desktop Iconand
Add to Start Menuaccording to your preferences.
- Remove the temporary directory where you extracted the files.
c:/cygwin/etc/passwdis 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 to
To do this, start up the Cygwin bash shell with Start ->?Cygwin
Then use the
mkpasswdcommand 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 -hwill print out help for the
- Follow the instructions in the
Set the value of the
PTIIenvironment variable section
Installing Cygwin from the WebWe 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 XPYou 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
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
Cygwin download contents
The download of basic cygwin tools from April, 2003 includes:
_update-info-dir-00160-1 ash-20020731-1 required by cvs base-files-1.3-1 base-passwd-1.1-1 bash-2.05b-9 binutils-20030307-1 bzip2-1.0.2-2 crypt-1.0-1.tar.gz required by cvs cvs-1.11.0-1.tar.gz cygwin-1.3.22-1 diffutils-2.8.1-1 fileutils-4.1-1 findutils-4.1.7-4 gawk-3.1.2-2 gdbm-1.8.0-5 grep-2.5-1 gzip-1.3.3-4 less-378-1 libbz2_1-1.0.2-2 libgdbm-184.108.40.206 required by cvs libiconv2-1.8-2 required by sed libintl1-0.10.40-1 libintl2-0.11.5-1 libncurses5-5.2-1 libncurses6-5.2-8 libncurses7-5.3-1 libreadline4-4.1-2 libreadline5-4.2-2 make-3.79.1-7 ncurses-5.3-1 Required by readline openssh-3.6.1p1-1 openssl-0.9.7a-3 Required by openssh openssl096-0.9.6i-3 pcre-3.7-1 Required by less (pcre = Perl Compatible regex) readline-4.3-2 sed-4.0.5-1 sh-utils-2.0.15-3 tar-1.13.25-1 termcap-20020930-1 terminfo-5.3-1 texinfo-4.2-4 textutils-2.0.21-1 which-1.5-1 zlib-1.1.4-1
The download of devel cygwin tools from April, 2003, includes all the tools from the basic cygwin download listed above and
autoconf-2.54-1 autoconf-devel-2.57.1 autoconf-stable-2.13-4 binutils-20030307-1 db3.1 required by perl gcc-3.2-3 gcc-mingw-20020817-5 m4-1.4-1 mingw-runtime-2.4-1 mktemp-1.4-1 perl-5-8.0-2.tar.gz sadly, autoconf requires perl w32api-2.3-1