Skip to content
Permalink
Browse files
bump to OpenSSL 1_0_0d; md5sums.txt still TBD
  • Loading branch information
dch committed Mar 17, 2011
1 parent 76d0483 commit c6aaedad55b860e7301fa2eec5ce8da7f69827f3
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 40 deletions.
@@ -19,7 +19,7 @@ Glazier requires 6 things to run successfully
## Current State ##############################################################

* The steps below, manually or automated, should produce a working CouchDB build
& self-installing .exe from Erlang/OTP R14B01, and CouchDB 0.11.2 or 1.0.2.
& self-installing .exe from Erlang/OTP R14B01, and CouchDB 1.0.0 onwards.
* The build environment should be fully functional on both 32,64, desktop and
server versions of windows from XP/2003 onwards
* Fetching dependent binaries is described and automated
@@ -32,7 +32,8 @@ Glazier requires 6 things to run successfully
* Glazier tries to be self-contained so that it is both repeatable and also
easy to clean up.
* Compilation stages are not fully automated but are all now command-line driven
* Visual Studio 2010 is not supported yet by all build tools so use Visual Studio Express 2008 instead
* Visual Studio 2010 is not supported yet by all source code so use Visual
Studio Express 2008 instead

# Running Automatically #######################################################

@@ -46,11 +47,10 @@ Glazier requires 6 things to run successfully
cd /relax
CYGWIN="nontsec nodosfilewarning"
CL=/D_BIND_TO_CURRENT_VCLIBS_VERSION=1
tar xzf /relax/bits/apache-couchdb-0.11.2.tar.gz &
tar xzf /relax/bits/apache-couchdb-1.0.2.tar.gz &
tar xzf /relax/bits/curl-7.21.3.tar.gz &
tar xzf /relax/bits/otp_src_R14B01.tar.gz &
cd /relax/otp_src_R14B01; tar xzf /relax/bits/tcltk85_win32_bin.tar.gz &
cd /relax/otp_src_R14B01 && tar xzf /relax/bits/tcltk85_win32_bin.tar.gz &

* then run the following 4 scripts in order

