爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
楼主: andrewsoong

教你如何在linux下安装破解PGI10.6

  [复制链接]

新浪微博达人勋

发表于 2018-12-25 15:14:30 | 显示全部楼层
楼主好人一生平安@!!!!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2018-12-29 20:13:21 | 显示全部楼层
66666666666666666
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2018-12-30 10:37:25 | 显示全部楼层
非常感谢楼主
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2019-1-2 10:07:28 | 显示全部楼层
楼主有时间还望解答一下我的一个困惑:
为什么选择用PGI的编译器,但要准备好GNU的c跟fortran90的编译器(gcc、gfortran),为什么不用PGI的pgcc跟pgf90呢
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2019-1-6 15:10:59 | 显示全部楼层
回帖支持~~!!
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

发表于 2019-1-7 13:58:13 | 显示全部楼层
感谢分享~~
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

发表于 2019-1-8 10:28:42 | 显示全部楼层
{:eb511:}{:eb511:}
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2019-1-8 15:15:13 | 显示全部楼层
PGI终于装好啦,但是NETcdf在执行到下面两步时出现了错误,太无能,百度了半天也没有进展,请教一下高大的楼主{:eb302:}{:eb302:}
$ ./configure --prefix=/usr/local/netcdf (netcdf安装目录) FC=pgf90 CC=gcc (or pgcc)
$ make
==================以下是报错结果(请直接看第一行和最后几行)==========================
$ ./configure --prefix=/media/xiaokun/Linux/software/netcdf/NETCDF FC=pgf90  CC=gcc
configure: netCDF 3.6.3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
configure: checking user options
checking whether CXX is set to ''... no
checking whether FC is set to ''... no
checking whether F90 is set to ''... no
checking whether this is a netCDF-4.x build... no
checking whether netCDF extra tests should be run (developers only)... no
checking whether documentation is to be installed... no
checking whether Fortran compiler(s) should be tested during configure... yes
checking whether configure should try to set compiler flags... yes
checking whether FFIO will be used... no
checking whether to skip C++, F77, or F90 APIs if compiler is broken... yes
checking whether only the C library is desired... no
checking whether examples should be built... yes
checking whether F77 API is desired... yes
checking whether F90 API is desired... yes
checking whether fortran type sizes should be checked... yes
checking whether C API is desired... yes
checking where to get netCDF C-only library for separate fortran libraries...
checking whether CXX API is desired... yes
checking whether v2 netCDF API should be built... yes
checking whether the ncgen/ncdump should be built... yes
checking whether large file (> 2GB) tests should be run... no
checking whether benchmaks should be run (experimental)... no
checking whether extreme numbers should be used in tests... yes
checking where to put large temp files if large file tests are run... .
checking whether a win32 DLL is desired... no
checking whether separate fortran libs are desired... no
configure: finding C compiler
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for an ANSI C-conforming const... yes
configure: finding Fortran compiler (will not be used if Fortran API is not desired)
checking whether we are using the GNU Fortran compiler... no
checking whether pgf90 accepts -g... yes
checking whether we are using the GNU Fortran 77 compiler... no
checking whether pgf90 accepts -g... yes
configure: setting up Fortran 90
checking for Fortran flag to compile .f90 files... none
checking fortran 90 modules inclusion flag... -I
checking if Fortran compiler can handle Fortran-90... no
configure: WARNING: No F90 compiler found. F90 API will not be built.
configure: finding C++ compiler (will not be used if C++ API is not desired)
checking for cl... no
checking for KCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for xlC... no
checking for aCC... no
checking for c++... c++
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking dependency style of c++... gcc3
configure: setting up libtool
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking dependency style of c++... (cached) gcc3
checking how to run the C++ preprocessor... c++ -E
checking whether we are using the GNU Fortran 77 compiler... (cached) no
checking whether pgf90 accepts -g... (cached) yes
checking whether we are using the GNU Fortran compiler... (cached) no
checking whether pgf90 accepts -g... (cached) yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for ld used by c++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the c++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for c++ option to produce PIC... -fPIC -DPIC
checking if c++ PIC flag -fPIC -DPIC works... yes
checking if c++ static flag -static works... yes
checking if c++ supports -c -o file.o... yes
checking if c++ supports -c -o file.o... (cached) yes
checking whether the c++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for pgf90 option to produce PIC... -fpic
checking if pgf90 PIC flag -fpic works... yes
checking if pgf90 static flag -Bstatic works... no
checking if pgf90 supports -c -o file.o... yes
checking if pgf90 supports -c -o file.o... (cached) yes
checking whether the pgf90 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for pgf90 option to produce PIC... -fpic
checking if pgf90 PIC flag -fpic works... yes
checking if pgf90 static flag -Bstatic works... no
checking if pgf90 supports -c -o file.o... yes
checking if pgf90 supports -c -o file.o... (cached) yes
checking whether the pgf90 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
configure: finding other utilities
checking for a BSD-compatible install... /usr/bin/install -c
configure: trying to set fortran flags for this platform
configure: trying to set flags for this platform
checking if _HPUX_SOURCE should be set... no
checking if Solaris -Xa option is needed... CFLAGS=-g -O2
checking if we need to set _LARGE_FILES despite results of previous tests... _LARGE_FILES=
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
configure: displaying some results
checking CPPFLAGS...
checking CC CFLAGS... gcc -g -O2
checking type gcc... gcc is /usr/bin/gcc
checking CXX... c++
checking CXXFLAGS... -g -O2
checking type c++... c++ is /usr/bin/c++
checking FC... pgf90
checking FFLAGS... -g
checking type pgf90... pgf90 is /media/xiaokun/Linux/software/pgi/PGI/linux86-64/10.6/bin/pgf90
checking F90... unset
checking AR... ar
checking AR_FLAGS... cru
checking type ar... ar is /usr/bin/ar
checking NM... /usr/bin/nm -B
checking NMFLAGS...
checking for /usr/bin/nm... /usr/bin/nm -B
checking nm flags...
checking for C-equivalent to Fortran routine "SUB"... sub_
checking for Fortran "byte"... yes
checking for Fortran "integer*2"... yes
checking if Fortran "byte" is C "signed char"... configure: error: Could not link conftestf.o and conftest.o
$ make
make: *** 没有指明目标并且找不到 makefile。 停止。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2019-1-8 15:27:24 | 显示全部楼层
半月儿 发表于 2019-1-8 15:15
PGI终于装好啦,但是NETcdf在执行到下面两步时出现了错误,太无能,百度了半天也没有进展,请教一下高大的 ...

are you able to  compile other fortran programs?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2019-1-8 16:18:49 | 显示全部楼层
andrewsoong 发表于 2019-1-8 15:27
are you able to  compile other fortran programs?

never, and cannot
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表