Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gem install ruby-oci8-2.1.5.gem issue #48

Closed
AlvinkummHu opened this issue Nov 28, 2013 · 7 comments
Closed

gem install ruby-oci8-2.1.5.gem issue #48

AlvinkummHu opened this issue Nov 28, 2013 · 7 comments

Comments

@AlvinkummHu
Copy link

ruby -v
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]

Error detail:
ERROR: Error installing ruby-oci8-2.1.5.gem:
ERROR: Failed to build gem native extension.

    /home/vcap/cloudfoundry/.deployments/devbox/deploy/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb

checking for load library path...
LD_LIBRARY_PATH is not set.
checking ld.so.conf... no
checking for cc... ok
checking for gcc... yes
checking for LP64... yes
checking for sys/types.h... yes
checking for ruby header... ok
*** 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.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/home/vcap/cloudfoundry/.deployments/devbox/deploy/rubies/ruby-1.9.2-p180/bin/ruby
--with-instant-client
--without-instant-client
/home/vcap/cloudfoundry/.deployments/devbox/deploy/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.5/ext/oci8/oraconf.rb:889:in get_home': RuntimeError (RuntimeError) from /home/vcap/cloudfoundry/.deployments/devbox/deploy/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.5/ext/oci8/oraconf.rb:705:ininitialize'
from /home/vcap/cloudfoundry/.deployments/devbox/deploy/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.5/ext/oci8/oraconf.rb:320:in new' from /home/vcap/cloudfoundry/.deployments/devbox/deploy/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.5/ext/oci8/oraconf.rb:320:inget'

from extconf.rb:18:in `'

Error Message:
Set the environment variable ORACLE_HOME if Oracle Full Client.
Append the path of Oracle client libraries to LD_LIBRARY_PATH if Oracle Instant Client.

Backtrace:
/home/vcap/cloudfoundry/.deployments/devbox/deploy/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.5/ext/oci8/oraconf.rb:889:in get_home' /home/vcap/cloudfoundry/.deployments/devbox/deploy/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.5/ext/oci8/oraconf.rb:705:ininitialize'
/home/vcap/cloudfoundry/.deployments/devbox/deploy/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.5/ext/oci8/oraconf.rb:320:in new' /home/vcap/cloudfoundry/.deployments/devbox/deploy/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.5/ext/oci8/oraconf.rb:320:inget'

extconf.rb:18:in `'

See:

Gem files will remain installed in /home/vcap/cloudfoundry/.deployments/devbox/deploy/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.5 for inspection.
Results logged to /home/vcap/cloudfoundry/.deployments/devbox/deploy/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.5/ext/oci8/gem_make.out

@kubo
Copy link
Owner

kubo commented Nov 28, 2013

Set the environment variable ORACLE_HOME if Oracle Full Client.
Append the path of Oracle client libraries to LD_LIBRARY_PATH if Oracle Instant Client.

See http://ruby-oci8.rubyforge.org/en/file.install-full-client.html if Oracle full client.
See http://ruby-oci8.rubyforge.org/en/file.install-instant-client.html if Oracle instant client.

If you set ORACLE_HOME or LD_LIBRARY_PATH, you would forget to export it.

Note that sudo command drops LD_LIBRARY_PATH for security reasons.
If you need to use sudo (I don't think so), run the following:

sudo env LD_LIBRARY_PATH=$LD_LIBRARY_PATH gem install ruby-oci8

@AlvinkummHu
Copy link
Author

Hi,
thanks for your tips.
i followed your tips but now i got following issue:
vcap@ubuntu:/etc$ sudo gem install ruby-oci8
ERROR: While executing gem ... (OpenSSL::SSL::SSLError)
SSL_connect returned=6 errno=0 state=SSLv3 read finished A

@kubo
Copy link
Owner

kubo commented Dec 3, 2013

The error ERROR: While executing gem ... (OpenSSL::SSL::SSLError) would be raised when trying to connect to a gem server prior to installing ruby-oci8. I don't know what the error is.

vcap@ubuntu:/etc$ sudo gem install ruby-oci8

Your ruby is under /home/vcap/cloudfoundry/.deployments/devbox/deploy/rubies/ruby-1.9.2-p180/.
Use sudo command only when your ruby is under a directory where you don't have write permission and root privilege is required to put files to the directory.

Set ORACLE_HOME or LD_LIBRARY_PATH and run the command which caused the error in your first post.

@kubo
Copy link
Owner

kubo commented Feb 2, 2014

Did you install ruby-oci8 successfully?
Can I close this issue?

@kubo kubo closed this as completed May 4, 2014
@lilichen1
Copy link

i have set orcale_path ,but i got those

Error Message:
Set the environment variable DYLD_LIBRARY_PATH, DYLD_FALLBACK_LIBRARY_PATH or
OCI_DIR to point to the Instant client directory.

If DYLD_LIBRARY_PATH or DYLD_FALLBACK_LIBRARY_PATH is set, the environment
variable must be set at runtime also.

can you tell me what can i do?

@kubo
Copy link
Owner

kubo commented Nov 3, 2015

Your issue is not related to this issue.
Could you create a new issue with the following information?

@lilichen1
Copy link

i have create new question 108 ,thanks guys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants