Bug #4185

ruby 1.9.2 p0 installation issue

Added by ravish nayak over 3 years ago. Updated almost 3 years ago.

[ruby-core:33814]
Status:Closed
Priority:Low
Assignee:-
Category:-
Target version:-
ruby -v:1.9.2 p0 Backport:

Description

=begin
Hi,

I am trying to install ruby 1.9.2 p0 and 1.9.2 rc2 version on redhat linux4 under x86 architecture while compiling the source code I am
getting following errors and compilation was not successfull

First one is

installing binary commands: TOOLROOT/ruby/ruby/1.9.2/rhe4-x8664/bin
installing base libraries: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86
64/lib
installing arch files: TOOLROOT/ruby/ruby/1.9.2/rhe4-x8664/lib/ruby/1.9.1/x8664-linux
installing extension objects: TOOLROOT/ruby/ruby/1.9.2/rhe4-x8664/lib/ruby/1.9.1/x8664-linux
installing extension objects: TOOLROOT/ruby/ruby/1.9.2/rhe4-x8664/lib/ruby/siteruby/1.9.1/x8664-linux
installing extension objects: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86
64/lib/ruby/vendorruby/1.9.1/x8664-linux
installing extension headers: TOOLROOT/ruby/ruby/1.9.2/rhe4-x8664/include/ruby-1.9.1/x8664-linux
installing extension scripts: TOOLROOT/ruby/ruby/1.9.2/rhe4-x8664/lib/ruby/1.9.1
installing extension scripts: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86
64/lib/ruby/siteruby/1.9.1
installing extension scripts: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86
64/lib/ruby/vendorruby/1.9.1
installing extension headers: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86
64/include/ruby-1.9.1/ruby
installing rdoc: TOOLROOT/ruby/ruby/1.9.2/rhe4-x8664/share/ri/1.9.1/system
installing capi-docs: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86
64/share/doc/ruby
installing command scripts: TOOLROOT/ruby/ruby/1.9.2/rhe4-x8664/bin
installing library scripts: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86
64/lib/ruby/1.9.1
installing common headers: TOOLROOT/ruby/ruby/1.9.2/rhe4-x8664/include/ruby-1.9.1
installing manpages: TOOLROOT/ruby/ruby/1.9.2/common/man/man1
installing default gems: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86
64/lib/ruby/gems/1.9.1 (cache,
doc, gems, specifications)
rake 0.8.7
rdoc 2.5.8
minitest 1.6.0
tmk: Setting permissions on '/scratch/ravnay01/tmprubyruby1.9.2/TOOLROOT/ruby/ruby/1.9.2/
rhe4-x86
64'
chmod 775 .
find rhe4-x8664 -type d -print | xargs chmod a+x
chmod: cannot access rhe4-x86_64/share/ri/1.9.1/system/Set/dig': No such file or directory
chmod: cannot access
=': No such file or directory
chmod: cannot access {}': No such file or directory
chmod: cannot access
rhe4-x86
64/share/ri/1.9.1/system/IRB/(MagicFile': No such file or director
y
chmod: cannot access =': No such file or directory
chmod: cannot access
Object.new)': No such file or directory
tmk: child process exited abnormally
tmk: tmk: exiting.
tmk: exiting.

second one

If try to run executable file which is there in bin directory I am getting following error..

./ruby: error while loading shared libraries: libruby.so.1.9: cannot open shared object file: No such file or directory
=end


Related issues

Duplicates ruby-trunk - Bug #3759: make rdocで不要と思われるファイル"rdoc/Set/dig = {}/cdesc-dig = {}.ri... Closed 08/29/2010

History

#1 Updated by Nobuyoshi Nakada over 3 years ago

=begin
Hi,

At Wed, 22 Dec 2010 21:21:17 +0900,
ravish nayak wrote in :