@@ -104,7 +104,7 @@ The mozilla build toolchain is needed solely for building a javascript engine.
from [MSDN](http://msdn.microsoft.com/en-gb/vstudio/)
* install Visual C++ 9 only, to the default locations, using the DVD ISO
[msvc++] excluding optional MSSSQL & Silverlight, or alternatively the
web installer [vsmc++webstart]
web installer [msvc++webstart]

## Windows 7 SDK ##############################################################

@@ -133,7 +133,8 @@ Both CouchDB and Erlang have dependencies on other opensource tools.

## Microsoft Visual C++ runtime ###############################################

* download the runtime installer [vcredist] and copy to `c:\relax\`
* download the runtime installer [vcredist] and copy to `c:\relax\` - note this
is the same as the one provided with VS2008 SP1 - this is IMPORTANT

## set up hard links ##########################################################

@@ -228,10 +229,8 @@ or using mklink.exe
* optional components - used for debugger and java interfaces

cd $ERL_TOP && tar xvzf /relax/bits/tcltk85_win32_bin.tar.gz
# or simply
cd /relax/otp_src_R14B01 && tar xvzf /relax/bits/tcltk85_win32_bin.tar.gz

* or skip the whole damn lot this way
* or skip the whole damn lot this way

echo "skipping gs" > lib/gs/SKIP
echo "skipping jinterface" > lib/jinterface/SKIP
@@ -257,7 +256,7 @@ or using mklink.exe
* or using the relax tools:

start %glazier%\bin\relax.cmd
[select erlang build]
:: [select an erlang build]
erl_config.sh; erl_build.sh


@@ -267,14 +266,15 @@ CouchDB has been built & tested against the following components successfully

* Erlang OTP R14B01 including source
* ICU 4.2.1
* Win32 OpenSSL 1.0.0c
* Win32 OpenSSL 1.0.0d
* Mozilla SpiderMonkey 1.8.5 or SeaMonkey 2.0.11 release
* libcurl 7.21.3

## Javascript #################################################################

The Javascript engine used by CouchDB is Mozilla Spidermonkey. As there is no formal release
for it, you can build from anywhere on trunk. The 1.8.5 source below is also used on the Mac OS X homebrew build of CouchDB.
The Javascript engine used by CouchDB is Mozilla Spidermonkey. As there is no
formal release for it, you can build from anywhere on trunk. The 1.8.5 source
below is also used on the Mac OS X homebrew build of CouchDB.

* to build and install from SpiderMonkey get [spidermonkey_bits]
* run `c:\mozilla-build\start-msvc9.bat` even if you are on a 64-bit platform.
@@ -283,7 +283,6 @@ for it, you can build from anywhere on trunk. The 1.8.5 source below is also use
cd spidermonkey-1.8.5
tar xzf ../bits/57a6ad20eae9.tar.gz
cd ./tracemonkey-57a6ad20eae9/js/src
CL=/D_BIND_TO_CURRENT_VCLIBS_VERSION=1
autoconf-2.13
./configure
make
@@ -362,9 +361,10 @@ for it, you can build from anywhere on trunk. The 1.8.5 source below is also use

## Licences

* the core tools & scripts used in glazier are released or included under the same Apache Licence used for CouchDB
* curl and the included openssl libraries are the only ones distributed with glazier
* the silent installation of each component assumes your implicit acceptance of the rest
* the core tools & scripts used in glazier are released or included under the
same Apache Licence used for CouchDB
* curl and the included openssl libraries are the only ones built into glazier
* the silent installation of each component assumes your implicit acceptance~
* curl <http://curl.haxx.se/docs/copyright.html>
* openssl <http://www.openssl.org/source/license.html>

@@ -376,6 +376,7 @@ for it, you can build from anywhere on trunk. The 1.8.5 source below is also use
[cygwin]: http://www.cygwin.com/setup.exe
[DEP]: http://support.microsoft.com/kb/875352
[erlang_R14B01]: http://www.erlang.org/download/otp_src_R14B01.tar.gz
[erlang_R14B02]: http://www.erlang.org/download/otp_src_R14B02.tar.gz
[icu_bits_curr]: http://download.icu-project.org/files/icu4c/4.2/icu4c-4_2-Win32-msvc9.zip
[icu_bits_latest]: http://download.icu-project.org/files/icu4c/4.6/icu4c-4_6-Win32-msvc10.zip
[inno_bits]: http://www.jrsoftware.org/download.php/is-unicode.exe
@@ -386,7 +387,7 @@ for it, you can build from anywhere on trunk. The 1.8.5 source below is also use
[mozbuild]: http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/MozillaBuildSetup-Latest.exe
[notepadplus_bits]: http://download.sourceforge.net/project/notepad-plus/notepad%2B%2B%20releases%20binary/npp%205.7%20bin/npp.5.7.Installer.exe
[nsis_bits]: http://download.sourceforge.net/project/nsis/NSIS%202/2.46/nsis-2.46-setup.exe
[openssl_bits]: http://www.slproweb.com/download/Win32OpenSSL-1_0_0c.exe
[openssl_bits]: http://www.slproweb.com/download/Win32OpenSSL-1_0_0d.exe
[ramdisk]: http://www.ltr-data.se/files/imdiskinst.exe
[spidermonkey_bits]: http://hg.mozilla.org/tracemonkey/archive/57a6ad20eae9.tar.gz
[SEHOP]: http://support.microsoft.com/kb/956607
@@ -47,10 +47,10 @@ echo START installing compilers...
echo START MS VS2008 Express...
:: TODO remove hackage that prevents installing MSSQL burning CPU and space
pushd %RELAX%\ISOs\VS2008ExpressWithSP1ENUX1504728\VCExpress\WCU\ && rd /s/q dist > NUL: 2>&1
mkdir dist
for %%i in (Silverlight SMO SSE) do @move %%i dist\
::mkdir dist
::for %%i in (Silverlight SMO SSE) do @move %%i dist\
cd .. && start /wait setup.exe /q /norestart
popd
::popd
echo DONE MS VS2008 Express

echo START installing Windows 7 SDK...
@@ -119,7 +119,7 @@ start /wait %GLAZIER%\bits\isetup-5.4.0-unicode.exe /silent /dir="%RELAX%\inno5"
echo DONE install Inno

echo START install NotepadPlus...
start /wait %GLAZIER%\bits\npp.5.7.Installer.exe /S /D=%RELAX%\npp5
7z x -o%relax%\npp %GLAZIER%\bits\npp.5.8.7.bin.minimalist.7z
echo DONE install NotepadPlus

:eof
@@ -61,12 +61,13 @@ set CL=/D_BIND_TO_CURRENT_VCLIBS_VERSION=1
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::check which version of erlang setup we want
:: choice.exe exists on all windows platforms since MSDOS but not on XP
set /p choice=press 4 to use erlang R14b01, 3 to use erlang R13b04, 1 (or wait) to exit to the shell
set /p choice=press 2 for erlang R14b02, 4 for erlang R14b01, 3 to use erlang R13b04, 0 (or wait) to exit to the shell
:: then get to unix goodness as fast as possible
if /i "%choice%"=="1" goto win_shell
if /i "%choice%"=="0" goto win_shell
::::if /i "%choice%"=="2" goto R......
if /i "%choice%"=="3" goto R13B04
if /i "%choice%"=="4" goto R14B01
if /i "%choice%"=="2" goto R14B02
:: else
goto eof

@@ -77,6 +78,13 @@ set ERL_VER=5.8.2
set OTP_VER=R14B01
goto unix_shell

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:R14B02
set ERL_TOP=/relax/otp_src_R14B02
set ERL_VER=5.8.3
set OTP_VER=R14B02
goto unix_shell

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:R13B04
set ERL_TOP=/relax/otp_src_R13B04
@@ -1,7 +1,7 @@
################################################################################
# bits required to build erlang
erlang_R13B04 otp_src_R13B04.tar.gz http://www.erlang.org/download/otp_src_R13B04.tar.gz
erlang_R14B01 otp_src_R14B01.tar.gz http://www.erlang.org/download/otp_src_R14B01.tar.gz
erlang_R14B02 otp_src_R14B02.tar.gz http://www.erlang.org/download/otp_src_R14B02.tar.gz
nsis nsis-2.46-setup.exe http://download.sourceforge.net/project/nsis/NSIS%202/2.46/nsis-2.46-setup.exe
inno isetup-5.4.0-unicode.exe http://www.jrsoftware.org/download.php/is-unicode.exe
wxwidgets wxMSW-2.8.11.zip http://sourceforge.net/projects/wxwindows/files/2.8.11/wxMSW-2.8.11.zip
@@ -12,7 +12,8 @@ libicu icu4c-4_2_1-Win32-msvc9.zip http://download.icu-project.org/files/icu4c/4
###libicu icu4c-4_6-Win32-msvc10.zip http://download.icu-project.org/files/icu4c/4.6/icu4c-4_6-Win32-msvc10.zip
libcurl curl-7.21.3.tar.gz http://curl.haxx.se/download/curl-7.21.3.tar.gz
nsis nsis-2.46-setup.exe http://download.sourceforge.net/project/nsis/NSIS%202/2.46/nsis-2.46-setup.exe
seamonkey seamonkey-2.0.11.source.tar.bz2 http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/2.0.11/source/seamonkey-2.0.11.source.tar.bz2
spidermonkey 57a6ad20eae9.tar.gz http://hg.mozilla.org/tracemonkey/archive/57a6ad20eae9.tar.gz
#seamonkey seamonkey-2.0.11.source.tar.bz2 http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/2.0.11/source/seamonkey-2.0.11.source.tar.bz2
################################################################################
# bits required for both builds
#vcredist is provided within VC++ bundle. here are a number of links for different versions ... go figure
@@ -32,5 +33,5 @@ seamonkey seamonkey-2.0.11.source.tar.bz2 http://releases.mozilla.org/pub/mozill

openssl Win32OpenSSL-1_0_0c.exe http://www.slproweb.com/download/Win32OpenSSL-1_0_0c.exe
## not auto redirect but original link is from http://www.apache.org/dyn/closer.cgi?path=/couchdb/1.0.1/apache-couchdb-1.0.1.tar.gz
apache-couchdb-1.0.2 apache-couchdb-1.0.2.tar.gz http://people.apache.org/~davisp/dist/1.0.2/apache-couchdb-1.0.2.tar.gz
apache-couchdb-1.0.1 apache-couchdb-1.0.1.tar.gz http://people.apache.org/~nslater/dist/1.0.1/apache-couchdb-1.0.1.tar.gz
apache-couchdb-0.11.2 apache-couchdb-0.11.2.tar.gz http://people.apache.org/~nslater/dist/0.11.2/apache-couchdb-0.11.2.tar.gz
@@ -7,6 +7,6 @@
# stuff we could use in future
#bitvise_sshd_bits WinSSHD5-Inst.exe http://dl.bitvise.com/WinSSHD5-Inst.exe
ramdisk imdiskinst.exe http://www.ltr-data.se/files/imdiskinst.exe
notepadplus npp.5.7.Installer.exe http://downloads.sourceforge.net/project/notepad-plus/notepad%2B%2B%20releases%20binary/npp%205.7%20bin/npp.5.7.Installer.exe
notepadplus npp.5.8.7.bin.minimalist.7z http://downloads.sourceforge.net/project/notepad-plus/notepad%2B%2B%20releases%20binary/npp%205.8.7%20bin/npp.5.8.7.bin.minimalist.7z
junction junction.exe http://live.sysinternals.com/junction.exe
setenv setenv.exe http://barnyard.syr.edu/~vefatica/ftpfiles/setenv.exe
@@ -1,25 +1,23 @@
fcd1b1472302fc7283147f4df471f402 *7z465.exe
076b2637dda91cb81fb9bd922ac2f112 *apache-couchdb-0.11.2.tar.gz
001cf286b72492617e9ffba271702a00 *apache-couchdb-1.0.1.tar.gz
cafe69114c20c90c47ad3caca05870d8 *curl-7.21.1.tar.gz
539d6ea0a145ea8f257fca682478f9dd *GRMSDK_EN_DVD.iso
7ffbbe0f23f672181c89923c9f7a1de1 *apache-couchdb-1.0.2.tar.gz
25e01bd051533f320c05ccbb0c52b246 *curl-7.21.3.tar.gz
1081c87025a5a507a55426ac59222b7a *GRMSDKX_EN_DVD.iso
dd4b12ec5e405809522725fdae14277f *icu4c-4_2_1-Win32-msvc9.zip
c720c23193a35d11ab71a077cdfb3c5a *imdiskinst.exe
5e1c8cc16cc63ef41e429faaa9270600 *isetup-5.3.10-unicode.exe
a95aa74a796bd65f8356cd1fffd6d891 *imdiskinst.exe
07991b0a7ba4f84cb350b33125edad5a *isetup-5.4.0-unicode.exe
f1f23d4df41c5da5444c97781ff2cab7 *junction.exe
15ed342443781bd70d8a09f06a03d5d3 *MozillaBuildSetup-Latest.exe
7927ab2b518445db4e15ed9d67c1753e *npp.5.7.Installer.exe
3768cfc7a8af33d7e3357d2af8fb7156 *npp.5.8.7.bin.minimalist.7z
5e02441c7f3fa4da4f4928a2d42a07c3 *nsis-2.46-setup.exe
ca6da4921e438891967900aa6a084341 *otp_src_R13B04.tar.gz
a24873bbace9ab3c307f3d2492d9e134 *otp_src_R14A.tar.gz
5292a04556d17ad528d570e02357dfbb *otp_src_R14B.tar.gz
08771818ede4a30c50500328b16c6f85 *seamonkey-2.0.10.source.tar.bz2
ce595447571128bc66f630a8fa13339a *otp_src_R14B01.tar.gz
71a4a1b3d95a7f4751f4b60e5a9a9f72 *otp_src_R14B02.tar.gz
f701a6f58b187a02c54165310a810ab2 *setenv.exe
a4f5eaaa1096891b9812b81f104fc4d9 *setup.exe
2ece86924bf59c82b3c1936760ef4631 *setup.exe
2d8cf22da82b30c36f47675a8486a3f3 *57a6ad20eae9.tar.gz
5b39aa309baf8633b475f25e23b75677 *tcltk85_win32_bin.tar.gz
2c79302d42817d54bb621216a6d4dc7f *vcredist_x86.exe
83b3292c1aa8e4d3eb0c6bcd66a55cd0 *VS2008ExpressWithSP1ENUX1504728.iso
edcc2e11d13cc273030f75bd8d9cf7ea *Win32OpenSSL-1_0_0b.exe
23d6b92bc7eb100fc1294e6b124b7e75 *Win32OpenSSL-1_0_0c.exe
ad14196b38470d927f438ab08e8f16b3 *wxMSW-2.8.11.zip
17e778a5f83cff4f32a50999a46ce5b5 *wxMSW-2.8.11_erlang_overlay.zip

0 comments on commit c6aaeda

Please sign in to comment.