Actually I have to use a very restricted PC (no local installation without IT dep. Confirmation), so I want to use cygwin via an external device (and also only to download/install it only once for my three private laptops ) As far as I understood various posts, Cygwin is free software which can be ported to.
The Cygwin toolkit provides Unix tools on the Windows platform.You need only install the Cygwin toolkit if you are rebuildingfrom 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
compileris part of the JDK, which is available at:http://www.oracle.com/technetwork/java/javase/downloads/index.html
.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
Compiling the Ptolemy II Matlab interface and Java NativeInterface (JNI) actor requires that the a C compiler be installed.The Matlab interface requires that Matlab be installed on the local machine.
Under Windows, to build the Matlab interface, you mustuse Mingw from http://www.mingw.org.
The gcc compiler isfairly large, so we provide four separate self-extracting downloadsof the Cygwin tools and MinGW for Windows.
The gcc compiler isfairly large, so we provide four separate self-extracting downloadsof the Cygwin tools and MinGW for Windows.
cygwin-basic-20100224.zip
(23.8 Mb) - The tools necessary to compile and configure Ptolemy IIexcept for the Matlab interface and C code generation.cygwin-devel-20100224.zip
(97.4 Mb) - The tools necessary to compile and configure Ptolemy IIincluding the Matlab interface and the JNI Actor. This download includeseverything incygwin-basic-20100224.zip
above.- The sources for the above downloadables can be found in
cygwin-devel-src-20100224.zip
(270 Mb) This download includes just the sources and should be downloaded in the same directoryas one of the other zip files above. mingw20100511.zip
(30.8 Mb) - Mingw necessary to compile the Ptolemy/Matlab interface
Cygwin Installation instructions
- Most Ptolemy II users will
Downloadcygwin-basic-20100224.zip
(23.8 Mb)
If you are running under Windows and have Matlab installed on your local machine, then
Downloadcygwin-devel-20100224.zip
(97.4 Mb).
The files will be extracted to an seemingly arbitrary directory.You may find it easier to change the directory to something short, likec:tempcygwin
. - Find the download and click on
INSTALL.bat
.This script will invokesetup.exe
for you. - After installation, you may remove the temporary directory in which the zip file was unzipped.
c:/cygwin/etc/passwd
is created during the Cygwin installation. If your Windows account is a domain accountand not a local account, then you may need to add an entrytoc:/cygwin/etc/passwd
by hand.
To do this, start up the Cygwin bash shell withStart ->?Cygwin
Then use themkpasswd
command to appenda line with your login information, for example, I used:mkpasswd -h
will print out help for themkpasswd
command- Set bash to ignore carriage returns 'r' The problem is that shell scripts such as
$PTII/bin/vergil
will fail:Another possible solution is to create a~/.bash_profile
that containsTo find your home directory, start up Cygwin bash and typecd;pwd
. Then use an editor like Wordpad.See also:http://cygwin.com/ml/cygwin-announce/2006-12/msg00026.html
- The 2006 Cygwin announcement that covers this.- This problem is similar to the Cygwin CR/NL problems. What has changed is that the Cygwin installer appears to no longer offer the possibility of selecting DOS as the default file type.
http://comments.gmane.org/gmane.os.cygwin/115453
- discussion about the issue.http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
- info about why paths likec:/
do not use/etc/fstab
.http://cygwin.com/cygwin-ug-net/using.html#mount-table
- Cygwin manual for/etc/fstab
.
- Another possibility is to use perl to convert the rn characters to n:
- Follow the instructions in theSet the value of the
PTII
environment variable section
Installing Mingw for Windows
The default gcc compiler shipped with Cygwin will produce .dll files that do not work properly. The solution is to install Mingw.
You may either install from the Ptolemy Mingw zip file or installfrom the Mingw website.
Installing from the Ptolemy Mingw zip file
- Download the
mingw20100511.zip
file. - Add
c:mingwbin
to your PATH, see below.
Installing from the Mingw website
- Install Cygwin either from http://www.cygwin.com or from the Ptolemy distribution.
- Start Cygwin bash, create c:mingw
- Copy the mingwdl.sh script from http://www.mingw.org/wiki/HOWTO_Install_the_MinGW_GCC_Compiler_Suite and paste it into an editor and create c:/mingw/mingwdl.sh
- Execute mingwdl.sh, which will download the binaries into c:/mingwdl.
- Unzip the .tar.gz files
- Uncompress the .tar.lzma files:
- untar the .tar files. Create a script called mingwuntar.sh:
- Run mingwuntar.sh
- Add c:mingwbin to your Windows path Based on the Mingw instructions:
- Right-click on 'My Computer' and select 'Properties'.
- Click Advanced | Environment Variables.
- In the box entitled 'System Variables' scroll down to the line that says 'PATH' and double-click the entry.
- You will be presented with a dialog box with two text boxes, the bottom text box allows you to edit the PATH variable. It is very important that you do not delete the existing values in the PATH string, this will cause all sorts of problems for you!
- Scroll to the end of the string and at the end add ';C:mingwbin'. Don't forget the semicolon; this separates the entries in the PATH.
- press OK | OK | OK and you are done.
Installing Cygwin from the Web
We provide prebuilt downloads of the subset of Cygwin tools needed torecompile Ptolemy II. The Cygwin tools are constantly being updated, forthe latest versions, see the Cygwin website.Instructions for installing Cygwin from the Cygwin websitecan 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 tohighlight text by left clicking and dragging the mouse over the textand then hitting the Enter key to copy the highlighted text.
The Cygwin faq at
How can I copy and paste into Cygwin console windows? http://www.cygwin.com/faq/faq.html#SEC55
says:Under Windows NT, open the properties dialog of the consolewindow. The options contain a toggle button, named 'Quick editmode'. It must be ON. Save the properties.
Under Windows 9x, open the properties dialog of the consolewindow. Select the Misc tab. Uncheck Fast Pasting. Check QuickEdit.
You can also bind the insert key to paste from the clipboard by addingthe following line to your .inputrc file:
More precisely:- 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 selectproperties
- 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 February, 2010 includes:
The download of devel cygwin tools from February, 2010, includes allthe tools from the basic cygwin download listed above andIn addition, we include select tools for Viptos,the Ptolemy/TinyOS interface.
Cygwin Free Download Latest Version Setup for Windows. It is full offline installer standalone setup of Cygwin for 32 And 64 Bit.
Cygwin Overview
Cygwin is very useful software which can be used to install some certain tools and libraries which in turn make the desktop environment Linux-like in Windows OS. This software actually acts like an emulator which can run Linux Apps on Microsoft Windows. It has been developed to help the professionals and programmers to use the Linux apps on Microsoft Windows. For example you can run KDE, GNOME and Apache on Microsoft Windows.
There are certain components included in this software. there is a component DLL is present which provides POSIX API functionality and also gives a Unix feel on Windows Computers. As the software is itself very complex so does its installation. There are some interventions which are required by User. There are also other components like Terminals, text Utilities, Shells, servers, and some other utilities. All in all this software is one useful piece for people which confront problems regarding Linux Apps compatibility with Microsoft Windows. And the most unique fact of this software is that the developers don’t need to make big changes to the code, but a few adjustments and additions work fine.
Features of Cygwin
Below are some noticeable features which you’ll experience after Cygwin free download.
- A handy software to run Linux Apps on Windows.
- It has many useful tools to turn the environment more like Linux.
- It has many components which gives functionality to other apps.
- A complex yet useful software for programmers.
- Terminals, text utilities, shells and server components are also added.
Cygwin Technical Setup Details
- Software Full Name: Cygwin
- Setup File Name: Cygwin.zip
- Full Setup Size: 1.4 MB
- Setup Type: Offline Installer / Full Standalone Setup
- Compatibility Architecture: 32 Bit (x86) / 64 Bit (x64)
- Latest Version Release Added On: 25th Sep 2015
- License: Free Trail
- Developers: Cygwin Homepage
System Requirements For Cygwin
Before you start Cygwin free download, make sure your PC meets minimum system requirements.
- Operating System: Windows XP/vista/7/8
- Memory (RAM): 512MB
- Hard Disk Space: 50MB
- Processor: Intel Pentium III or higher
Cygwin Free Download
Click on below button to start Cygwin Free Download. This is complete offline installer and standalone setup for Cygwin. This would be compatible with both 32 bit and 64 bit windows.