tmk: Setting permissions on '/scratch/ravnay01/tmprubyruby1.9.2/TOOLROOT/ruby/ruby/1.9.2/
rhe4-x86
64'
chmod 775 .
find rhe4-x8664 -type d -print | xargs chmod a+x
chmod: cannot access rhe4-x86_64/share/ri/1.9.1/system/Set/dig': No such file or directory
chmod: cannot access
=': No such file or directory
chmod: cannot access {}': No such file or directory
chmod: cannot access
rhe4-x86
64/share/ri/1.9.1/system/IRB/(MagicFile': No such file or directory
chmod: cannot access =': No such file or directory
chmod: cannot access
Object.new)': No such file or directory

This bug has been fixed in the trunk already and backported to 1.9.2
branch.

BTW, why don't you use -print0?

$ find rhe4-x8664 -type d -print0 | xargs -0 chmod a+x
or
$ find rhe4-x86
64 -type d -exec xargs chmod a+x {} +
or
$ chmod -R a+X rhe4-x86_64

second one

./ruby: error while loading shared libraries: libruby.so.1.9: cannot open shared object file: No such file or directory

Seems like you need to add a file under /etc/ld.so.conf.d or set
LDLIBRARYPATH environment variable.

--
Nobu Nakda

=end

#2 Updated by Nobuyoshi Nakada over 3 years ago

  • Status changed from Open to Closed
  • Priority changed from Urgent to Low

=begin

=end

#3 Updated by ravish nayak over 3 years ago

=begin
Hi Nobu,

Thanks for your valuable solution..

I need some information regarding above issues

1) Can I get the URL link or Bug ID that you have mentioned in the above reply i.e "This bug has been fixed in the trunk already and backported to 1.9.2 branch."

2) I tried with chmod -R a+X rhe4-x86_64 as you suggested.. and again I rebuilt I did not get any error..

3) In the ruby bin path I tried to run as ./irb it is telling ./irb: Command not found.

4) I am new to this ruby installation can you suggest me the steps i.e
a) After installing ruby do I need to install rails, rake and gems? Is this is the procedure?

Thanks Nobu

=end

#4 Updated by Nobuyoshi Nakada over 3 years ago

=begin
Hi,

At Thu, 23 Dec 2010 16:35:52 +0900,
ravish nayak wrote in :

1) Can I get the URL link or Bug ID that you have mentioned in the
above reply i.e "This bug has been fixed in the trunk already and
backported to 1.9.2 branch."

#3759.

3) In the ruby bin path I tried to run as ./irb it is telling ./irb:
Command not found.

Does `./ruby -v' work?

4) I am new to this ruby installation can you suggest me the steps i.e
a) After installing ruby do I need to install rails, rake and
gems? Is this is the procedure?

Ruby 1.9.2 bundles rake and gems, but rails is a different product.

--
Nobu Nakada

=end

#5 Updated by ravish nayak over 3 years ago

=begin
Hi Nakada,

I set the environment variable

i.e LDLIBRARYPATH = TOOLROOT/ruby/ruby/1.9.1/rhe4-x8664/lib or TOOLROOT/ruby/ruby/1.9.1/rhe5-x8664/lib

TOOLROOT/ruby/ruby/1.9.1/rhe4-x8664/lib contains following files

-rw-rw-r-- 1 lyra darjoy01 8800858 Sep 6 10:34 libruby-static.a
lrwxrwxrwx 1 lyra darjoy01 16 Sep 6 11:02 libruby.so -> libruby.so.1.9.1
lrwxrwxrwx 1 lyra darjoy01 16 Sep 6 11:02 libruby.so.1.9 -> libruby.so.1.9
.1
-rwxrwxr-x 1 lyra darjoy01 5722463 Sep 6 10:34 libruby.so.1.9.1
drwxrwxr-x 6 lyra alamun01 4096 Sep 6 10:37 ruby

If try to run from bin folder as ./ruby -v i am getting following error

./ruby: error while loading shared libraries: libruby.so.1.9: cannot open shared object file: No such file or directory

Please, let me know where i am doing the wrong thing..

Thanks
Ravish

=end

Also available in: Atom PDF