在win10下用vs2010编译postgresql源码碰到一些问题,大神来帮一下忙

weiq119 2016-01-19 06:43:29
win10 32位,安装好了perl,flex,bison等工具,设置好了环境变量,然后在src\tools\msvc目录下执行命令:build DEBUG,然后就出现了以下的问题:cl command not found at src/tools/msvc/Solution.pm line 75.我在win7下编译都成功了没有出现这些问题。然后我把75行及下面相关的几行都注释掉然后又报了其他好几个问题,也是这个文件中,如:Can't spawn "cmd.exe": No such file or directory at src/tools/msvc/Solution.pm line 295.等等。请大神帮帮忙。
...全文
1719 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
qq_26951127 2016-10-06
  • 打赏
  • 举报
回复
sub DeterminePlatform { my $self = shift; # Examine CL help output to determine if we are in 32 or 64-bit mode. #my $output = `cl /? 2>&1`; #$? >> 8 == 0 or die "cl command not found"; #($output =~ /^\/favor:<.+AMD64/m) ? 'x64' : $self->{platform} = 'Win32'; print "Detected hardware platform: $self->{platform}\n"; } 按照以上修改Solution.pm文件中的sub DeterminePlatform函数
weiq119 2016-01-20
  • 打赏
  • 举报
回复
都没人么??坐等。。。

954

社区成员

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

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