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

📄 install

📁 math library from gnu
💻
📖 第 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.  Ifyou change any compilation options you will need to remove anyexisting compiled files with,  make cleanbefore running "make" again, so the new settings take effect.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.  Installingin this directory will require root privileges on most systems (use"su" or "sudo").The installation directory can be changed with the --prefix option toconfigure.  Consult the "Further Information" section below forinstructions on installing the library in another location or changingother default compilation options.                    ------------------------------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) If you want to pass C++ functions with exceptions to GSL, thelibrary needs to be compiled with the GCC option -fexceptions    ./confugire CFLAGS="-fexceptions ..."to allow C++ exceptions to be handled.3) With gcc-4.3.2 the tests in the poly/ directory fail due to acompiler optimization bug which is fixed in later versions of GCC(http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38478).FAIL: y.real, gsl_complex_poly_complex_eval ({-2.31 + 0.44i, 4.21 - 3.19i, 0.93 + 1.04i, -0.42 + 0.68i}, 0.49 + 0.95i) (-1.68450788000000018 observed vs 1.82462012000000007 expected) [9]FAIL: y.imag, gsl_complex_poly_complex_eval ({-2.31 + 0.44i, 4.21 - 3.19i, 0.93 + 1.04i, -0.42 + 0.68i}, 0.49 + 0.95i) (-0.30943988 observed vs 2.30389411999999982 expected) [10]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.  If you encounter these problems, install a different version of gcc.4) 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.5) 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 compile with higher optimisation -O3 you will also need-qstrict.  The -O3 flag causes the -nostrict option to beenabled. This affects the accuracy of the results and causes some ofthe tests to fail.If 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,   ./configure LDFLAGS="-Wl,-bbigtoc" On 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. On more recent versions of AIX (e.g >= 5.1) use  chdev -l sys0 -a ncargs=NNNto increase the allowed number of arguments. NNN is the amount ofspace measured in 4k blocks (default 6, maximum 1024)If compiling with GCC the following error  fp-aix.c: In function `gsl_ieee_set_mode':  fp-aix.c:30: error: `fprnd_t' undeclared (first use in this function)can occur if /usr/includes/float.h is not used, and instead thefloat.h of the installed gcc is picked up instead -- it may be missingthe necessary structs.  To work around it copy the missing parts(between #ifdef _ALL_SOURCE and its #endif) from /usr/includes/float.hinto a new header file and #include that in fp-aix.cHints 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:      ./configure CFLAGS="-Ae"  To 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,   ./configure CFLAGS="-woff 728" or    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,  ./configure CC=cc CFLAGS="-64" LDFLAGS="-64" or for gcc  CFLAGS="-mabi-64" LDFLAGS="-mabi=64 -mips4 -L/usr/local/lib/mabi=64"Hints for MacOS X and PowerPC=============================To install in /usr/local on MacOS systems, do "sudo make install" togain root privileges.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-shared

⌨️ 快捷键说明

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