⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 install

📁 数学公式库--非常不错 The GNU Scientific Library (GSL) is a collection of routines for numerical computing. T
💻
📖 第 1 页 / 共 2 页
字号:
GSL - GNU Scientific Library============================Installation Instructions=========================GSL follows the standard GNU installation procedure.  To compile GSLyou will need an ANSI C-compiler.  After unpacking the distributionthe Makefiles can be prepared using the configure command,  ./configureYou can then build the library by typing,  makeBoth static and shared versions of the libraries will be compiled bydefault.  Compilation of shared libraries can be turned off byspecifying the `--disable-shared' option to `configure', e.g.    ./configure --disable-sharedIf you encounter problems building the library try using the aboveoption, because some platforms do not support shared libraries.For notes about problems with specific platforms and compilers see thenext section of this file (below).An extensive test suite is available.  After compiling the librarywith "make", it can be invoked with "make check" at the top level.The test output should be directed to a file rather than a terminal,with the command,   make check > log 2>&1to allow any errors to be examined in detail.  By default, only testfailures are shown.  To see the complete output, set the environmentvariable GSL_TEST_VERBOSE=1.If you run the tests and get some failures, please see the notes onplatform specific problems below.  If you find failures that are notmentioned, please report them to bug-gsl@gnu.org.The library can be installed using the command,  make installThe default installation directory prefix is /usr/local.  Consult the"Further Information" section below for instructions on installing thelibrary in another location or changing other default compilationoptions.                    ------------------------------Platform Specific Compilation Notes===================================This section documents any known issues with installing GSL onspecific platforms.  * General hints for all platforms  * AIX  * Compaq/DEC Alpha  * HP-UX  * IRIX  * MacOS X / PowerPC  * Microsoft Windows  * OpenBSD  * OS/2  * SolarisHints for any platform======================1) If there are problems building the library try using        ./configure --disable-sharedThis will turn off the compilation of shared libraries and may allowthe build process to complete successfully.  If you get any problems try this first.2) With gcc-2.95/2.96 the tests fail in the eigen/ directory.  This isdue to a compiler optimization bug which causes errors in themanipulation of complex numbers.  This is fixed in more recent versions of gcc.  Do not use the libraryif you encounter this problem---install a newer version of gcc.3) Attempts to run 'strip' on the static library libgsl.a will probablyproduce a broken library (it is known to happen with GNU binutilsstrip, and probably affects others too). The libgsl.a ar archive madeby libtool contains files with the same filenames from differentdirectories, and this causes the strip program to overwrite thesearchive entries.  If you need to produce a compact version of thelibrary compile without -g instead of using strip.make install-strip does not work, due to a minor problem with autoconfwhich is fixed in the 2.5 development version of autoconf.  In themeantime compile without -g instead if you need to reduce the file size.4) The configure script can fail with a segmentation fault on bash-2.01    $ ./configure    Segmentation faultThis is due to a bug in bash, related to the MAIL environmentvariable.  To work around it use     $ unset ENV MAIL MAILPATH    $ ./configurewhich should avoid the problem.Hints for AIX=============For compilation problems with the native compiler xlc, try disablingshared libraries,    setenv CC 'xlc'    setenv CFLAGS '-O -qmaxmem=8192'    ./configure --disable-shared    makeIf you get the error,   ld: 0711-781 ERROR: TOC overflow. you can try building the library with a larger linkertable-of-contents by setting LDFLAGS before compilation,   LDFLAGS="-Wl,-bbigtoc" ./configureOn older versions of AIX (e.g. 4.2) the size of the command-line islimited to 24kb, which causes linking to fail (due to the large numberof files to be linked). Unfortunately this limit cannot be increased.To link the library you may need to use a manual approach ofincrementally combining the object files in smaller groups.Hints for Compaq/DEC Alpha==========================When comping with GCC use the -mieee and -mfp-rounding-mode options as appropriate, e.g.    ./configure CFLAGS="-mieee -mfp-rounding-mode=d -g -O2"The library should compile successfully with Compaq's C compiler onTru64 Unix 'cc' using the -std, -ieee and -fprm options.  Use    ./configure CC=cc     make CFLAGS="-std -ieee -fprm d"to build the library this way.Use GNU tar to unpack the tar file, as Tru64 tar gives an errorhalfway through.Hints for HP-UX===============The default mode of the HP-UX C compiler does not use ANSI C.To compile GSL you need to select ANSI C mode with the followingconfiguration option:      CFLAGS="-Ae"  ./configureTo switch on optimization use CFLAGS="-Ae -O".Hints for IRIX (SGI)====================The library should be compiled with the CFLAGS option-OPT:IEEE_NaN_inf=ON to ensure correct IEEE arithmetic.  The tests insys/ will fail without this option.  The older deprecated option-OPT:IEEE_comparisons=ON will also work.The 32 bit IRIX compiler gives warnings about "long double" not beingsupported. These can be ignored or turned off with,   CFLAGS="-woff 728" ./configureor    make CFLAGS="-woff 728"The compiler also gives warnings about certain libraries that are "notused for resolving any symbol". This is harmless and the warnings canbe ignored.You may get warnings about " /usr/bin/ld: arg list too long" whenbuilding shared libraries.  If so, try increasing the ncargs kernelparameter with the systune(1m) command.For 64-bit compilation use the following options,  CC=cc CFLAGS="-64" LDFLAGS="-64" ./configureor for gcc  CFLAGS="-mabi-64" LDFLAGS="-mabi=64 -mips4 -L/usr/local/lib/mabi=64"Hints for MacOS X and PowerPC=============================Note that GSL contains files with filenames of 32 characters or more.Therefore you need to be careful in unpacking the tar file, as someMacOS applications such as Stuffit Expander will truncate filenames to31 characters.  Using GNU tar and gunzip directly is the safe way tounpack the distribution.There are problems with dynamic linker, so the library should becompiled with,  ./configure --disable-sharedIt has been reported that shared libraries can be built if MacOS Xspecific versions of libtool, automake and autoconf fromhttp://fink.sourceforge.net/ are installed, and the GSL source isreconfigured from scratch (./autogen.sh; ./configure; make)To avoid warnings about long-double, use the flag  CFLAGS="-Wno-long-double ....(other options here)"in addition to the normal compilation options.The GCC 3.3 compiler shipped by Apple contains a bug which causes thewavelet tests to fail on "data untouched" tests at optimisation level-O2. You can compile with CFLAGS="-O1 ..."  to work around this.F J Frankin <MEP95JFF@sheffield.ac.uk> reported that some earlyversions of GCC-2.95 have a problem with long argument lists on PPCarchitecture, and this prevents GSL from compiling correctly (e.g. thetest program in the blas directory gives a segmentation fault whenrun).  This problem is fixed in more recent versions of GCC.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -