@@ -38,7 +38,7 @@ if test "$PHP_MSSQL" != "no"; then
fi
fi
- if test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.so"; then
+ if test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.$SHLIB_SUFFIX_NAME"; then
AC_MSG_ERROR(Could not find $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.[a|so])
@@ -46,7 +46,7 @@ if test "$PHP_PDO_DBLIB" != "no"; then
PHP_LIBDIR=lib
fi
- if test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.so"; then
+ if test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.$SHLIB_SUFFIX_NAME"; then
AC_MSG_ERROR(Could not find $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.[a|so])
_LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
-
else
whole_archive_flag_spec=''
fi
@@ -15608,6 +15519,10 @@ fi
hardcode_shlibpath_var=no
;;
+ freebsd1*)
+ ld_shlibs=no
+ ;;
+
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
# support. Future versions do this automatically, but an explicit c++rt0.o
# does not break anything, and helps significantly (at the cost of a little
@@ -15620,7 +15535,7 @@ fi
;;
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
<html><head><metahttp-equiv="Content-Type"content="text/html; charset=ISO-8859-1"><title>Using SlapOS in the Windows</title><metaname="generator"content="DocBook XSL Stylesheets V1.76.1"></head><bodybgcolor="white"text="black"link="#0000FF"vlink="#840084"alink="#0000FF"><divclass="book"title="Using SlapOS in the Windows"><divclass="titlepage"><div><div><h1class="title"><aname="id9225933"></a>Using SlapOS in the Windows</h1></div><div><divclass="author"><h3class="author"><spanclass="firstname">Jondy</span><spanclass="surname">Zhao</span></h3></div></div><div><divclass="revhistory"><tableborder="1"width="100%"summary="Revision history"><tr><thalign="left"valign="top"colspan="3"><b>Revision History</b></th></tr><tr><tdalign="left">Revision 0.1</td><tdalign="left">2013-01-06</td><tdalign="left">Jondy Zhao - jondy.zhao@gmail.com</td></tr><tr><tdalign="left"colspan="3">Create the document.</td></tr></table></div></div></div><hr></div><divclass="toc"><p><b>Table of Contents</b></p><dl><dt><spanclass="chapter"><ahref="#ch_introduction">1. Introduction</a></span></dt><dt><spanclass="chapter"><ahref="#ch_register_slapos_org">2. Registering in the slapos.org</a></span></dt><dt><spanclass="chapter"><ahref="#ch_install_slapos">3. Installing SlapOS slave node</a></span></dt><dd><dl><dt><spanclass="section"><ahref="#id9211182">3.1. Installing by MSI Package</a></span></dt><dt><spanclass="section"><ahref="#id9213740">3.2. Installing by sources</a></span></dt><dd><dl><dt><spanclass="section"><ahref="#id9213749">3.2.1. Install Cygwin</a></span></dt><dt><spanclass="section"><ahref="#id9213848">3.2.2. Buildout SlapOS</a></span></dt><dt><spanclass="section"><ahref="#id9213913">3.2.3. IPv6 Support</a></span></dt><dt><spanclass="section"><ahref="#id9213973">3.2.4. Run slapformat</a></span></dt></dl></dd></dl></dd><dt><spanclass="chapter"><ahref="#ch_create_instance_wordpress">4. Creating an instancee of Wordpress in the SlapOS</a></span></dt><dt><spanclass="appendix"><ahref="#appendix_cygwin_packages">A. Cygwin Required Packages List</a></span></dt></dl></div><divclass="chapter"title="Chapter1.Introduction"><divclass="titlepage"><div><div><h2class="title"><aname="ch_introduction"></a>Chapter1.Introduction</h2></div></div></div><p>SlapOS can be described as a cloud operating system in which "everything is a process" unlike Unix in which "everything is a file". If one has to manage thousands of servers with thousands of processes, hundred different applications in multiple different releases or versions, SlapOS can help you a lot by making the whole management process well specified, automated and under control.</p><p>The goal of this tutorial is to teach how to use SlapOS in the windows.
</p><divclass="itemizedlist"><ulclass="itemizedlist"type="disc"><liclass="listitem"><p>First you need register an account in the slapos.org (refer to <aclass="xref"href="#ch_register_slapos_org"title="Chapter2.Registering in the slapos.org">Chapter2, <i>Registering in the slapos.org</i></a>)</p></li><liclass="listitem"><p>Then install SlapOS slave node in the windows (refer to <aclass="xref"href="#ch_install_slapos"title="Chapter3.Installing SlapOS slave node">Chapter3, <i>Installing SlapOS slave node</i></a>)</p></li><liclass="listitem"><p>Finally release software and create instanace of software in the SlapOS node (refer to <aclass="xref"href="#ch_create_instance_wordpress"title="Chapter4.Creating an instancee of Wordpress in the SlapOS">Chapter4, <i>Creating an instancee of Wordpress in the SlapOS</i></a>)</p></li></ul></div><p>
</p></div><divclass="chapter"title="Chapter2.Registering in the slapos.org"><divclass="titlepage"><div><div><h2class="title"><aname="ch_register_slapos_org"></a>Chapter2.Registering in the slapos.org</h2></div></div></div><p>Before we start, we need to register in VIFIB community Cloud. By doing so, we will obtain X509 certificate and key, make sure you store both of them to your local files. Take also note of the computer id, for example "COMP-161", store it somewhere. All of these are later needed for the installing process.</p><p>Refer to <aclass="ulink"href="http://www.slapos.org/wiki/slapos-Wiki.Home/osoe-Lecture.SlapOS.Extended/developer-Installing.SlapOS.Slave.Node.Source"target="_top">http://www.slapos.org/wiki/slapos-Wiki.Home/osoe-Lecture.SlapOS.Extended/developer-Installing.SlapOS.Slave.Node.Source</a> in the section VIFIB Registration.</p></div><divclass="chapter"title="Chapter3.Installing SlapOS slave node"><divclass="titlepage"><div><div><h2class="title"><aname="ch_install_slapos"></a>Chapter3.Installing SlapOS slave node</h2></div></div></div><divclass="toc"><p><b>Table of Contents</b></p><dl><dt><spanclass="section"><ahref="#id9211182">3.1. Installing by MSI Package</a></span></dt><dt><spanclass="section"><ahref="#id9213740">3.2. Installing by sources</a></span></dt><dd><dl><dt><spanclass="section"><ahref="#id9213749">3.2.1. Install Cygwin</a></span></dt><dt><spanclass="section"><ahref="#id9213848">3.2.2. Buildout SlapOS</a></span></dt><dt><spanclass="section"><ahref="#id9213913">3.2.3. IPv6 Support</a></span></dt><dt><spanclass="section"><ahref="#id9213973">3.2.4. Run slapformat</a></span></dt></dl></dd></dl></div><p>There are 2 ways to install SlapOS slave node in the winodws. One is by MSI package, the other is by sources.</p><divclass="section"title="3.1.Installing by MSI Package"><divclass="titlepage"><div><div><h2class="title"style="clear: both"><aname="id9211182"></a>3.1.Installing by MSI Package</h2></div></div></div><p>Download slapos windows installer: <aclass="ulink"href="http://www.slapos.org/slapos-0.135-cygwin.exe"target="_top">http://www.slapos.org/slapos-0.135-cygwin.exe</a></p><p>Run this MSI installer, click Next and type the information: the destination path, startup menu name, etc.</p><p>In the SlapOS Node Information wizard page, type the information got at above chapter.
</p><p>Waiting for everything done.</p></div><divclass="section"title="3.2.Installing by sources"><divclass="titlepage"><div><div><h2class="title"style="clear: both"><aname="id9213740"></a>3.2.Installing by sources</h2></div></div></div><p>We need Cygwin environment in order to install SlapOS slave node from sources in the Windows. </p><divclass="section"title="3.2.1.Install Cygwin"><divclass="titlepage"><div><div><h3class="title"><aname="id9213749"></a>3.2.1.Install Cygwin</h3></div></div></div><p>Go to <aclass="ulink"href="http://cygwin.com/"target="_top">"http://cygwin.com/"</a> and click on <aclass="ulink"href="http://cygwin.com/setup.exe"target="_top">"Install Cygwin Now!"</a>. This will download a GUI installer called setup.exe which can be run to download a complete cygwin installation via the internet. Follow the instructions on each screen to install Cygwin. </p><p>The Root Directory for Cygwin (default C:\cygwin) will become / within your Cygwin installation. You must have write access to the parent directory, and any ACLs on the parent directory will determine access to installed files.</p><p>By default, setup.exe will install only the packages in the Base category and their dependencies, resulting in a minimal Cygwin installation. We need choose the packages required by SlapOS, see <aclass="xref"href="#appendix_cygwin_packages"title="AppendixA.Cygwin Required Packages List">AppendixA, <i>Cygwin Required Packages List</i></a>. Since setup.exe automatically selects dependencies, be careful not to unselect any required packages.</p><p>You can install cygwin in the command console either:
</p><divclass="itemizedlist"><ulclass="itemizedlist"type="disc"><liclass="listitem"><p>Click startup menu</p></li><liclass="listitem"><p>Click Run, type command: 'cmd', click OK to enter windows console</p></li><liclass="listitem"><p>Type the following commands:</p><preclass="programlisting">
C:\Documents and Settings\Administrator>D:
D:\>MD slapos
D:\>cd slapos
</pre></li><liclass="listitem"><p>Download setup.exe to D:\slapos from cygwin.com</p></li><liclass="listitem"><p>In the windows console, run:</p><preclass="programlisting">
</p></div><divclass="section"title="3.2.2.Buildout SlapOS"><divclass="titlepage"><div><div><h3class="title"><aname="id9213848"></a>3.2.2.Buildout SlapOS</h3></div></div></div><p>Double click the desktop icon "Cygwin" or C:\cygwin\Cygwin.bat (Assume the cygwin root directory is C:\cygwin). A cygwin box will open, the following commands are typed in this box.
</p></div><divclass="section"title="3.2.3.IPv6 Support"><divclass="titlepage"><div><div><h3class="title"><aname="id9213913"></a>3.2.3.IPv6 Support</h3></div></div></div><p>If native IPv6 is available, skip this section. Otherwise be sure you have installed IPv6 by the command:
</p><p>Download openvpn windows installer, for example, openvpn-2.2.1-install.exe, then install openvpn. By default, it installed at <codeclass="filename">C:\Program Files\OpenVPN</code></p><p>Copy required files of openvpn to /opt/openvpn and edit client.ovpn
</p></div><divclass="section"title="3.2.4.Run slapformat"><divclass="titlepage"><div><div><h3class="title"><aname="id9213973"></a>3.2.4.Run slapformat</h3></div></div></div><p>Assume we have registered a server which id is 'COMP-161', and saved its key and certificate files in the home directory. So we can use script 'configure.sh' to do all the configuration.
</p></div></div></div><divclass="chapter"title="Chapter4.Creating an instancee of Wordpress in the SlapOS"><divclass="titlepage"><div><div><h2class="title"><aname="ch_create_instance_wordpress"></a>Chapter4.Creating an instancee of Wordpress in the SlapOS</h2></div></div></div><p>The common way to release a software is to login vifib website. But we haven't integrated this software.cfg into vifib, so we verify it in the local machine. It need a patch:
</p><p>Some dlls need to rebase in order to avoid fork issue in the Cygwin. Refer to <aclass="ulink"href="http://cygwin.com/faq.html"target="_top">http://cygwin.com/faq.html</a> question 4.44 or search "rebase" in this page. First, exit all Cygwin processes and stop all Cygwin services.
</p><preclass="programlisting">
$ net stop cfgslapos
$ ps -ef | grep python2.7
# kill all these process which start by supervisord
$ exit
</pre><p>
If you install SlapOS node by MSI package, Click Start menu, select SlapOS program group, click Run rebaseall. Otherwise, download rebase-software.bat and save it in the cygwin root path.
Now wordpress should work. Type "http://localhost:8080/index.php" in your browser to check it.</p></div><divclass="appendix"title="AppendixA.Cygwin Required Packages List"><divclass="titlepage"><div><div><h2class="title"><aname="appendix_cygwin_packages"></a>AppendixA.Cygwin Required Packages List</h2></div></div></div><p>The following packages are required when building SlapOS Node
make-targets = install && (for i in curses unctrl eti form menu panel term; do ln -sf ncurses/$i.h ${buildout:parts-directory}/${:_buildout_section_name_}/include/$i.h; done; ln -sf libncurses.so ${buildout:parts-directory}/${:_buildout_section_name_}/lib/libcurses.so) && ./configure ${:configure-options} --enable-widec && make ${:make-options} install
install && (for i in curses unctrl eti form menu panel term; do ln -sf ncurses/$i.h ${buildout:parts-directory}/${:_buildout_section_name_}/include/$i.h; done; ln -sf libncurses.so ${buildout:parts-directory}/${:_buildout_section_name_}/lib/libcurses.so) && ./configure ${:configure-options} --enable-widec && make ${:make-options} install
make-options =
-j1
[x86-cygwin-ncurses]
configure-options =
${ncurses:configure-options}
--with-libtool
make-targets = install && (for i in curses unctrl eti form menu panel term; do ln -sf ncurses/$i.h %(prefix)s/include/$i.h; done; ln -sf libncurses.dll.a %(prefix)s/lib/libcurses.dll.a) && CFLAGS="" CPPFLAGS="" CXXFLAGS="" ./configure --prefix=%(prefix)s ${ncurses:configure-options} --enable-widec && make install
[no-environment]
# pass dummy LDCONFIG to skip needless calling of ldconfig by non-root user
# pass dummy LDCONFIG to skip needless calling of ldconfig by non-root user