First, get a checkout of the project if you haven't already:
cvs -d :pserver:anonymous@rubyforge.org:/var/cvs/cvspassman login cvs -d :pserver:anonymous@rubyforge.org:/var/cvs/cvspassman checkout tibcorv
Solaris Setup
Make sure you have the necessary dependencies. This project has only been tested with Ruby 1.8.4. Ruby 1.6.8 will not work. You'll also need gcc on your path.
$ ruby -v ruby 1.8.4 (2005-12-24) [i386-solaris2.10] $ gcc -v gcc version 3.3.2
Now, create the make file:
$ ruby extconf.rb --with-tibrv-dir=/usr/local/pkgs/tibrv-7.4.1 checking for gethostbyaddr() in -lsocket... yes checking for tibrv_Open() in -ltibrv... yes creating Makefile
$ make $ make install
You may need to make sure that libtibrv.so is in your LD_LIBRARY_PATH:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pkgs/tibrv-7.4.1/lib
$ ruby test/ts_all.rb Loaded suite test/ts_all Started .......................................... Finished in 0.064058 seconds. 42 tests, 99 assertions, 0 failures, 0 errors
Windows Setup
Make sure you have the necessary dependencies. I assume you have the version of Ruby which comes with the Ruby installer, the free (express) version of Microsoft Visual C++, and the Windows Software Development Kit installed.
> ruby -v ruby 1.8.4 (2005-12-24) [i386-mswin32] > cl Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86 Copyright (C) Microsoft Corporation. All rights reserved. usage: cl [ option... ] filename... [ /link linkoption... ]
If 'ruby extconf.rb' does not work, check the mkmf.log for errors.
For this error:
> grep C1083 mkmf.log conftest.c(1) : fatal error C1083: Cannot open include file: 'windows.h': No suc h file or directoryYou need to install http://www.microsoft.com/msdownload/platformsdk/sdkupdate/ and/or set your include path:
> echo %INCLUDE% C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE;C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include;C:\TIBCO\TIBRV\include