Building Up Ur Own Development Envir [PostgreSQL]

本文详细介绍了如何下载并配置PostgreSQL源代码,使其在Visual Studio环境中运行,包括设置环境变量、使用Flex和Bison生成代码、配置build.exe文件以及最终在Visual Studio中启动服务的过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  • 1: Download the pgsql source code. The latest version is 9.3 beta.
  • Changes the Mkvcbuild.pm:64 the determine_version_xxx to 9.0 for visual 2008.
  • 3: Running the command "perl build.pl DEBUG", fist of all, install perl and flex and bison. then set the them to system path environment variable. E:\postgresql-9.3beta1\src\tools\msvc
  • 4: The flex and bison are used to generate the "xxx.c" when compiling the project.
  • 5: The most important thing is to set the msbuild.exe which is a executable file in .net frame properly.
  • 6: Running the command "perl build.pl DEBUG" again, as well as, it will generate all files needed.
  • 7: Opening the VS to open the solution files.
  • 8: Running the command "perl install.pl target_directory". the target_directory will store all binary files.
  • 9: Setting the "postgres" as startup project, and sets the project properties: command to "target_bin_dir" , argument to "-D DatabaseName", working directory to "target_bin_dir".
  • 10: Starting the service.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值