📄 install
字号:
check the documentation of your utility to specify the description
file and any necessary macros (__ALPHA__, GNUC, or VAXC)
Or if you don't have a suitable make:
@BUILDVMS
To tell gnuplot where to find the help library:
$ define gnuplot$help disk:[directory]gnuplot.hlb
Alternatively, put the help in the main system help library.
AmigaOS
-------
Using Aztec C 5.2a
make -f makefile.ami
Using SAS/C 6.1 or later versions
smake -f makefile.amg
You can also copy makefile.amg to smakefile and just type `smake'.
At the beginning of makefile.amg you will find a configuration
section where you have to adjust all settings which control the build
process. Most important is probably to select the terminal devices
which should be supported. You can create a version offering
png graphics as well as gif support. Use the appropriate settings
for CPU and MATH to compile for a specific machine type.
Be sure to enable only those devices for which you have the
necessary software already installed. Also ensure that the
libraries and the sources are all compiled using the same
settings for CPU and MATH.
Using gcc: see Unix
Atari/TOS
---------
Using gcc 2.x as unix cross- or native compiler
make -f makefile.st
(Edit top of makefile.st for name of crosscompiler or choose native setting)
Using PureC
use gnuplot.prj
Using TurboC
use gnuplot.prj
(Edit gnuplot.prj according to notes at the beginning)
MS-Windows
----------
You'll need a help compiler from Microsoft to build the on-line help
for gnuplot. Some versions of that, including the one coming with
version 4.0 of MSVC++ and with Borland C++ Builder 1.0, appear unable
to compile gnuplot.rtf. The freely available "Help Workshop" download
from Microsoft is known to work, so in case of down you should get and
use that.
General install instructions:
Change into the "src" subdirectory.
Build the program using one of the ways shown below this note.
Put wgnuplot.exe, wgnuplot.hlp and wgnuplot.mnu all in a single
directory somewhere. You may want to add that directory to your PATH.
There's no installer for gnuplot, so if you want a desktop link,
program manager group or an association of *.plt or *.gpl files to
wgnuplot, you'll have to do all that yourself.
Using Visual C++ and compiling for Windows (32-bit, i.e. 9x and NT family)
nmake -f ..\config\makefile.nt
or
copy ..\config\makefile.nt makefile
nmake
Using the MinGW32 port of gcc: you need parts of the Micrsoft SDK for the
moment.
copy ..\config\makefile.mgw makefile
Look through the Makefile to see if you need to make any changes.
make
make install
Using the Cygwin port of gcc, which includes MinGW32: you need parts of
the Microsoft SDK for the moment.
copy ..\config\makefile.cyg makefile
Look through the Makefile to see if you need to make any changes.
make
Using Borland C++ 32 bit compilers, like the freely downloadable BCC55:
copy ..\config\makefile.win makefile.win
Look through makefile.win to see if you need to make any changes.
You'll probably have to change TC and some others.
make -fmakefile.win WIN32=1
[NOTE: the 16-bit Windows version no longer work. gnuplot has become
too large.]
Using Microsoft C 7.0 and compiling for MS-Windows (16-bit)
copy ..\config\makefile.msw makefile
Look through the Makefile to see if you need to make any changes.
nmake
Using Borland C++ 3.1 and compiling for MS-Windows (16-bit)
copy ..\config\makefile.win makefile.win
Look through the Makefile to see if you need to make any changes.
You'll probably have to change TC and some others.
make -fmakefile.win
MSDOS
-----
Using DJGPP (32-bit DOS port of GNU CC)
Basically the same as Unix+configure. Andris Pavenis <pavenis@lanet.lv>
has contributed a shell script which makes the whole process even easier:
just run djconfig.sh, and then make.
Only if you don't have a complete Unix toolset installed with your
DJGPP, it is recommended to use makefile.dj2 instead:
copy makefile.dj2 makefile
make
[NOTE: the 16-bit DOS versions of gnuplot no longer work. gnuplot has
outgrown this platform.]
Using Microsoft C 7.0 targetting 16-bit DOS
copy makefile.msc makefile
nmake
Using Borland C++ 3.0 targetting 16-bit DOS
copy makefile.tc makefile
Edit makefile to change TC, BIN, BGI, BGIOBJ. You may also want to turn
off overlays (See manual for more on overlays).
make
You'll want to copy the compiled executable and gnuplot.gih to a
directory on your PATH to make them easily usable.
The file gnuplot.gih is needed for help on the PC.
If the file gnuplot.gih is not in the default directory, then use:
set GNUHELP={full path name of gnuplot.gih}
OS/2
----
To compile under OS/2 (2.x and above) you need the development suite EMX 0.9
(including gcc). You should also have GNU Make and IBM's IPFC (Information
Presentation Facility Compiler, available from the Developer's Toolkit;
nowadays it's accessible through an IBM website for free!).
At the beginning of makefile.os2 you will find a configuration section where
you have to adjust all settings which control the build process. Most important
is probably to select the terminal devices which should be supported. You can
create a version offering PM graphics as well as X11 support (to use with
XFree86). Support for these two terminals is provided by additional
executables.
Be sure to enable only those devices for which you have the necessary software
already installed. Also ensure that the libraries and the sources are all
compiled (not) using the '-Zmt' flags.
Executing
make -f makefile.os2
should create a default build while
make -f makefile.os2 help
will show you all pre-defined targets.
See other sections of the manuals for more information about installing/using
gnuplot on OS/2.
More details about ./configure --with-PACKAGE[=OPTION]
======================================================
Every `--with-PACKAGE' option sets a `with_package' variable in configure.
Depending on how `--with-PACKAGE' was invoked, there are only three different
possible values for the `with_package' variable:
Option $with_package
----------------------------------------
(not specified) yes or no; default set in configure
--with-package yes
--with-package=yes yes
--with-package=no no
--with-package=DIR DIR
--without-package no
In gnuplot, the following --with-PACKAGE options are available. The
--with-PACKAGE=DIR form is always required if a package is installed in a
non-default location that is not searched by the preprocessor or linker.
--with-readline
Use gnuplot's builtin readline function. This is enabled by default.
--without-readline
(same as --with-readline=no) Do not use gnuplot's builtin readline function.
--with-readline=gnu
Use the GNU readline library instead of gnuplot's builtin readline.
Version 4.2 or better is required.
Please note that there is a bug in GNU readline up to and including 4.3
that makes gnuplot exit if the terminal window is resized. A fix is
described at
http://sourceforge.net/tracker/index.php?func=detail&aid=608874&group_id=2055&atid=102055 .
--with-readline[=DIR]
Use the GNU readline library instead of gnuplot's builtin readline.
This form is required if GNU readline is not installed in a default
location.
--with-gd[=DIR]
Dto. for Thomas Boutell's gd library. configure determines whether
the found library supports gif, png, jpeg, and freetype. This option
is on by default, i.e. configure will check if the library exists,
and use it if found, if you don't specify any option regarding this
package.
--with-png[=DIR]
Dto. for the png library. This option is on by default.
--with-pdf[=DIR]
Dto. for the pdf library. This option is on by default.
--with-plot[=DIR]
If used without the DIR argument, this option selects the standard
UNIX plot library, if available. If used with the DIR argument,
configure looks for the plot library from GNU plotutils version 2.2
or better. The option is off by default.
--with-gif=png
If specified, the gif driver produces png images instead of gif.
Other arguments to this option are ignored! This feature exists
mainly for backwards compatibility with old plot scripts, and is
off by default.
Platform compiler problems
==========================
This section addresses trouble shooting and testing issues. Userland questions
are answered in the FAQ.
Platform and compiler notes
---------------------------
Generally, if you think that configure has made a mistake in detecting
platform features, you should consider that a bug either in GNU autoconf
or in gnuplot's use of it, which you should report. As a workaround
you can override such faulty tests in a site-wide collection
of preset configure test results, or manually override them after running
configure.
Example:
configure was for some reason unable to detect the memset() function, but
you are sure it is ok to use on your platform. To fix that, you'll have
to edit the generated config.h and change the line
/* #undef HAVE_MEMSET */
to
#define HAVE_MEMSET 1
Note that changing such defines from outside config.h, eg. via
'make DEFS=-DHAVE_MEMSET' is wrong, because config.h will usually
override such changes. Also note that this change will be lost
whenever you re-run configure.
- gcc -ansi
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -