From: Frank Schlottmann-G. <fs...@us...> - 2000-11-18 06:50:11
|
Update of /cvsroot/firebird/interbase/build_docs In directory slayer.i.sourceforge.net:/tmp/cvs-serv19382/interbase/build_docs Added Files: ibbuild_linux_cvs_build.html Removed Files: ibbuild_linux_cvs_build.hmtl Log Message: finally did it :-) --- NEW FILE --- <html> <head> <meta name="GENERATOR" content="Mozilla/4.72 [en] (X11; U; Linux 2.2.14-5.0 i686) [Netscape]"> </head> <body> <h3> Linux Instructions for building Firebird from CVS</h3> <b>1. Introduction</b> <p>This is the updated "howto" build the database from the firebird CVS tree. <br>Any mistakes, andthere are still likely to be a few are all mine... <p>Regards <p>Mark <br> <p><b>2. What you need</b> <p> InterBaseSS_LI-V6.0.tar - you need one running to build a new one. <br> Interbase source - downloadable from firebird CVS tree (see later for details) <br> <p><b>3. Installing superserver interbase</b> <p> Before you can build interbase you need an existing running interbase. This explains how to install the curent version. <blockquote><i>Create an install directory and put download in it</i></blockquote> $mkdir /tmp/install <br> $cp InterBaseSS_LI-V6.0.tar /tmp/install <br> $cd /tmp/install <br> $tar -xvf InterBaseSS_LI-V6.0.tar <blockquote><i>This results in two files (InterBaseSS_LI-V6.0.tgz, install) in the current directory. To do the install to /opt/interbase do the following. I did this as root user</i></blockquote> $./install -s /tmp/install/InterBaseSS_LI-V6.0.tgz <blockquote><i>The other options to install is -c which installs a classic interbase. You need the full path to the .tgz file. Also in the beta6.0 documentation it explains how to set it up as user 'interbase'.</i> <p><i>I also tried to install it to /usr/local/interbase but that didn't work for two reasons 1. the error message db was stll expected from /opt/interbase/messages.gdb and 2. in was at nfs drive and when i ran the server it keep trying to connect to a server running on the machine that had the nfs drive. Soo stay with /opt and make sure its a local drive.</i> <p><i>Now to start the server</i></blockquote> $cd /opt/interbase/bin <br> $./ibmgr -start -user SYSDBA -password masterkey <blockquote><i>You should get some pleasant messages. Then try it against one of the test database.</i></blockquote> $/opt/interbase/bin <br> $./isql -user SYSDBA -password masterkey <br> SQL>connect /opt/interbase/examples/employee.gdb; <br> SQL>show tables; <br> SQL> <br> <p><b>3. Extracting the source from CVS</b> <blockquote><i> Create a work directory and move into it.</i></blockquote> $mkdir /tmp/build <br> $cd /tmp/build <blockquote><i> Then check out the sources from the firebird CVS tree. This is either:</i></blockquote> $export CVS_RSH=ssh <br> $cvs -z3 -dd...@cv...:/cvsroot/firebird co interbase <p><i> If you are a developer, or</i> <p> $cvs -d:pserver:ano...@cv...:/cvsroot/firebird login <br> $cvs -z3 -d:pserver:ano...@cv...:/cvsroot/firebird co interbase <blockquote><i> If you are not intenting to commit changes.</i></blockquote> <blockquote><i>This creates a subdirectory InterBase with most of the source code.</i></blockquote> <blockquote> </blockquote> <b>4. Install Reference databases</b> <blockquote><i>Build the reference databases used for compiling interbase.</i></blockquote> $cd /tmp/build/InterBase <br> $sh builds/original/buildRefDatabases <blockquote><i>It is important that this happens in the /tmp/build/Interbase directory. It will build a directory /tmp/build/refDatabases which will contain all the required databases..</i></blockquote> <i> Expect the error:</i> <blockquote><i><font size=-1>Use CONNECT or CREATE DATABASE to specify a database</font></i> <br><i><font size=-1>Statement failed, SQLCODE = -902</font></i> <br><i><font size=-1>I/O error for file "/tmp/build/InterBase/metadata.gdb"</font></i> <br><i><font size=-1>-Error while trying to open file</font></i> <br><i><font size=-1>-No such file or directory</font></i></blockquote> <blockquote><i>Is OK, it's just trying to delete the database before creating a new one.</i> <br> </blockquote> <b>5. Setting up the directories.</b> <blockquote><i>Interbase needs a number of symbolic links to databases/source, and directories.</i></blockquote> $cd /tmp/build/InterBase <br> $sh setup_dirs LINUX DEV /tmp/build/refDatabases <blockquote><i>LINUX specifies the system, DEV could also be PROD if yoyu feel lucky, and the last parameter is where we have our reference databases.</i></blockquote> <p><br><b>6. Building.</b> <blockquote><i>We are now ready to start building the database engine. Change to the root directory and start the build.</i></blockquote> $cd /tmp/build/InterBase <p> $build_kits builds SUPER <br> <p><b>7. Testing the build</b> <blockquote><i>You should now (some 4-10 minutes later) have a directory "/tmp/build/InterBase/interbase/" that contains the interbase binary distribution.</i> <p><i>Testing the build basically means shutting down the current database, and starting up the one in the directory:</i></blockquote> <p><br> /tmp/build/InterBase/interbase/bin <br> <p><b>8. Finding out more about the build</b> <p><i>If you want to know more about the build have a look through the file "InterBase/builds/original/000_readme"</i> <br><i>Some of this document will be a straight copy from there, also have a look at:</i> <br><i><a href="http://www.interbase2000.org/highlevelsource.htm">http://www.interbase2000.org/highlevelsource.htm</a></i> <br><i>for an overview of the source directories.</i> <br> <p>Good Luck.... <p>Mark </body> </html> --- ibbuild_linux_cvs_build.hmtl DELETED --- |