------art_7604_4059078.1215055197825
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi Kubo,

Thanks.  Actually I export LD_LIBRARY_PATH for non-root user but not for
root. Now it works following these steps:

   - su - root
   - rpm -ivh oracle-instantclient-basic-11.1.0.1-1.rpm
   oracle-instantclient-devel-11.1.0.1-1.rpm   (download
link<http://www.oracle.com/technology/tech/oci/instantclient/index.html>;
or
   install oracle full client)
   - export LD_LIBRARY_PATHsr/lib/oracle/
   11.1.0.1/client/lib:$LD_LIBRARY_PATH
   - cd /usr/lib/oracle/11.1.0.1/client/lib
   - ln -s libclntsh.so.11.1 libclntsh.so
   - gem install ruby-oci8

 2008/6/30 KUBO Takehiro <kubo / jiubao.org>:

> Hi,
>  On Mon, Jun 30, 2008 at 3:50 PM, Jesse Hu <yizhih / gmail.com> wrote:
> > Hi Kubo,
> >
> > I failed to install ruby-oci8 gem on Linux.
> >
> > Error msg:
> >
> > Building native extensions.  This could take a while...
> > ERROR:  Error installing ruby-oci8:
> >        ERROR: Failed to build gem native extension.
> >
> > /usr/bin/ruby extconf.rb install ruby-oci8
> > checking for load library path... ./oraconf.rb:359: warning: Insecure
> world
> > writable dir /opt in PATH, mode 040777
> > (LD_LIBRARY_PATH)...
> > (ld.so.conf)...   not found
> > checking for cc... ok
> > checking for gcc... yes
> > checking for LP64... no
> > checking for ruby header... *** extconf.rb failed ***
> > Could not create Makefile due to some reason, probably lack of
> > necessary libraries and/or headers.  Check the mkmf.log file for more
> > details.  You may need configuration options.
> > My env:
> >  ruby 1.8.6
> >  LD_LIBRARY_PATHsr/lib/oracle/11.1.0.1/client/lib
>  Is it an instant client rpm package? I guess you didn't export
> LD_LIBRARY_PATH.
> To check it, could you try the gem in the following URL?
>    http://www.jiubao.org/tmp/ruby-oci8-1.0.2.gem
>  It prints more information on checking LD_LIBRARY_PATH.
>  --
>   KUBO Takehiro kubo / jiubao.org
>
 --
Cheers,
Jesse

------art_7604_4059078.1215055197825--