---
title: petsc配置过程中报错
description: "运行./configure后报错，报错信息如下："
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpcindapp/trouble/bootkit_hpc_troublecase_0047.html
sourcePath: /source/zh/kunpenghpcs/hpcindapp/trouble/bootkit_hpc_troublecase_0047.html
indexId: 33be16751756176628af2dd943eed42bb82ed193894a91bb44be26ab2f42432a74
---
# petsc配置过程中报错

#### 问题现象描述

运行./configure后报错，报错信息如下：

```
. This script, last modified 2008-01-23, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
and
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
```


#### 关键过程、根本原因分析

config.guess和config.sub两个证书过期。


#### 结论、解决方案及效果

1. 执行以下命令搜索config.guess和config.sub两个文件。
  find ./ -name config.guess

  find ./ -name config.sub

2. 将文件中的内容更新为网址中的内容。
  config.guess:

  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD(http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD)

  config.sub:

  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD(http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD)
