version 1.1, 2001/10/02 11:16:55 |
version 1.2, 2002/09/11 07:26:37 |
Line 3 This file describes the various ways you can run PARI/ |
|
Line 3 This file describes the various ways you can run PARI/ |
|
|
|
WARNING: The only way to have a fully functional GP is to install GNU/Linux. |
WARNING: The only way to have a fully functional GP is to install GNU/Linux. |
It's a one hour job to install a minimal Linux system from current Linux |
It's a one hour job to install a minimal Linux system from current Linux |
distributions. The LILO boot system enables you to have Windows and Linux |
distributions. Dual boot systems (LILO, Grub) enable you to have Windows and |
coexisting peacefully on your hard drive, so you can have the best of both |
Linux coexisting peacefully on your hard drive, so you can have the best of |
worlds. The other solutions all stick to the Windows environment, suffer from |
both worlds. The other solutions stick to the Windows environment, suffer |
various problems, and are discussed in the rest of this document. |
from various problems, and are discussed in the rest of this document. |
|
|
It is also advised, but not mandatory to get the Documentation and Examples |
It is also advised, but not mandatory to get the Documentation and Examples |
archive |
archive |
Line 47 NOTE: all .gz and .ZIP files are compressed files (or |
|
Line 47 NOTE: all .gz and .ZIP files are compressed files (or |
|
This is the preferred solution, but it requires fetching the cygwin |
This is the preferred solution, but it requires fetching the cygwin |
compatibility library first. We provide this file as |
compatibility library first. We provide this file as |
|
|
ftp://megrez.math.u-bordeaux.fr/pub/pari/windows/cygwin/cygwin1.dll.gz |
ftp://megrez.math.u-bordeaux.fr/pub/pari/windows/cygwin1.dll.gz |
|
|
(size: 268k, 600k uncompressed). It needs to be downloaded only once. |
(size: 268k, 600k uncompressed). It needs to be downloaded only once. |
Then fetch the GP binary |
Then fetch the GP binary |
|
|
ftp://megrez.math.u-bordeaux.fr/pub/pari/windows/cygwin/gp-xxx.exe.gz |
ftp://megrez.math.u-bordeaux.fr/pub/pari/windows/gp-xxx.exe.gz |
|
|
and put it in the same directory as the dll (or dump the dll somewhere in |
and put it in the same directory as the dll (or dump the dll somewhere in |
your PATH, as you prefer). |
your PATH, as you prefer). |
|
|
* no hi-res plots, most graphics commands disabled (you can still output to |
* no hi-res plots, most graphics commands disabled (you can still output to |
a PostScript file) |
a PostScript file) |
|
|
NOTE: you might wish to download the full cygwin distribution from |
NOTE: if you're interested in a Unix-style development environment under |
http://sources.redhat.com/cygwin/ [ the Download and Installation process is |
Windows, you might wish to download the full cygwin distribution from |
automated and quite simple, you should be home in a few mouse clicks... |
http://sources.redhat.com/cygwin/ |
provided your internet connection is good enough. ]. It provides a neat |
You will then be able to build GP from the generic (unix) sources [ using the |
gcc-based development environment under Windows, under which most Unix |
standard './Configure; make' idiom ] |
packages can easily be ported. In particular you will be able to build GP |
|
from the generic (unix) sources. |
|
|
|
|
%%%%%%%%%%%%% Solution 2: Build GP from sources %%%%%%%%%%%%%%%%%%% |
|
|
%%%%%%%%%%%%% Solution 2: The native (mingw) binary %%%%%%%%%%%%%%%%% |
|
|
|
Fetch the GP binary (cross-compiled using the gcc-mingw compiler): |
|
EITHER |
|
|
|
ftp://megrez.math.u-bordeaux.fr/pub/pari/windows/gp-xxx.exe.gz |
|
(includes readline line-editing, history, keyword completion, facilities) |
|
|
|
OR |
|
|
|
ftp://megrez.math.u-bordeaux.fr/pub/pari/windows/gp-norl-xxx.exe.gz |
|
(doesn't include readline). |
|
|
|
PROBLEMS: |
|
* no hi-res plots, most graphics commands disabled (you can still output to |
|
a PostScript file) |
|
|
|
* doesn't work well when started in a console from a MS-DOS shell: |
|
- on ^C gp quits |
|
- redirecting standard input as in 'gp < file' crashes gp |
|
|
|
SOLUTION: None of these things occur if you start gp by double-clicking |
|
on its icon, as is customary for Windows application. ^C still doesn't |
|
always interrupt computations, but at least it doesn't kill gp. |
|
|
|
* colors don't work (escape sequences printed "as is"). |
|
|
|
* no extended on-line help |
|
|
|
* [readline binary only]: the AltGr key doesn't work. If you have a US |
|
keyboard, you don't care. But if you have, e.g a French keyboard, you |
|
won't be able to produce {}, [], \, ... |
|
|
|
SOLUTION: |
|
create an INPUTRC file for readline (cf user's manual or readline |
|
manual). E.g add a line |
|
|
|
set INPUTRC=C:\INPUTRC.txt (for instance). |
|
|
|
to your AUTOEXEC.BAT. Then create this file, and add lines of the form |
|
|
|
"\M-\\": "\\" (\M stands for ALT or META, \C for CONTROL) |
|
"\M-\[": "[" |
|
|
|
etc... This binds (for readline purposes only, doesn't affect regular |
|
Windows operations) the key sequence on the LHS, to some "meaning" on the |
|
RHS, here an ordinary character. E.g inserting a line |
|
|
|
"a": "b" |
|
|
|
will cause GP to insert a "b" when you type an "a". Depending on your |
|
precise keyboard layout, you may have to fiddle a bit with the keyseq and |
|
replacement text before getting something sensible. |
|
|
|
%%%%%%%%%%%%% Solution 3: The RSX runtime package %%%%%%%%%%%%%%%%%%% |
|
|
|
You can use the GP binary from the archive |
|
|
|
ftp://megrez.math.u-bordeaux.fr/pub/pari/dos/GPBxxx.ZIP |
|
|
|
PROBLEMS: |
|
* no hi-res plots, most graphics commands disabled (you can still output to |
|
a PostScript file). |
|
|
|
* more than twice SLOWER than all the other binaries described here. |
|
|
|
%%%%%%%%%%%%% Solution 4: Build GP from sources %%%%%%%%%%%%%%%%%%% |
|
|
|
That is, the generic Unix sources |
That is, the generic Unix sources |
|
|
ftp://megrez.math.u-bordeaux.fr/pub/pari/pari.tgz |
ftp://megrez.math.u-bordeaux.fr/pub/pari/pari.tgz |
|
|
* no hi-res plots, most graphics commands disabled (you can still output to |
* no hi-res plots, most graphics commands disabled (you can still output to |
a PostScript file). |
a PostScript file). |
|
|
* slower than all gcc-compiled binaries (faster than RSX version though). |
* slower than gcc-compiled binaries. |
|
|
* no extended on-line help |
* no extended on-line help |
|
|