![]() |
Intro to Scientific Computing |
In order to test that the programs I specificied to be installed on the
previous page were installed correctly,
I have made a small shell script which you can run to see
if the programs turn up.
Download this file and save it in your Home directory. I'll come back to this concept later--for now you just need to know that your home directory is the folder: C:\cygwin\home\YOURUSERNAME (if you have trouble finding it, open My Computer from Start, find your C: drive, then the folder cygwin, then home, then the one that has your username).
Next open an xterm by clicking launchxterm.bat.
At the prompt, type:
(that's "csh" "space" "testscript.csh")
You should see something like this (it's pretty long--just scroll through):
=========================================
Basic system
=========================================
-----------------------------------------
X: unix GUI windowing system
-----------------------------------------
Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 6.8.99.901-4
Contact: cygwin-xfree@cygwin.com
-----------------------------------------
tcsh: popular shell
-----------------------------------------
tcsh 6.15.00 (Astron) 2007-03-03 (i386-intel-cygwin) options 8b,nls,dl,al,kan,rh,color,dspm
=========================================
Editors
=========================================
-----------------------------------------
emacs: The One True Editor
-----------------------------------------
GNU Emacs 21.2.1
Copyright (C) 2001 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
-----------------------------------------
vi: the default unix editor
-----------------------------------------
VIM - Vi IMproved 7.1 (2007 May 12, compiled May 14 2007 16:29:51)
Compiled by corinna@coffee
Huge version without GUI. Features included (+) or not (-):
+arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent
-clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
+cryptv +cscope +cursorshape +dialog_con +diff +digraphs -dnd -ebcdic
+emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path +find_in_path
+folding -footer +fork() +gettext -hangul_input +iconv +insert_expand +jumplist
+keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap +menu
+mksession +modify_fname +mouse -mouseshape +mouse_dec -mouse_gpm
-mouse_jsbterm +mouse_netterm +mouse_xterm +multi_byte +multi_lang -mzscheme
-netbeans_intg -osfiletype +path_extra -perl +postscript +printer +profile
-python +quickfix +reltime +rightleft -ruby +scrollbind +signs +smartindent
-sniff +statusline -sun_workshop +syntax +tag_binary +tag_old_static
-tag_any_white -tcl +terminfo +termresponse +textobjects +title -toolbar
+user_commands +vertsplit +virtualedit +visual +visualextra +viminfo +vreplace
+wildignore +wildmenu +windows +writebackup -X11 -xfontset -xim -xsmp
-xterm_clipboard -xterm_save
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2
Linking:
gcc -L/usr/local/lib -o vim.exe -lncurses -liconv -lintl
=========================================
Math
=========================================
-----------------------------------------
Gnuplot: plotting package
-----------------------------------------
gnuplot 4.2 patchlevel 2
-----------------------------------------
octave: MatLab clone
-----------------------------------------
GNU Octave, version 2.1.73 (i686-pc-cygwin).
Copyright (C) 2006 John W. Eaton.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTIBILITY or
FITNESS FOR A PARTICULAR PURPOSE.
Additional information about Octave is available at http://www.octave.org.
Please contribute if you find this software useful.
For more information, visit http://www.octave.org/help-wanted.html
Report bugs to (but first, please read
http://www.octave.org/bugs.html to learn how to write a helpful report).
=========================================
Network Connection
=========================================
-----------------------------------------
ssh: Secure Shell
-----------------------------------------
OpenSSH_4.7p1, OpenSSL 0.9.8g 19 Oct 2007
=========================================
Text Publishing
=========================================
-----------------------------------------
latex: Mathematical typesetting package
-----------------------------------------
pdfeTeX 3.141592-1.21a-2.2 (Web2C 7.5.4)
kpathsea version 3.5.4
Copyright (C) 1997-2004 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Kpathsea is copyright (C) 1997-2004 Free Software Foundation, Inc.
There is NO warranty. Redistribution of this software is
covered by the terms of both the pdfeTeX copyright and
the GNU General Public License.
For more information about these matters, see the files
named COPYING and the pdfeTeX source.
Primary author of pdfeTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Kpathsea written by Karl Berry and others.
-----------------------------------------
gv: GhostView PS and PDF viewer
-----------------------------------------
gv 3.6.3
=========================================
Programming
=========================================
-----------------------------------------
gcc: C Compiler
-----------------------------------------
gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-----------------------------------------
g++: C++ Compiler
-----------------------------------------
g++ (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-----------------------------------------
perl: Insanely useful scripting language
-----------------------------------------
This is perl, v5.8.8 built for cygwin-thread-multi-64int
(with 8 registered patches, see perl -V for more detail)
Copyright 1987-2006, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
=========================================
Utilities
=========================================
-----------------------------------------
ImageMagick: image conversion tool
-----------------------------------------
Version: ImageMagick 6.3.0 11/05/06 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2006 ImageMagick Studio LLC
-----------------------------------------
wget: web suction device
-----------------------------------------
GNU Wget 1.10.2
Copyright (C) 2005 Free Software Foundation, Inc.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Originally written by Hrvoje Niksic .
If you see File not found or some similar error message,
then that package did not get installed correctly.
Note too, that you can scroll back using the scroll bar on the right hand side of the xterm.
This is the same as you just typed (in fact you can use
the UP arrow to recall the previous command),
but to the end of the command you add:
(the ">&" is "greater than" "ampersand" with no space in between them)
This should create a file in your home directory called: "YOURNAMEtest.out"
This will let me see that your installation is good.
You just employed "Output Redirection" using: ">" which we will talk about soon.