This page describes the procedures that I have followed when installing some of the GNU/UNIX like programs on my MS-Windows computers. I have made these notes mainly for myself but they might be useful also for you so therefore I have made them available for everyone. (I'm sorry that the links appear in the frames but this will change some day when I get more time.) The programs that I have installation descriptions for are:
cygwin, cygwin/XFree86, cygwin/XFree86 (latest), KDE/Cygwin, xfig, ispell, Aspell, swap caps control, ghostscript, sketch, ps2pdf, latex2html, gnumex.I just followed the standard procedure for installing the cygwin package and installed all files with one important exception: I did not install the teTeX package that is included since that small package gives problems with my other big LaTeX installation. The simple procedure is
Download from internet,
and downloaded it to the directory D:/home/eriksson/cygwin. ftp://sunsite.cnlab-switch.ch which was the closest.
teTeX-beta package by clicking on
the icon with the recycle arrows (such that the text says skip).
cd ~ ln -s .bashrc .bash_profile
cd /cygdrive/d/Home/eriksson/cygwin/xfree4.0.1
sh Xinstall.sh -checkjust to see that it was working. (This script installs the program but it does also check what version of the X server that you should install). In this case it is the ix86-distribution.
extract.exe.bz2 usingbunzip2 extract.exe.bz2
sh Xinstall.shand answered yes to all questions except for the package:
Xjdoc which is the documentation in Japanese.
cd /usr/X11R6/bin tar -xzf /cygdrive/d/Home/eriksson/cygwin/xfree4.0.1/startup-scripts.tgz
.bashrc file, so that it will have the path to the XFree86 binary directory
and so that the display will be on the current machine.
# Add the XFree86 distribution to the path PATH=$PATH:/usr/X11R6/bin export PATH # Here I set the DISPLAY variable for this computer. DISPLAY=127.0.0.1:0.0 export DISPLAYI also have a copy of my .bashrc file available as a text file.
xkeymap tool. I followed the following steps.
xmkmf
make but this failed when
building the main exe-file due to that the option -lXpm is
not set an according to a mailing list -lXpm is usually
included when -lXaw is used. So I changed a line in the
MakefileOld line: XAWLIB = -lXaw New line: XAWLIB = -lXaw -lXpmNow i run
makeand it successfully produces the
xkeymap.exe file but it fails when geneating an
html file. Any way I just installed the program without the
documentation with make install
startx and then the
xkeymap program and generated a
.xmodmap file that I added to my
startxwin.sh script.
cd / tar -xjvf /cygdrive/c/Downloads/Cygwin/kde2.2.1/qt-2.3.1-b1.tar.bz2and added the binary directory to the path in my
.bashrc file.
pcre was
installed, by running setup.exe and looking at the
files that I had downloaded and installed.
tar -xjvf /cygdrive/c/Downloads/Cygwin/kde2.2.1/cygipc-1.11-1.tar.bz2 tar -xjvf /cygdrive/c/Downloads/Cygwin/kde2.2.1/audiofile-0.2.1-20011218.tar.bz2 tar -xjvf /cygdrive/c/Downloads/Cygwin/kde2.2.1/kde-xlib-1.1.tar.bz2During the last operation tar complained and said that the following files did already exist
tar: usr/X11R6/bin/libICE.dll: Cannot open: File exists tar: usr/X11R6/bin/libXext.dll: Cannot open: File existsThis means that these files must be included in the XFree86 distribution.
tar -xjvf /cygdrive/c/Downloads/Cygwin/kde2.2.1/kdelibs-2.2.1-a2.tar.bz2 tar -xjvf /cygdrive/c/Downloads/Cygwin/kde2.2.1/kdelibs-2.2.1-a2-update1.tar.bz2 tar -xjvf /cygdrive/c/Downloads/Cygwin/kde2.2.1/kdelibs-2.2.1-a2-u2.tar.bz2 tar -xjvf /cygdrive/c/Downloads/Cygwin/kde2.2.1/kdelibs-2.2.1-a2-u3.tar.bz2
tar -xjvf /cygdrive/c/Downloads/Cygwin/kde2.2.1/kdebase-2.2.1-a2.tar.bz2 tar -xjvf /cygdrive/c/Downloads/Cygwin/kde2.2.1/kdebase-2.2.1-a2-u1.tar.bz2 tar -xjvf /cygdrive/c/Downloads/Cygwin/kde2.2.1/kdegames-2.2.1-a2.tar.bz2I also set some paths and variables in the .bashrc file.
export KDEDIR=/opt/kde2 export QTDIR=/usr/local/lib/qt2 export KDEHOME=$HOME/.kde2 export PATH=$KDEDIR/bin:$KDEDIR/lib:$QTDIR/bin:/usr/X11R6/bin:$PATH export LTDL_LIBRARY_PATH=$KDEDIR/lib:$KDEDIR/bin:/usr/X11R6/bin export LD_LIBRARY_PATH=$KDEDIR/lib:$KDEDIR/bin:/usr/X11R6/binI did not touch the following that I downloaded.
kdevelop-a1.tar.bz2 kdepim-2.2.1-a2.tar.bz2 avl-1.4.0.tar.gz kde-x-1.2.tar.bz2 libxml2-20011126.tar.bz2 startkde.txtFinally I made a shell script that starts xwindows with kde.
I downloaded the sofware following the link from the following page that describes the fig format and some of the applications that can read and write the format. After my installation I learned that there is an installation guide for anolder version of xfig, it might be informative.
The binary installation of xfig v 3.2.2 for the cygwin release also includes transfig which
is very convenient. The installation of the binary distribution was quite simple I just
unzipped and untared it. There was one small problem occured and that was that the binary
distribution was installed in another directory X11R6.4 so thats why I tared
the files once again and removed the X11R6.4 directory and untared everything
in the X11R6 directory.
cd /usr ln -s X11R6 X11R6.4 cd / gunzip /cygdrive/d/Home/eriksson/cygwin/xfig/xfig-3.2.2-cygwin-b20.1-bin.tar.gz tar -xvf /cygdrive/d/Home/eriksson/cygwin/xfig/xfig-3.2.2-cygwin-b20.1-bin.tar cd /usr/X11R6.4/ tar -cvf ../xfig.tar . cd .. rm -R X11R6.4 cd X11R6 tar -xvf ../xfig.tar
Now to start xfig it is necessary to follow the following procedure.
Start the Xserver (in my case i use PC-Xware). Then start cygwin. Finally in cygwin start xfig with: xfig &
C:\DnLdPr\Cygwin\xfig\.
cd /cygdrive/c/DnLdPr/Cygwin/xfig gunzip xfig-3.2.3d-cygwin-1.3-bin.tar.gz pushd / tar -xvf /cygdrive/c/DnLdPr/Cygwin/xfig/xfig-3.2.3d-cygwin-1.3-bin.tar popd gzip xfig-3.2.3d-cygwin-1.3-bin.tar
cd ~ startxwin.sh xfig&
alias xfig="xfig -lat -po -me -spec -startg 3 -startfo 10 -but_ 3"
/usr/local so
that the binary ispell file goes into /usr/local/bin.
cygwin1.dll from /usr/bin to
/usr/local/bin.
C:\cygwin\usr\local\bin to the path.
;;--------------
;; ispell4:
;;-------------
(autoload 'ispell-word "ispell4"
"Check spelling of word at or before point" t)
(autoload 'ispell-complete-word "ispell4"
"Complete word at or before point" t)
(autoload 'ispell-region "ispell4"
"Check spelling of every word in the region" t)
(autoload 'ispell-buffer "ispell4"
"Check spelling of every word in the buffer" t)
(setq ispell-command "C:/Programs/ispell4/exe/ispell.exe"
ispell-look-dictionary "C:/Programs/ispell4/ispell.words"
ispell-look-command "C:/Programs/ispell4/exe/look.exe"
ispell-command-options (list "-d" "C:/Programs/ispell4/ispell.dict")
)
After installing XEmacs my ispell did not work properly so I tried to install Aspell. With this alpha installation spelling works fine except for that there is a problem when spell checking documents in latex mode in XEmacs. Symptom: the program crashes and Norton Crash guard makes an error log. There is also a bug reported on this crash on SourceForge I personally think that this bug depends on that regexps are sent to ispell in the tex-specific-mode that ispell.el generates.
During the installation I just followed the instructions in the documentation files.
C:/aspell/.
C:/aspell/ to the path.
init.el
(setq-default ispell-program-name "aspell")
D:\Programs\Aladdin.
D:\Programs\Aladdin\gs7.03\bin
C:\Programs\Aladdin\gs7.03\libto the path.
gs which on a
pc corresponds to gswin32c.exe. Therefore I finally had to change
the file C:\cygwin\usr\X11R6\bin\gs to point
to the correct location and version of my ghostscript. In particular I
changed the following line
GHOSTSCRIPT="/cygdrive/c/program files/Aladdin/gs6.01/bin/gswin32c.exe"to read the following text
GHOSTSCRIPT="/cygdrive/c/Programs/Aladdin/gs7.03/bin/gswin32c.exe"
/usr/local/bin/netpbm to the
/usr/local/bin directory that is included in the
path. Finally I removed the empty netpbm directory.
cd / tar -xzf /cygdrive/c/Downloads/LaTeX-related/netpbm-9.24-cygwin-1.3-bin.tar cd usr/local/bin/netpbm mv * .. cd .. rmdir netpbm/
/usr/local/latex2htmlcd /usr/local tar -xvf /cygdrive/c/Downloads/LaTeX-related/latex2html/l2h99_1.tar
latex2html, texexpand,
pstoimg, configure-pstoimg and install-test and
makemap, so that the point to the right directory where my
perl executable is, changed the first line from
#!/usr/local/bin/perl to #!/usr/bin/perl.
cd /usr/local/latex2html ./install-test(during this procedure it is important that netpbm is included in the path). During the configuration I choose the option to generate the gif-files.
/usr/local/src.
cd /usr/local/src gunzip Imaging-1.1.3.tar.gz tar -xvf Imaging-1.1.3.tar cd Imaging-1.1.3
/usr/include/X11
ln -s /usr/X11R6/include/X11 /usr/include/X11
libtcl8.0.a to
libtc80.a so I made a minor change in the Makefile.
From: -L/usr/local/lib -ltcl8.0 -ltk8.0 to -L/usr/local/lib -ltcl80 -ltk80
./BUILDME
/usr/local/src.
/usr/inlcude/python2.2/Extensions, see last
item in the list for the code.
From: for version in ["8.3", "8.2", "8.1", "8.0"]: To: for version in ["8.3", "8.2", "8.1", "80"]:
cd / tar -jxvf /cygdrive/c/DnLdPr/Cygwin/kde/cygipc-1.11-1.tar.bz2
cd /usr/local/src/sketch-0.6.14/ ./setup.py configure mkdir /usr/include/python2.2/Extensions cp ../Imaging-1.1.3/libImaging/ImConfig.h /usr/include/python2.2/Extensions/ cp ../Imaging-1.1.3/libImaging/ImPlatform.h /usr/include/python2.2/Extensions/ cp ../Imaging-1.1.3/libImaging/Imaging.h /usr/include/python2.2/Extensions/ ./setup.py configure ./setup.py buildBut this fails and in the Pax-subdirectory I get the following error for the file
tkwinobject.o and now my patience is exhausted
running 'make' in Pax gcc -DUSE_DL_IMPORT -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/usr/include/python2.2 -I/usr/include/python2.2 -I/usr/include/ -I/usr/include/ -I/usr/X11R6/include -c ././tkwinobject.c -o ./tkwinobject.o ././tkwinobject.c:851: initializer element is not constant ././tkwinobject.c:851: (near initialization for `TkWinType.ob_type') make: *** [tkwinobject.o] Error 1 exiting because of errorsthe same goes for a file in the Filter-directory
gcc -DUSE_DL_IMPORT -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/usr/include/python2.2 -I/usr/include/python2.2 -c ././filterobj.c -o ./filterobj.o ././filterobj.c:947: initializer element is not constant ././filterobj.c:947: (near initialization for `FilterType.ob_type') make: *** [filterobj.o] Error 1
cygXpm-noX4.dll was missing, this file is
available in the the cygwin xpm-nox package and can be found in the
directory CYGROOT/usr/bin.
export CVSROOT=/cygdrive/c/home/CVSROOT/ # for bash setenv CVSROOT /cygdrive/c/home/CVSROOT/ # if you use tcsh
cvs initThis is only done once for each repository.
cvs import -m "Imported source files" VehiclePro VehiclePro start
cvs checkout PACKAGE_NAME
cvs commit [FILE_NAME]