Bug #4185
closedruby 1.9.2 p0 installation issue
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-x86_64/bin
installing base libraries: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86_64/lib
installing arch files: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86_64/lib/ruby/1.9.1/x86_64-linux
installing extension objects: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86_64/lib/ruby/1.9.1/x86_64-linux
installing extension objects: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86_64/lib/ruby/site_ruby/1.9.1/x86_64-linux
installing extension objects: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86_64/lib/ruby/vendor_ruby/1.9.1/x86_64-linux
installing extension headers: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86_64/include/ruby-1.9.1/x86_64-linux
installing extension scripts: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86_64/lib/ruby/1.9.1
installing extension scripts: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86_64/lib/ruby/site_ruby/1.9.1
installing extension scripts: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86_64/lib/ruby/vendor_ruby/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-x86_64/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-x86_64/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-x86_64/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/tmp_ruby_ruby_1.9.2/TOOLROOT/ruby/ruby/1.9.2/
rhe4-x86_64'
chmod 775 .
find rhe4-x86_64 -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
Updated by nobu (Nobuyoshi Nakada) almost 14 years ago
=begin
Hi,
At Wed, 22 Dec 2010 21:21:17 +0900,
ravish nayak wrote in [ruby-core:33814]:
tmk: Setting permissions on '/scratch/ravnay01/tmp_ruby_ruby_1.9.2/TOOLROOT/ruby/ruby/1.9.2/
rhe4-x86_64'
chmod 775 .
find rhe4-x86_64 -type d -print | xargs chmod a+x
chmod: cannot accessrhe4-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-x86_64 -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
LD_LIBRARY_PATH environment variable.
--
Nobu Nakda
=end
Updated by nobu (Nobuyoshi Nakada) almost 14 years ago
- Status changed from Open to Closed
- Priority changed from 6 to 3
=begin
=end
Updated by ravish (ravish nayak) almost 14 years ago
=begin
Hi Nobu,
Thanks for your valuable solution..
I need some information regarding above issues
-
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."
-
I tried with chmod -R a+X rhe4-x86_64 as you suggested.. and again I rebuilt I did not get any error..
-
In the ruby bin path I tried to run as ./irb it is telling ./irb: Command not found.
-
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
Updated by nobu (Nobuyoshi Nakada) almost 14 years ago
=begin
Hi,
At Thu, 23 Dec 2010 16:35:52 +0900,
ravish nayak wrote in [ruby-core:33830]:
- 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."
- In the ruby bin path I tried to run as ./irb it is telling ./irb:
Command not found.
Does `./ruby -v' work?
- 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
Updated by ravish (ravish nayak) almost 14 years ago
=begin
Hi Nakada,
I set the environment variable
i.e LD_LIBRARY_PATH = TOOL_ROOT/ruby/ruby/1.9.1/rhe4-x86_64/lib or TOOL_ROOT/ruby/ruby/1.9.1/rhe5-x86_64/lib
TOOL_ROOT/ruby/ruby/1.9.1/rhe4-x86_64/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