Cross compile for postgresql

HappyWin 2007-01-10 12:44:36
各位前辈,我下载了个posetgresql想build后安装在powerpc的linux系统上,所以在i386的机器上用power pc的编译器编译postgresql,
修改了src/Makefile.global中的CC编译器的路径,但在build时候出了个错误:

make -C timezone all
make[2]: Entering directory `/home/yw/postgresql/postgresql-8.2.1/src/timezone'
/usr/bin/ld -r -o SUBSYS.o localtime.o strftime.o pgtz.o
/usr/bin/ld: localtime.o: Relocations in generic ELF (EM: 20)
localtime.o: could not read symbols: File in wrong format
make[2]: *** [SUBSYS.o] Error 1
make[2]: Leaving directory `/home/post/postgresql/postgresql-8.2.1/src/timezone'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/post/postgresql/postgresql-8.2.1/src'
make: *** [all] Error 2

这是怎么回事啊?


如果不这样搞,怎么能将postgresql编译后跑在powerpc的机器上,powerpc的机器没有任何的编译器。也没有下载到posergresql for powerpc的bin及rpm版本
...全文
164 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

954

社区成员

发帖
与我相关
我的任务
社区描述
PostgreSQL相关内容讨论
sql数据库数据库架构 技术论坛(原bbs)
社区管理员
  • PostgreSQL社区
  • yang_z_1
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