📄 machines
字号:
This file documents problems installing GSL on specific platforms.Information is available for the following systems,-- Any platform-- AIX-- Compaq/DEC Alpha-- DOS-- IRIX-- MacOS X-- Microsoft Windows (MS Visual C++, Borland C++)-- OpenBSD-- OS/2-- PPC-- Solaris* Any platform--------------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.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.* AIX-----For compilation problems with the native compiler xlc, try disablingshared libraries, setenv CC 'xlc' setenv CFLAGS '-O -qmaxmem=8192' ./configure --disable-shared make* Compaq/DEC Alpha------------------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. Do not use the library if youencounter this problem.This may be fixed in more recent versions of gcc. Compiling withoutoptimisation will work around the bug.The library should compile successfully with Compaq's C compiler usingthe -std option for ANSI conformance. Use CC=cc ./configure make CFLAGS="-std"to build the library this way.Use GNU tar to unpack the tar file, as Tru64 tar gives an errorhalfway through.* DOS-----When using DJGPP The default stack size of 512k may be insufficient forthe specfunc tests and will cause them to crash. To increase thestack size by a suitable amount use, stubedit test.exe minstack=1536kon the executable and then rerun it manually. (5/01: The specfunctests have been rewritten to use less stack space now).* IRIX------The library should be compiled with the following option, -OPT:IEEE_NaN_inf=ON to ensure correct IEEE arithmetic. The tests in sys/ will failwithout 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, CCFLAGS="-woff 728" ./configureor make CCFLAGS="-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"* MacOS X---------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-sharedTo avoid warnings about long-double, use the flag CFLAGS="-Wno-long-double ....(other options here)"in addition to the normal compilation options.* Microsoft Windows-------------------------------With Microsoft Visual C++, see the directory msvc/ in the CVS repository.* OpenBSD---------As of July 2001 the OpenBSD log1p() function on i386 causes failuresin the gsl complex tests. The configure script has been hardcoded tosubstitute gsl_log1p instead on OpenBSD. The log1p() bug has beenreported and so may be fixed in future versions of OpenBSD.* OS/2------The configure script fails to detect the function 'isnan', leading toa slew of errors 'isnan redefined'.To work around this problem, run configure and edit the resultingconfig.h file to comment out the line which defines HAVE_ISINF.* PPC-----F J Frankin <MEP95JFF@sheffield.ac.uk> reported on the gsl-discussmailing list that some early versions of GCC-2.95 have a problem withlong argument lists on PPC architecture, and this prevents GSL fromcompiling correctly (e.g. the test program in the blas directory givesa segmentation fault when run). This problem is fixed in recentversions of GCC. GSL now includes an autoconf test which detects theproblem.* Solaris---------Some warnings about "end of loop code not reached". These can beignored -- they come from the do { ... ; return ; } while(0) statementin the GSL_ERROR macro.Local variables:mode: outlineparagraph-separate: "[ ]*$"end:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -