<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
    <channel>
        <title>Download CUBRID Source and Build</title>
        <link>http://www.cubrid.org/?mid=download_source_and_build</link>
        <description>Download CUBRID Source and Build</description>
        <language>en</language>
        <pubDate>Thu, 08 Apr 2010 20:24:07 -0800</pubDate>
        <lastBuildDate>Fri, 03 May 2013 01:55:23 -0800</lastBuildDate>
        <generator>XpressEngine 1.4.4.1</generator>
                        										        <item>
            <title>﻿How to Download...</title>
            <dc:creator>CUBRID</dc:creator>
            <link>http://www.cubrid.org/download_source_and_build</link>
            <guid isPermaLink="true">http://www.cubrid.org/download_source_and_build</guid>
                                    <description><![CDATA[<span style="color: rgb(149, 16, 21);">﻿</span><h1>How to Download CUBRID Source Code and Build it</h1>
<p>As someone who has not used CUBRID before, you need to know how to get started. You are just starting a very enjoyable journey and we warmly welcome you to CUBRID and encourage you to read the following steps.</p>
<h2>Requirements for the Building Process</h2>
<p>Even though the following tutorial is based on the system&nbsp;currently being developed, which is CUBRID for Linux CentOS 5.x., on most operating systems you will be able to build CUBRID following the steps below.</p>
<h3>Tools to Create a Makefile</h3>
<ul>
<li>libtoolize (GNU libtool) 1.5.22</li>
<li>aclocal (GNU automake) 1.9.6</li>
<li>autoconf (GNU Autoconf) 2.59</li>
<li>automake (GNU automake) 1.9.6</li>
<li>GNU Make 3.81</li>
</ul>
<h3>Libraries and Tools to Build the CUBRID Source</h3>
<ul>
<li>J2SDK : jdk1.5.0_15</li>
<li>ANT : Apache Ant version 1.6.5 compiled on January 6 2007</li>
<li>elfutils-libelf</li>
<li>libtermcap</li>
<li>libcurses</li>
<li>libncurses (or libncurses5)</li>
<li>texinfo</li>
<li>flex</li>
<li>lzo : (included in external/lzo-2.03)</li>
<li>PCRE : (included in external/pcre-7.6)</li>
<li>GC : (included in external/gc6.7)</li>
<li>libedit : (included in external/libedit-20070831-2.10)
<ul>
<li>In the CUBRID source, it is recommended to use those included in external. Some systems are not compatible with the libraries included in CUBRID.</li>
</ul>
</li>
<li>Note
<ul>
<li>Sun JAVA J2SDK may not be able to find the included header file jni.h jni_md.h. Then, copy the header file to the include directory of CUBRID. Even when SDK is set up correctly, it may not find the header file in some cases.</li>
<li>Elfutils needs files other than nlist.h, and these files are installed in most operating systems by	default. However, some operating systems do not have the files, so install them.</li>
</ul>
</li>
</ul>
<h2>How to Download Source</h2>
<p>Because CUBRID consists of more than 1000 files, it may take different time for source to be downloaded. It depends on your network connection if you checkout from the <a href="http://svn.cubrid.org/cubridengine/" target="_blank">CUBRID SVN</a>&nbsp;and&nbsp;<a href="https://sourceforge.net/projects/cubrid/develop" target="_blank">Sourceforge.net Subversion (SVN) Repository</a>.</p>
<p>To download the CUBRID source code, approximately 300 MB free space is required. Additionally around 200 MB free space is required, because many object files and executable files are created during the building process.</p>
<ol>
<li>Create a folder to store the source. The folder name must be in English without a space.</li>
<li>Download the source code by running the SVN client. Run it at the prompt as shown below or use a GUI client such as&nbsp;<a href="http://tortoisesvn.tigris.org/">TortoiseSVN</a>.</li>
</ol>
<h2>How to Download the Released Source</h2>
<p>Since the released source code is managed with the tag, <b>anyone can download the most recent source code.</b> The tag for a release version is shown below:</p>
<ul>
<li><b>Release version:</b> CUBRID 2008 R2.0</li>
<li><b>Tag name:</b> 2008_R2.0</li>
</ul>
<h2>How to Build</h2>
<p>The build process is different depending on the operating system platform, so you need to build according to your platform.</p>
<h3>Building on Linux</h3>
<p>It is assumed that the directory of the source is the <b>cubrid_src</b> in the user directory.</p>
<ol>
<li>Move to the directory where the source is stored.</li>
<p><b>[user@host] cd $HOME/cubrid_src</b></p>
<li>Execute autogen.sh.</li>
<p><b>[user@host] ./autogen.sh</b></p>
<li>Execute the configure script.</li>
<p><b>--prefix=$HOME/cubrid</b></p>
<p>It specifies a directory to be installed. In order to build a debugging version, add the <b>--enable-debug</b> option. CUBRID 2008 R2.0 or higher supports 64-bit, so add the <b>--enable-64bit</b> option to build in a 64-bit environment.</p>
<p><b>[user@host] ./configure --prefix=$HOME/cubrid</b></p>
<p>If this configuration does not work properly, execute the following and then retry configure.</p>
<p><b>[user@host] libtoolize --copy --force</b></p>
<li>Build by using make.</li>
<p><b>[user@host] make</b></p>
<li>Install by using make install.</li>
<p><b>[user@host] make install</b></p>
<li>Modify <b>.bashrc</b> to configure environment variables.</li>
<p><b>[user@host] vim ~/.bashrc</b></p>
<p><b>export CUBRID=$HOME/cubrid</b></p>
<p><b>export CUBRID_DATABASES=$CUBRID/databases</b></p>
<p><span style="color: rgb(149, 16, 21);">//For CUBRID 8.4.x and 8.2.x versions</span><br /><strong>export CUBRID_LANG=En_US</strong></p>

<p><span style="color: rgb(149, 16, 21);">//For CUBRID 9.1 or higher versions. Note: CUBRID_LANG is no longer used!</span><br /><strong>export CUBRID_CHARSET=en_US</strong></p>
<p><b>export PATH=$CUBRID/bin:$PATH</b></p>
<p><b>export LD_LIBRARY_PATH=$CUBRID/lib:$LD_LIBRARY_PATH</b></p>
<li>Register the environment variables.</li>
<p><b>[user@host] source ~/.bashrc</b></p>
<li>Create a databases directory.</li>
<p><b>[user@host] mkdir -p $CUBRID_DATABASES</b></p>
<li>When CUBRID is successfully built, test it by referring to the demo database.</li>
</ol>
<h3>Building on Windows</h3>
<p>It is assumed that the path where the source is checked out is <b>c:&#92;cubrid</b>.</p>
<ol>
<li>Run the "Visual Studio 2008 command Prompt."</li>
<p><img src="/files/attach/images/tutorials/13/image002.gif" editor_component="image_link"/></p>
<li>Move to the <b>win</b> folder under the trunk.</li>
<p><b>C:&gt; cd c:&#92;cubrid	runkwin</b></p>
<li>Build by running <b>devenv.exe</b>. The build process is stored in the <b>build.res</b>.</li>
<p><b>C:&#92;cubrid	runkwin&gt; devenv.exe /rebuild</b></p>
<p>Release <b>cubrid.sln /out .build.res</b></p>
<li>Copy the build files to the installation folder. The build files are located in <b>C:&#92;cubrid	runkwin&#92;install&#92;Release</b>.</li>
<li>When the CUBRID build is successfully installed, test it by referring to the demo database.</li>
</ol>
<p class="important"><b>Note:</b> When building CUBRID R2.0 or earlier, <b>cygwin1.dll</b> is required to run <b>winpcctsantlr.exe</b> and <b>winpcctsdlg.exe</b>. If they are not included in Windows, first, install <b>cygwin</b> before starting the build process. CUBRID R2.0 or higher does not use the <b>antlr</b> parser, so <b>cygwin</b> is not required.</p>]]></description>
                        <pubDate>Thu, 08 Apr 2010 19:25:00 -0800</pubDate>
                                </item>
            </channel>
</rss>
