Build Apache On Windows - XiZi's Blog
Build Apache On Windows
0、为目标平台准备 perl,zlib,pcre,openssl。
perl需要安装并加入到PATH环境变量里。pcre和httpd的编译都要用到。
zlib和pcre均使用cmake编译,这里就不说了。
openssl 的编译,按照源文件下的INSTALL进行编译,注意有win32,win64a,win64i之分。并enable-zlib。
1、使用window版本的源代码:
apr-1.5.0-win32-src.zip,apr-iconv-1.2.1-win32-src-r2.zip,apr-util-1.5.3-win32-src.zip
2、全部解压到当前目录
创建并重命名或者创建符号链接,去掉版本号即目录下:apr,apr-iconv,apr-util.
3、这里我们使用visual studio 编译:
1)IED编译。打开apr-util下的aprutil.dsw,会提示转换。选择是进行转换。然后尝试编译。
2)命令行编译。打开vs command promote 命令行,进入apr-util目录
NMAKE /f "libaprutil.mak" CFG="libaprutil - Win32 Release" REM "libaprutil - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library") REM "libaprutil - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library") REM "libaprutil - x64 Release" (based on "Win32 (x86) Dynamic-Link Library") REM "libaprutil - x64 Debug" (based on "Win32 (x86) Dynamic-Link Library")
这里要修改原来的文件的一处错误:
--- apr-iconv-1.2.1.orig\build\modules.mk.win Fri Oct 19 04:49:36 2007 +++ apr-iconv-1.2.1\build\modules.mk.win Mon Apr 21 14:56:22 2014 @@ -218,7 +218,7 @@ .c{$(OUTPUT_DIR)}.so: $(SILENT)cl $(ALL_CFLAGS) /Fo$*.obj /Yuiconv.h /c $< - $(SILENT)link $(ALL_LDFLAGS) $*.obj $(API_LIBS) /out:$@ \ + $(SILENT)link $(ALL_LDFLAGS) $*.obj $(MODRES).obj $(API_LIBS) /out:$@ \ /base:@"..\build\BaseAddr.ref",$(@F) $(SILENT)if exist $@.manifest \ $(SILENT)mt -nologo -manifest $@.manifest -outputresource:$@;2 \
4、编译httpd之前的准备
1)这里我们要把所有的include文件合并到一起,要门cmake进行configure的时候会出错。 拷贝apr,apr-iconv和apr-util下的include文件夹合并到上一层的include文件夹。
2)修正CMakeLists.txt的错误。
--- httpd-2.4.9.orig\CMakeLists.txt Tue Nov 19 05:18:12 2013 +++ httpd-2.4.9\CMakeLists.txt Mon Apr 21 18:42:32 2014 @@ -678,8 +678,8 @@ IF("${${mod_name}_install_lib}") SET(installed_mod_libs_exps ${installed_mod_libs_exps} - "${PROJECT_BINARY_DIR}/${mod_name}.lib" - "${PROJECT_BINARY_DIR}/${mod_name}.exp" + "${PROJECT_BINARY_DIR}/\${CMAKE_INSTALL_CONFIG_NAME}/${mod_name}.lib" + "${PROJECT_BINARY_DIR}/\${CMAKE_INSTALL_CONFIG_NAME}/${mod_name}.exp" ) ENDIF() SET(mod_extra_libs "${mod_name}_extra_libs") @@ -825,7 +825,7 @@ ) INSTALL(FILES ${other_installed_h} DESTINATION include) INSTALL(FILES ${installed_mod_libs_exps} DESTINATION lib) -INSTALL(FILES "${CMAKE_BINARY_DIR}/libhttpd.exp" DESTINATION LIB) +INSTALL(FILES "${CMAKE_BINARY_DIR}/\${CMAKE_INSTALL_CONFIG_NAME}/libhttpd.exp" DESTINATION LIB) IF(INSTALL_MANUAL) # Silly? This takes a while, and a dev doesn't need it. INSTALL(DIRECTORY docs/manual/ DESTINATION manual) @@ -849,7 +849,7 @@ # Windows anyway. STRING(REPLACE "/" "\\\\" native_src ${CMAKE_BINARY_DIR}/conf/original) STRING(REPLACE "/" "\\\\" native_dest ${CMAKE_INSTALL_PREFIX}/conf/original) -INSTALL(CODE "EXECUTE_PROCESS(COMMAND xcopy ${native_src} ${native_dest} /Q /S /Y)") +INSTALL(CODE "EXECUTE_PROCESS(COMMAND robocopy ${native_src} ${native_dest} /E)") STRING(TOUPPER "${CMAKE_BUILD_TYPE}" buildtype) MESSAGE(STATUS "")
5、使用cmake生成httpd工程(这里使用的是httpd-2.4.9的版本)
这里我们要给定openssl,zlib,pcre,apr,当然如果用得到libxml2也一样给定。
configure,generate,build.
2020年10月28日 02:28
Thanks for sharing this interesting blog with us.My pleasure to being here on your blog..I wanna come beck here for new post from your site. best new car warranty
2021年3月31日 01:22
This is a fantastic website , thanks for sharing.
2021年4月04日 01:41
I read that Post and got it fine and informative. Please share more like that...
2021年4月06日 20:43
The blog and data is excellent and informative as well
2021年4月08日 03:38
A good blog always comes-up with new and exciting information and while reading I have feel that this blog is really have all those quality that qualify a blog to be a one.
2021年4月14日 01:01
I have been searching to find a comfort or effective procedure to complete this process and I think this is the most suitable way to do it effectively.
2021年6月24日 09:01
Very good points you wrote here..Great stuff...I think you've made some truly interesting points.Keep up the good work. เครื่องบดกาแฟใช้มือ
2021年8月07日 19:23
It is best to participate in a contest for the most effective blogs on the web. I’ll advocate this website! slimming machines
2021年8月10日 10:39
XCaldwells really is the way to go if you are finding the best doors with the lowest price. Check https://caldwells.com/interior-doors/traditional-doors link to their website for their products.
2021年8月18日 08:25
Great job for publishing such a beneficial web site. Your web log isn’t only useful but it is additionally really creative too. Sicherheitsdienst Offenburg
2021年8月29日 01:40
Very good points you wrote here..Great stuff...I think you've made some truly interesting points.Keep up the good work. silk bedding
2021年9月02日 06:36
Your blog has piqued a lot of real interest. I can see why since you have done such a good job of making it interesting. I appreciate your efforts very much Silver Color Tree of Life Choker Necklace
2021年9月03日 23:26
Great knowledge, do anyone mind merely reference back to it
2021年9月04日 03:58
Really special blog post, Thanks for your time designed for writing It education. Outstandingly drafted guide, if only every webmasters marketed the exact same a better standard of subject matter whilst you, cyberspace was obviously a better set. Satisfy continue the good work!
2021年9月05日 00:44
I’m going to read this. I’ll be sure to come back. thanks for sharing. and also This article gives the light in which we can observe the reality. this is very nice one and gives indepth information. thanks for this nice article...
2021年9月07日 00:16
Basically When i understand the item this morning although I did many thought processes concerning this and today I need to to learn to read the item all over again mainly because it is quite well written.
2021年9月11日 00:30
This really is therefore stunning as well as innovative. I simply adore the actual colours as well as whomever will get this within the postal mail is going to be grinning.
2021年9月11日 22:44
If you want to get useful information about web development, it will be good for you to visit this site email blast
2021年9月12日 00:00
Outstanding submit, travelled in advance and also book marked your internet site. My partner and i can’t hold out to learn a lot more coming from an individual.
2021年9月13日 23:49
Thank you regarding offering latest revisions about the problem, My partner and i enjoy examine a lot more.
2021年9月15日 21:16
This was really an interesting topic and I kinda agree with what you have mentioned here! 먹튀검증커뮤니티
2021年9月20日 08:43
Are you looking for the best assignment help companies in the United kingdom? Look no further as we provide reliable assignment writing to the students so they contact us for writing assistance. It provides the best support system to the students so that they can contact you anytime and get expert assistance.
2021年9月26日 23:23
Wonderful article. Fascinating to read. I love to read such an excellent article. Thanks! It has made my task more and extra easy. Keep rocking.
2021年10月05日 06:03
Your blog has piqued a lot of real interest. I can see why since you have done such a good job or making it interesting. I appreciate your efforts very much judi qiu qiu
2021年10月06日 00:15
Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking.
2021年10月06日 05:36
Thanks for picking out the time to discuss this, I feel great about it and love studying more on this topic. It is extremely helpful for me. Thanks for such a valuable help again.
2021年10月06日 07:59
Very informative post! There is a lot of information here that can help any business get started with a successful social networking campaign. Viagra price in Pakistan | Sildenafil Citrate Tablets | USA Pfizer
2021年10月08日 01:39
You made such an interesting piece to read, giving every subject enlightenment for us to gain knowledge. Thanks for sharing the such information with us to read this...
2021年10月08日 10:40
I really don’t accept as true with this blog post. Nevertheless, I did looked in Yahoo and I have found out that you’re correct and I was thinking in the improper way. Carry on publishing good quality material like this. lowes net
2021年10月09日 03:02
I recently found many useful information in your website especially this blog page. Among the lots of comments on your articles. Thanks for sharing. qiu qiu online
2021年10月09日 05:28
When i stunned while using the research people meant to makes unique post awesome. Superb pastime!
2021年10月09日 23:24
Superior Place, My organization is a great believer during ad opinions regarding online websites that will let the webpage novelists recognize that they’ve put in an item worthwhile that will the online market place!
2021年10月11日 06:46 오피를 모두 모아둔 곳에서 원하는 종류의 달콤월드,오피쓰,오피그램 등에서 전국에 있는 OP를 즐길 수 있는 완벽한 오피사이트를 모아 추천하고 쉽게 한눈에 선택이 가능합니다. 처음 오피를 이용하는 모든 분들에게 가장 편리한 구성으로 준비하여 안내해드립니다. 오피쓰
2021年10月15日 09:56
Thanks for taking the time to discuss this, I feel strongly that love and read more on this topic. If possible, such as gain knowledge, would you mind updating your blog with additional information? It is very useful for me. 무서류대출
2021年10月16日 23:54
I’m encouraged while using surpassing along with preachy list that you just adorn such minor timing.
2021年10月17日 06:37
Hi there, You have done an excellent job. I’ll certainly digg it and for my part suggest to my friends. I’m confident they’ll be benefited from this website. Buy Alopexy
2021年10月19日 02:05
Thanks For sharing this Superb article.I use this Article to show my assignment in college.it is useful For me Great Work. vigrx plus uses
2021年10月21日 05:42
We've just lately commenced a new web site, the details anyone present on this internet site features made it easier for us drastically. Cheers pertaining to your occasion & operate.
2021年10月21日 06:02
You guardians do an astounding web diary, and have some unfathomable substance. Continue doing extraordinary. saas help desk
2021年10月23日 05:11
Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with more information? It is extremely helpful for me. <a href="https://goojara.top/">Goojara</a>
2021年10月25日 00:42
Kudos meant for giving you newly released tweets regarding the headache, That i will enjoy look over even more.
2021年10月26日 08:30
Thanks For sharing this Superb article.I use this Article to show my assignment in college.it is useful For me Great Work. 먹튀검증
2021年10月30日 08:46
Thanks for sharing nice information with us. i like your post and all you share with us is uptodate and quite informative. www.financehelper.net
2021年10月31日 08:05
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. 먹튀사이트
2021年11月05日 02:14
This particular is usually apparently essential and moreover outstanding truth along with for sure fair-minded and moreover admittedly useful My business is looking to find in advance designed for this specific useful stuffs… 먹튀검증사이트
2021年11月06日 22:38
You know your projects stand out of the herd. There is something special about them. It seems to me all of them are really brilliant! 먹튀사이트
2021年11月08日 03:21
Hello There. I found your blog using msn. This is an extremely well written article. I will be sure to bookmark it and return to read more of your useful information. Thanks for the post. I’ll certainly comeback. 먹튀검증
2021年11月09日 02:54
Wow, What a Excellent post. I really found this to much informatics. It is what i was searching for.I would like to suggest you that please keep sharing such type of info.Thanks.
2021年11月09日 04:00
Wow, What a Excellent post. I really found this to much informatics. It is what i was searching for.I would like to suggest you that please keep sharing such type of info.Thanks.
2021年11月13日 22:43
Thanks for the tips guys. They were all great. I have been having issues with being fat both mentally and physically. Thanks to you guys i have been showing improvements. Do post more.
2021年11月14日 00:14
Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and 토토커뮤니티
2021年11月16日 23:10
Impressive web site, Distinguished feedback that I can tackle. Im moving forward and may apply to my current job as a pet sitter, which is very enjoyable, but I need to additional expand. Regards.
2021年11月17日 08:42 Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article. roadrunner email login
2021年12月01日 08:29
You know your projects stand out of the herd. There is something special about them. It seems to me all of them are really brilliant! 먹튀검증
2021年12月13日 02:48
Positive site, where did u come up with the information on this posting? I'm pleased I discovered it though, ill be checking back soon to find out what additional posts you include. 918kiss
2021年12月13日 02:49
I learn some new stuff from it too, thanks for sharing your information. sagame66
2021年12月13日 02:50
I admit, I have not been on this web page in a long time... however it was another joy to see It is such an important topic and ignored by so many, even professionals. I thank you to help making people more aware of possible issues. 918kiss
2021年12月16日 03:50
great content! love this site. would recommend to my friends 어벤져스카지노 도메인
2021年12月19日 09:54
This is very educational content and written well for a change. It's nice to see that some people still understand how to write a quality post! Strategy development
2021年12月26日 23:28
If you want to get useful information about web development, it will be good for you to visit this 우리카지노
2021年12月28日 08:57
Positive site, where did u come up with the information on this posting? I'm pleased I discovered it though, ill be checking back soon to find out what additional posts you include. 토토사이트
2022年1月13日 22:17
Nice post! This is a very nice blog that I will definitively come back to more times this year! Thanks for informative post. is inbox dollars legit
2022年1月21日 21:46 Excellent effort to make this blog more wonderful and attractive. spbo live score
2022年1月23日 04:25
You know your projects stand out of the herd. There is something special about them. It seems to me all of them are really brilliant! 메이저사이트
2022年1月26日 04:04
I read that Post and got it fine and informative. garudaqq
2022年1月26日 19:55
Enjoyed every bit of your blog post. Really looking forward to read more. Fantastic.
2022年1月27日 19:53
You know your projects stand out of the herd. There is something special about them. It seems to me all of them are really brilliant! Speisekarte erstellen
2022年2月02日 20:15
The post is written in very a good manner and it contains many useful information for me. 몰디브바둑이
2022年2月04日 20:31
When you use a genuine service, you will be able to provide instructions, share materials and choose the formatting style. File Extension Open
2022年2月08日 23:01
When you use a genuine service, you will be able to provide instructions, share materials and choose the formatting style. 카지노
2022年2月13日 00:08
I love visiting sites in my free time. I have visited many sites but did not find any site more efficient than yours. Thanks for the nudge! mdomino99
2022年2月16日 02:18
amazing article. keep it up.
2022年2月17日 19:01
wow this saintly however ,I love your enter plus nice pics might be part personss negative love being defrent mind total poeple , viagra tablet It is very good, but look at the information at this address.
2022年2月18日 18:10
The most interesting text on this interesting topic that can be found on the net ... viagra tablet This is very useful, although it will be important to help simply click that web page link:
2022年2月27日 08:08
I wanted to thank you for this excellent read!! I definitely loved every little bit of it. I have you bookmarked your site to check out the new stuff you post. best smm panel
2022年3月01日 04:27
Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!THANKS!!!!!! pkv games
2022年3月01日 04:32
Are you in search of where to buy your certificates online without exams. Buy Legit and valid certificates online with our help. We are experienced in handling that. Get in Touch today Buy OET certificate online
2022年3月04日 01:03
This is highly informatics, crisp and clear. I think that everything has been described in systematic manner so that reader could get maximum information and learn many things. Digital Marketing Agency
2022年3月07日 03:27
Slot machine game information community in Korea 온라인슬롯
2022年3月08日 10:38
I haven’t any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us. 안전놀이터
2022年3月08日 23:11
Great Job, I greatly appreciate that.Do Keep sharing! 메이저사이트
2022年3月10日 09:08
I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much. 메이저사이트
2022年3月11日 20:42
This is very educational content and written well for a change. It's nice to see that some people still understand how to write a quality post! เว็บค่าย JILI
2022年3月18日 10:42
Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!Thanks 안전놀이터
2022年4月01日 00:18
Wow, cool post. I'd like to write like this too - taking time and real hard work to make a great article... but I put things off too much and never seem to get started. Thanks though. 의정부출장안마
2022年4月08日 08:38
We have sell some products of different custom boxes.it is very useful and very low price please visits this site thanks and please share this post with your friends. 인천출장마사지
2022年4月12日 11:25
I have read all the comments and suggestions posted by the visitors for this article are very fine,We will wait for your next article so only.Thanks! 출장안마
2022年4月15日 09:03
Very efficiently written information. It will be beneficial to anybody who utilizes it, including me. Keep up the good work. For sure i will check out more posts. This site seems to get a good amount of visitors. invention prototype companies
2022年4月17日 00:35
Wow, What a Excellent post. I really found this to much informatics. It is what i was searching for.I would like to suggest you that please keep sharing such type of info.Thanks foto malen lassen
2022年5月06日 23:51
TNBSE 10th Exam 10th Textbook 2023 is available for download for those who have applied for the Tamil Nadu 10th Class test. The Secondary School Leaving Certificate (SSLC) Examination for the year 2023 was successfully administered by the Tamil Nadu Board. TN 10th Book 2023 The Tamil Nadu Xth Class Annual Examination 2023 was attended by a large number of students. TN SSLC 10th Textbook 2023 is now in the hands of the contestants.
2022年5月22日 10:40
I loved your blog post. Thanks Again. Great.
2022年5月28日 23:01
Chhattisgarh Board 9th Syllabus 2023 On 01st November, 2000 the CG board was founded. CG board is known as Chhattisgarh Board of Secondary Education/ CGBSE. The board have target of providing best education in the state. CG 9th Syllabus 2023 It is held 1st class to Class 9th class education in the Hindi and English language. On the board official site GSEB 9th Syllabus 2023.
2022年5月30日 09:16
Fantastic post. Much thanks again. Cool.
2022年8月03日 06:05
The Food Security Card is also known as Ration Card provides to the middle-class income group and economically backward group to get the ration at subsidy rates. Food Security Card The purchase of pulses and other essential commodities of the kitchen may provide at very low cost in the Ration Shops placed by Government at a subsidy rate. It is also proof of the identification of an individual and their family in India. Every Government application or any address proof will ask for a Ration Card as an option to prove your identity. The motive of this card is to provide support to economically backward class people, by which they can have their livelihood without much difficulty. Here 99employee will provide some details about FSC, just check-in .
2022年8月18日 09:37
Saya sangat menikmati hanya membaca semua weblog Anda.
2022年8月20日 18:11
This will show you any content pages associated with those links. The content pages are usually informational, although sometimes they contain affiliate links to other companies. dark web links
2022年8月20日 18:54
To find out more about links, subscribe to the newsletter called Search Engine Land. In this newsletter, you will receive important tips and information about improving your site's ranking on Google. deep web
2022年8月20日 19:27
The Dark Net is an untapped goldmine for anyone willing to take advantage of it. The Dark Web is a part of the World Wide Web that's not visible to the common browser or search engine. dark web sites
2022年8月20日 20:01
A lot of these sites are link farms. These are websites that have hundreds of other links leading to their own page on the Web. dark web links
2022年8月20日 20:19
Other sites, such as those offering gambling sites, have been known to spam innocent gamers with links to their own gambling sites. dark web
2022年8月20日 20:41
The most common product an affiliate marketer sells is information products. This can be information on a new topic, an e-book, or even a manual on a particular subject. work from home jobs
2022年8月20日 21:03
Some of them will even show you some of the best ways to do affiliate marketing. These include things like free sites and eBooks. affiliate marketing success
2022年8月24日 23:52
UP Board 10th Question Paper 2023 Download, Uttar Pradesh Madhyamik Shiksha Parishad UPMSP has been announced the New Question Paper and Model Question Paper for high school class 10th exams for 2023. UP High School New Question Paper 2023 PDF The examination will begin from March 16th and end on 01st April 2023. The exams are New Model Papered in two sessions first one from 2023 high school and intermediate UP Board examinations.
2022年9月04日 07:44
Kunjungi situs menjamin cuan terbaik bandar cuan777
2022年10月28日 06:16
vps forex vps forex murah vps trading vps trading murah
2022年11月03日 12:08
Get the best realistic hentai sex dolls now! HXDOLL Hentai Sex Dolls
2022年11月09日 02:47
The agricultural sector in Haryana state is quite advanced, with digital systems running the sector. Farmers can avail of different land and crop information from an online designed portal. Haryana Meri Fasal Mera Byora List 2023 Meri Fasal Mera Byora is an online legal portal created by the Haryana Government to cater to state farmers. The Fasal Haryana portal contains multiple farming services. Farmers can register to access the information for all services.
2023年1月26日 23:56
I am happy to visit your blog again. It's been months for me. Well, I've been waiting for this article for a long time. I need this article to complete my college assignment. and have the same topic as your article. Thank you very much. Big portions.
Please visit my blog: https://www.123articleonline.com/articles/1325067/top-saas-companies-2022-to-choose-from
https://techad.jigsy.com/
https://techsupdatesnow.wordpress.com/2023/01/10/how-accounting-affiliate-software-can-unlock-small-business-profits-with-affiliate-marketing/
2023年2月04日 00:11
Your post is really helpful. I thank you sharing this information.Online Quran Center for Kids and Adults students in USA, UK, Australia, Germany & western in other countries admission now free trial.
2023年2月09日 22:53
This authority is entirely in charge of issuing Model Paper 2024, conducting 12th tests, supplying Model Paper 2024s, and conducting extra exams for individuals who failed the normal assessment. The Previous Paper or Question Paper 2024 that we have is provisional. 12th Model Paper 2024 If necessary, the State Board has the right to make changes to the information. Once the official dates are published on the State Board's website, we will update the Question Paper 2024.