解决办法:利用starman安装netcdf库出现的问题

netcdf库需要很多额外库的安装,例如zlib,hdf5之类的,安装十分繁琐,starman是董理老师开发的一个傻瓜式安装netcdf库的工具,除了netcdf,其中还包含了很多气象学研究需要用到的软件,例如cdo等。一句starman install netcdf就可以一步到位,starman的具体安装和操作可见:一个链接

安装进行到hdf5的时候出现问题

==> make check
[Error]: Failed to run make check ! Check logs:
/tmp/starman/stdout.410
/tmp/starman/stderr.410

make check的时候出现问题。打开error的log后,发现:

make[4]: *** [dt_arith.chkexe_] Error 1
make[3]: *** [build-check-s] Error 2
make[2]: *** [test] Error 2
make[1]: *** [check-am] Error 2
make: *** [check-recursive] Error 1

解决办法

查询一些说法得知可能是因为make check的时候权限不够。1
先去/tmp/starman/hdf5_gcc_7.5.0下make clean。
运行starman install netcdf --skip-test,即忽略make check等测试的命令。

关于starman的一些要点
  1. starman下载的包,放在/tmp/starman里面。也是在该目录下,软件进行make && make install。
  2. 各个软件最后的安装目录在~/starman/gcc_7.5.0下。
  3. 安装详情
[Notice]: Initialize history database at /home/sing/.starman/history.db.
[Notice]: Downloading http://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz ...
######################################################################## 100.0%
[Notice]: Install package m4@1.4.18 ...
==> ./configure --prefix=/home/sing/software/starman//common/Packages/m4/1.4.18
==> make
==> make install
[Notice]: Package m4@1.4.18 is installed at /home/sing/software/starman//common/Packages/m4/1.4.18.
[Notice]: Downloading https://support.hdfgroup.org/ftp/lib-external/szip/2.1.1/src/szip-2.1.1.tar.gz ...
######################################################################## 100.0%
[Notice]: Install package szip@2.1.1 ...
==> ./configure --prefix=/home/sing/software/starman//gcc_7.5.0/Packages/szip/2.
==> make install
[Notice]: Package szip@2.1.1 is installed at /home/sing/software/starman//gcc_7.5.0/Packages/szip/2.1.1.
[Notice]: Downloading https://zlib.net/zlib-1.2.11.tar.gz ...
######################################################################## 100.0%
[Notice]: Install package zlib@1.2.11 ...
==> ./configure --prefix=/home/sing/software/starman//gcc_7.5.0/Packages/zlib/1.
==> make install
[Notice]: Package zlib@1.2.11 is installed at /home/sing/software/starman//gcc_7.5.0/Packages/zlib/1.2.11.
[Notice]: Downloading https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.6/src/hdf5-1.10.6.tar.bz2 ...
######################################################################## 100.0%
[Notice]: Install package hdf5@1.10.6 ...
==> ./configure --prefix=/home/sing/software/starman//gcc_7.5.0/Packages/hdf5/1.
==> make
==> make install
[Notice]: Package hdf5@1.10.6 is installed at /home/sing/software/starman//gcc_7.5.0/Packages/hdf5/1.10.6.
[Notice]: Install package netcdf-fortran@4.5.2 ...
==> ./configure --prefix=/home/sing/software/starman//gcc_7.5.0/Packages/netcdf/
==> make
==> make check
==> make install
[Notice]: Package netcdf-fortran@4.5.2 is installed at /home/sing/software/starman//gcc_7.5.0/Packages/netcdf/4.7.2.

  1. https://forum.hdfgroup.org/t/h5repack-error-make-check/4205/3 ↩︎

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
对于将 Spring Boot 应用程序改造为 PSGI(Perl Web Server Gateway Interface)应用程序,我们需要执行以下步骤: 1. 创建 PSGI 入口文件:首先,我们需要创建一个名为 `app.psgi` 的文件作为 PSGI 入口点。该文件将充当应用程序与 Web 服务器之间的桥梁。在这个文件中,我们可以引入 Spring Boot 应用程序的启动类,并将其作为 PSGI 应用程序来运行。 ```perl use strict; use warnings; use Plack::Builder; use Java::Bridge; my $builder = Plack::Builder->new; $builder->mount( '/' => bridge { Java::Bridge->new('com.example.springboot.Application')->run(); } ); $builder->to_app; ``` 在上面的示例中,我们使用了 Perl 的 `Plack::Builder` 模块来创建一个 PSGI 应用程序。通过 `Java::Bridge` 模块,我们可以调用 Java 类的方法,并在 PSGI 应用程序中启动 Spring Boot 应用程序。 2. 安装依赖:为了运行 PSGI 应用程序,我们需要安装一些 Perl 模块。我们可以使用 CPAN 或者 cpanm 命令来安装所需的模块。在命令行中执行以下命令来安装所需的模块: ```shell cpanm Plack Java::Bridge ``` 3. 运行应用程序:现在,我们可以使用 PSGI 兼容的 Web 服务器来运行我们的应用程序。我们可以使用任何支持 PSGI 的服务器,例如 `Starman` 或 `Twiggy`。 ```shell starman app.psgi ``` 在上面的示例中,我们使用 `Starman` 服务器来运行 PSGI 应用程序。你可以根据需要选择适合你的服务器。 这样,我们就成功将 Spring Boot 应用程序改造为 PSGI 应用程序了。请确保你已经正确配置和启动了你的 Spring Boot 应用程序,并按照上述步骤执行 PSGI 改造。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值