searchusermenu
  • 发布文章
  • 消息中心
点赞
收藏
评论
分享
原创

CTYunOS部署postgres报错怎么办

2023-08-14 01:55:50
69
0

ctyunos操作系统部署 postgres报错,提示找不到 error:conflicting types for 'copy_file_range'

 

解决办法:

1、查找copy_fetch.c文件的位置

find / -name copy_fetch.c

发现copy_fetch.c文件在postgresql-10.1.tar.gz源码解压路径postgresql-10.1的子路径src/bin/pg_rewind/中。(/postgresql-10.1/src/bin/pg_rewind/)

 

2、进入postgresql-10.1.tar.gz源码解压路径postgresql-10.1,修改copy_fetch.c中所有函数名copy_file_range 为 copy_file_chunk

sed -i "s/copy_file_range/copy_file_chunk/g" /postgresql-10.1/src/bin/pg_rewind/copy_fetch.c

 

3、重新执行make && make install进行编译;

 

参考:https://support.huawei.com/enterprise/zh/knowledge/EKB1100061520

0条评论
0 / 1000
吴****兴
1文章数
0粉丝数
吴****兴
1 文章 | 0 粉丝
吴****兴
1文章数
0粉丝数
吴****兴
1 文章 | 0 粉丝
原创

CTYunOS部署postgres报错怎么办

2023-08-14 01:55:50
69
0

ctyunos操作系统部署 postgres报错,提示找不到 error:conflicting types for 'copy_file_range'

 

解决办法:

1、查找copy_fetch.c文件的位置

find / -name copy_fetch.c

发现copy_fetch.c文件在postgresql-10.1.tar.gz源码解压路径postgresql-10.1的子路径src/bin/pg_rewind/中。(/postgresql-10.1/src/bin/pg_rewind/)

 

2、进入postgresql-10.1.tar.gz源码解压路径postgresql-10.1,修改copy_fetch.c中所有函数名copy_file_range 为 copy_file_chunk

sed -i "s/copy_file_range/copy_file_chunk/g" /postgresql-10.1/src/bin/pg_rewind/copy_fetch.c

 

3、重新执行make && make install进行编译;

 

参考:https://support.huawei.com/enterprise/zh/knowledge/EKB1100061520

文章来自个人专栏
文章 | 订阅
0条评论
0 / 1000
请输入你的评论
1
0